Ejemplo: Manual de opciones del formato Typst en Quarto (hoja chuleta)

Uso y configuración

La salida de los documentos de Quarto se configura a través de metadatos en el encabezado YAML. Para especificar un formato de salida para tu documento. Aquí tienes un ejemplo de encabezado YAML:

---
title: "Opciones del formato Typst en Quarto"
subtitle: "Pedro L. Luque (29-08-2025)"
#date: today
lang: es
color:
  palette:
    dark-grey: "#222222"
    blue: "#ddeaf1"
  background: blue
  foreground: dark-grey
  #primary: black
  primary: "#0000BB"
  secondary: "#50C878"
  danger: red
format: 
  typst:
    keep-typ: true
    fontsize: "10pt"
    #mainfont: "Libertinus Serif"
    #mainfont: "Barlow"
    #mainfont: "DejaVu Serif"
    #mainfont: "TeX Gyre Pagella"
    #mainfont: "Fira Sans Condensed"
    #mainfont: "Roboto"
    #monofont: "Monacy"
    #monofont: "Lucida Grande"
    #monofont: "Times New Roman"
    #monnofont: "New Computer Modern"
    toc: false
    toc-depth: 2
    number-sections: true
    #bibliography: "references.bib"
    #csl: "apa"
    #citeproc: true
    page-numbering: false
    papersize: a4
    margin: {x: 1cm, bottom: 1cm, top: 0cm}
    columns: 2
    section-numbering: "1.1.a"
    #line-number: false
    #leading: "0.5em"
    #spacing: "0.6em"
    #linkcolor: "0066cc"
    #first-line-indent: "1.8em"
    #all: false
    #col-gutter: "4.2%"
    #toc-indent: "1.5em"
    include-in-header: 
      - text: |                    
          #set page(fill: rgb("FFFFE9"))
          #set par(first-line-indent: 1.5em)
          #set columns(gutter: 2em) // 4.2% o 2em          
    include-before-body:
      - text: |
          #show heading: set text(rgb("0066cc"))  
          #set heading(numbering: "(1.A)")
          #show link: set text(fill: blue)
          #show cite: set text(fill: blue)
          //#set par.line(numbering: "1")
          #set par(justify: true, leading: 0.5em, 
                spacing: 0.8em,
                first-line-indent: 
                (amount: 1.8em, all: true))          
  html: 
    number-sections: true
    code-tools: true
    toc: true
    toc-depth: 3
    theme: cosmo
    linkcolor: "#0066cc"
    embed-resources: true
    #fontsize: 16pt
    #mainfont: "Libertinus Serif"
---    



El contenido del documento va aquí...

Ficheros generados con esta cabecera YAML