quarto.cheat.sheet
quarto.cheat.sheet
CC BY SA Posit So ware, PBC • info@posit.co • posit.co • Learn more at quarto.org • HTML cheatsheets at pos.it/cheatsheets • Quarto 1.4 • Updated: 2024-05
ft
html/revealjs
pdf/beamer
Include Code Set Format and Options
docx/pptx
CODE CELLS SET FORMAT OPTIONS MULTIPLE FORMATS OPTION DESCRIPTION
Code cells start with ```{language} and end with ```. toc X X X Add a table of contents (true or false)
---
Nav
--- toc-depth X X X Lowest level of headings to add to table of contents (e.g. 2, 3)
Use Insert Code Chunk/Cell title: "My Document" title: "My Document"
format:
anchor-sections X Show section anchors on mouse hover (true or false)
toc: true
html: format: highlight-style X X X Syntax highlighting theme (e.g. arrow, pygments, kate, zenburn)
```{r} ```{python}
#| label: chunk-id #| label: chunk-id code-fold: true html: mainfont, monofont X X Font name. HTML: sets CSS font-family; LaTeX: via fontspec package
Style
toc: true code-fold: true theme X Bootswatch theme name (e.g. cosmo, darkly, solar etc.)
LaTeX
https://quarto.org/docs/reference/cells Common formats: html, pdf, docx, odt, rtf,
gfm, pptx, revealjs, beamer pdf-engine X LaTeX engine to produce PDF output (xelatex, pdflatex, lualatex)
EXECUTION OPTIONS cite-method X Method used to format citations (citeproc, natbib, biblatex)
Render all formats: code-fold X Let readers toggle the display of R code (false, true, or show)
Code
OPTION DEFAULT EFFECTS
Terminal code-tools X Add menu for hiding, showing, and downloading code (true or false)
echo true false: hide code quarto render hello.qmd code-overflow X Display of wide code (scroll, or wrap)
fenced: include code cell syntax
fig-align X X / Alignment of figures (default, le , right, or center)
Figures
eval true false: don’t run code Render a specific format: fig-width, fig-height X X X Default width and height for figures in inches Knitr
Terminal
include true false: don’t include code or results fig-format X X X Format for Matplotlib or R figures (retina, png, jpeg, svg, or pdf)
quarto render hello.qmd --to pdf
Visit https://quarto.org/docs/reference/ to see all options by format
output true false: don’t include results
asis: treat results as raw markdown
TABLES
warning true false: don’t include warnings in output
CC BY SA Posit So ware, PBC • info@posit.co • posit.co • Learn more at quarto.org • HTML cheatsheets at pos.it/cheatsheets • Quarto 1.3 • Updated: 2023-07
fi
ft
ft
ft