3a: Quarto Documents, Citations, and References
Quarto gives us a consistent interface to a set of powerful tools that can automate tedious and error-prone manual processes.
We will continue to build in our practice repository using Quarto.
Quarto gives us one reasonably consistent authoring interface for:
Quarto grows out of the same reproducible-document tradition that made R Markdown and R Notebooks popular.
The big expansion is that Quarto is not just an RStudio/R workflow. It is a standalone publishing system built around Markdown, executable code, and Pandoc, with first-class support for Python, R, Julia, and JavaScript.
.qmd fileThe source files are the things we edit and commit.
The same basic workflow can make a simple HTML page, a PDF, a Word document, a website, or slides. We do not have to learn a totally separate toolchain for every output.
Quarto sits on top of powerful tools such as Pandoc, Typst, and revealjs.
We can almost always stay in the friendly layer. But, if we have highly-specific needs, we can customize the underlying tools directly, and Quarto has some features to make that easier.
Commit:
.qmd source files;_quarto.yml;references.bib;Usually do not commit:
_site/;A .bib file stores reference metadata in plain text.
The label after the opening brace is the cite key.
Quarto uses the cite key to find the reference and build the reference list.
CSL files control how citations and references are formatted.
The same source references can be rendered in different journal styles, just by changing the CSL link. (But, don’t forget to rework to another journal’s norms.)
Common routes:
For PDF output, we will use Quarto’s Typst format.
Typst is fast, modern, and much friendlier to customize later than a traditional LaTeX workflow.
One source document can produce HTML, PDF, and Word.
Open the 3a activity page.