diff --git a/docs/journals/templates.qmd b/docs/journals/templates.qmd index beac1da68f..c0d336a039 100644 --- a/docs/journals/templates.qmd +++ b/docs/journals/templates.qmd @@ -151,6 +151,34 @@ citations.tex See the [full source code](https://github.com/quarto-dev/quarto-cli/blob/main/src/resources/formats/pdf/pandoc/template.tex) for the Quarto LaTeX template to see how these partials are invoked by default. +## Typst Partials + +View the Quarto Typst template and partials [source code here](https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/formats/typst/pandoc/quarto). + +template.typ + +: The core Typst template file which includes the basic document skeleton plus the following partials. This can't be replaced as a `partial`, instead use the `template` option to provide your own template. + +definitions.typ + +: Definitions for Pandoc and Quarto features like block quotes, callouts, subfloats etc. In general, this partial must always be included within your custom template. + +typst-template.typ + +: The definition of the Typst template function that will be called on the entire document contents. In the default template this function is called `article()` and generates a title block and author list, followed by the document content, optionally laid out in columns. + +typst-show.typ + +: A show rule for the entire document that captures document metadata and passes it to the function defined in `typst-template.typ`. + +notes.typ + +: Creates footnotes. + +biblio.typ + +: Creates the bibliography. + ## HTML Partials View the Quarto html template and partials [source code here](https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/formats/html/pandoc). Note that `html.template` is a copy of the complete Pandoc template that the Quarto template and partials is based upon.