Coder Social home page Coder Social logo

puntitowo / template-informe-practica-fcfm Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 2.0 1.22 MB

Un template en Typst para informe de práctica con el formato DCC - FCFM

Home Page: https://typst.app/project/rsxXr837gOiym7xg84m3e4

License: MIT License

TeX 6.09% Typst 93.91%
fcfm typst-template

template-informe-practica-fcfm's People

Contributors

dav1com avatar puntitowo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dav1com jfeliu01

template-informe-practica-fcfm's Issues

La bibliografía no funciona

Al intentar cargar la bibliografía mediante #bibliography("bibliografia.bib") o #bibliography("bibliografia.yml") (no importa cuál), el compilador reclama que hay un error en conf.typ en la línea 138 porque it.body no tiene un atributo children

  show selector(outline.entry): it => {
    let num = it.body.children.first() // <------ esta línea
    let title = link(it.element.location())[#for i in it.body.children.slice(1) {i}]
    box(width: numbering-indent, num)
    title
    box(width: 1fr, repeat[.])
    box(width: page-num-indent, align(right, it.page))
  }

La forma en que yo lo solucioné fue cambiando el fragmento anterior (con conf.typ:137) por esto:

  show selector(outline.entry): it => {
    let num = if it.body.has("children") [#it.body.children.first()] else []
    box(width: numbering-indent, num)
    if it.body.has("children") [
      #link(it.element.location())[#for i in it.body.children.slice(1) {i}]
    ] else [#link(it.element.location())[ #it.element.body]]
    box(width: 1fr, repeat[.])
    box(width: page-num-indent, align(right, it.page))
  }

Con esto si compila y aparece la bibliografía en el índice sin un número, no se me ocurrió una solución más elegante, pero ahí está

Workaround para traducir meses corrige partes que no debe

Al poner mi nombre ("Augusto") en la variable conf.autor.nombre:

#show: conf.with(
    // ...
    autor: (nombre: "Augusto", pronombre: pronombre.el),
    // ...
)

Dado el workaround para los meses en inglés:

show "August": "Agosto"

Lo deja como "Agostoo", por mientras un workaround es comentar el fix del mes, y no entregar el informe en agosto 😆

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.