Quarto provides the following output formats:
HTML
Typst (way better than LaTex!)
MS Word (docx
)
OpenOffice (odt
)
ePub
1. In RStudio:
Click the Render button OR use the quarto
R package:
2. Terminal: quarto render
(--to [output format]
)
Render as an HTML document
Render as a PDF
Render as a Word
Render one Quarto document to many output options like HTML, Jupyter Notebook, PDF, and Word Document.
---
title: "Hello Quarto"
author: "JJB + Course"
format:
html: default
ipynb: default # new format!
pdf: default
docx: default
---
Note
Quarto supports many formats include PowerPoint (PPT), Revealjs, Beamer, Rich Text Format (RTF), and on. For details, see All Formats.
Note
the Render button will not work for multiple formats.
Besides default html
/pdf
/docx
, Quarto offers journal templates. See also Quarto Documentation: Journals.
acm
: Association of Computing Machinery (ACM)plos
: Public Library of Science (PLOS)agu
: American Geophysical Union (AGU)elsevier
: Elsevierbiophysical-journal
: Biophysicalacs
: American Chemical Society (ACS)jss
: Journal of Statistical Software (JSS)apaquarto
Use a journal template from the start of your project (will create a new document):
For example:
apaquarto
apaquarto
Once you are satisfied with the Quarto document, it’s time to publish your work!
The publishing step is important as the documents need to be viewed under the guise of a server
There are multiple options for publishing with Quarto, and we’ll present two of them
OR:
You can find the blue Publishing icon in the following locations:
The upper right of the file editor
The document viewer when viewing a document
The embedded viewer when running a Shiny application
The Plots pane