1 Quarto
1.1 What is Quarto?
Quarto is an open-source scientific and technical publishing system built on Pandoc1. It provides a unified authoring framework for reproducible data science, combining code, results, and narrative to produce outputs like HTML, PDF, Word, and more in a seamless manner. A few of the key features of Quarto that are applicable to Quarto users at any level are listed below:
Markdown authoring: Quarto documents are authored using markdown, a straightforward plain text format that allows you to add formatting elements to plain text documents using a simple syntax.
Code integration: Quarto coordinates the execution of knitr, Jupyter or Observable to embed code and output from various languages, including Python, R, Julia, and JavaScript.
Technical writing extensions: Quarto markdown adds syntax for technical writing that covers features like cross-references, sub-figures, layout panels, hoverable citations and footnotes, and more.
Project system: Quarto provides a project system for managing groups of documents with shared options to produce aggregate output such as manuscripts, websites, and books.
Editor compatibility: Quarto supports authoring in various editors and notebooks, including JupyterLab, RStudio, and VS Code. Many of these editors offer a visual markdown editor that is specifically designed to work well with Quarto, providing a productive writing interface for composing long-form documents.
The best place to learn about Quarto and explore its capabilities, aside from this book, is quarto.org.
Quarto is available under the MIT license.
Sometimes when we say “Quarto” we mean “a Quarto document”, i.e., a plain-text Quarto markdown file with the extension .qmd
. And sometimes when we say “Quarto” we mean the Quarto Command Line Interface (CLI), which can render .qmd
files as well as .ipynb
(Jupyter Notebook), .Rmd
(R Markdown), and .md
(Markdown) files.
1.2 Installation
The Quarto CLI is the tool you need to render Quarto documents. Specifically, it gives you the command quarto render
. You can download the latest release version of the Quarto CLI at https://quarto.org/docs/get-started and install it.
You can also download development versions of Quarto at https://quarto.org/docs/download/prerelease.html however note that pre-release builds are intended for testing purposes, and are not recommended for general use.
Pandoc is a tool that converts documents to different formats. Quarto leverages it to convert markdown to a variety of output formats.↩︎