Software:Quarto

From HandWiki
Quarto
Developer(s)Posit PBC
Written inTypeScript, JavaScript, Lua, etc.[1][2]
Operating systemLinux, MacOS, Microsoft Windows[3]
LicenseMIT License (since v1.4), GPLv2 (until v1.3)[4]
Websitequarto.org
Quarto document
Filename extension.qmd
Type of formatMarkdown variant[5]

Quarto is a free and open-source scientific and technical publishing system[6][7][8] developed by Posit PBC, the developer of RStudio and Tidyverse.[9]

Quarto converts a Quarto document into HTML, PDF, or other document formats, using Pandoc as the core alongside other software such as Jupyter.[10]

Syntax and features

Quarto extends RMarkdown's features[11] and adds native support for Python and Julia, in addition to R. [7][8]

Headers

A header in Quarto is a YAML data block at the top of a .qmd file, bracketed by ---. It is used to control the formats, themes, executable options, and others of the document.[12] The example below is a Quarto header: [12][13]

---
title: "Quarto (software)"
author: "Wikipedia"
abstract: "This is the abstract."
format: pdf
date: format(Sys.time(), "%d %B %Y")
date-modified: last-modified
params: 
  data: "./data.csv"
---

Titles

Titles in Quarto follows the syntax of Markdown, with hashtags # leading the title text delimited with one or multiple spaces. The example shows four different levels of titles compared to normal text:

# Header 1
## Header 2
### Header 3
#### Header 4

Normal text

Italic and bold fonts

Same as Markdown, a piece of italic text is in a single pair of asterisks * or underscores _, while a piece of bold text is in a pair of ** or __:[14]

Text to be _italicized_ goes inside _a single set of underscores_ or *asterisks*.  
Text to be **boldfaced** goes inside a __double set of underscores__ or **asterisks**.

Code blocks

The declaration of a code block in Quarto is similar to that in the original Markdown, but with a pair of curly brackets around the language name. The example declares a code block in Quarto:

```{julia}
function sum_of_squares(n::Int)
    sum = 0
    for i in 1:n
        sum += i^2
    end
    return sum
end
```

References

  1. "quarto-dev/quarto-cli". https://github.com/quarto-dev/quarto-cli. 
  2. "quarto-dev/quarto". https://github.com/quarto-dev/quarto. 
  3. "Releases of quarto-dev/quarto-cli". https://github.com/quarto-dev/quarto-cli/releases. 
  4. "quarto-dev/quarto-web/license.qmd". https://github.com/quarto-dev/quarto-web/blob/main/license.qmd. 
  5. "Quarto - Markdown Basics". https://quarto.org/docs/authoring/markdown-basics.html. 
  6. "Quarto". https://quarto.org/. 
  7. 7.0 7.1 Machlis, Sharon (28 July 2022). "What is Quarto? RStudio rolls out next-generation R Markdown". InfoWorld. https://www.infoworld.com/article/2336031/what-is-quarto-rstudio-quietly-rolls-out-next-generation-r-markdown.html. 
  8. 8.0 8.1 Machlis, Sharon (6 October 2022). "A beginner's guide to using Observable JavaScript, R, and Python with Quarto". InfoWorld. https://www.infoworld.com/article/2336848/a-beginners-guide-to-using-observable-javascript-r-and-python-with-quarto.html. 
  9. "Posit". https://posit.co/products/open-source/. 
  10. "Quarto - About". https://quarto.org/about.html. 
  11. NCEAS Open Science Synthesis (June 2023). "Literate analysis with Quarto". National Center for Ecological Analysis and Synthesis, University of California, Santa Barbara. https://learning.nceas.ucsb.edu/2023-06-delta/session_03.html. 
  12. 12.0 12.1 BTEP Coding Club (24 January 2024). "Documenting your data analysis with Quarto". Bioinformatics Training and Education Program, Center for Cancer Research, National Cancer Institute. https://bioinformatics.ccr.cancer.gov/docs/btep-coding-club/CC2024/Quarto/GettingStarted_with_Quarto/. 
  13. Alexander, Rohan (2023). "Reproducible workflows: Quarto". Telling Stories with Data: With Applications in R. Chapman & Hall/CRC Data Science Series. Boca Raton, FL: CRC Press. pp. 53–62. ISBN 9781032134772. OCLC 1356722977. https://tellingstorieswithdata.com/03-workflow.html#quarto. 
  14. Jiang, Shiguo (26 January 2024). "Introduction to Quarto and Markdown – Reproducible research and effective teaching using R, Python, Quarto, and Jupyter". Spatial Analysis Laboratory, University at Albany, SUNY. https://www.albany.edu/spatial/talk/quarto/lecture/91-quarto-markdown.html. 

Further reading