DYNAMIC
CONTENT
USING
QUARTO

AJAY KOLI
2023-01-19
UCL R User Group

Photo courtesy of Sherry Rusinack


Dr. Ajay Kumar Koli, PhD
Educator & Researcher
https://github.com/koliajaykr
https://twitter.com/ajay_kolii






Hi, there!


🤔 Dynamic Content

Analyze. Share. Reproduce.










Quarto



“Quarto is next generation version of R Markdown”

Background photo courtesy of @markusspiske

Quarto

“Quarto is a multi-language open-source scientific and technical publishing system”

Quarto

“Publish high-quality articles, reports, presentations, websites, blogs, and books.”

Get Started: Download Quarto

Web Link: https://quarto.org/docs/get-started/

Get Started: Choose IDE

Web Link: https://quarto.org/docs/get-started/

🙀 OMG!

Terminal

quarto --version

quarto --help

RStudio: New File

RStudio: New Quarto Document

Quarto File (.qmd): Visual Mode

Quarto File (.qmd): Source Mode

Div :::

:::: {.columns}

::: {.column width="50%"}
Left column
- Apple
- Orange
- Grapes
:::

::: {.column width="50%"}
Right column
- Tea
- Coffee
- Lemon water
:::

::::

Left column.
- Apple.
- Orange.
- Grapes.

Right column.
- Tea.
- Coffee.
- Lemon water.

Snippet

Type columns then press shit+tab (in mac)

Cross-references

![](image/cat.jpg){#fig-cat}

Figure 1: Cat

We can give the cross-reference of the cat in Figure 1 using the @fig-cat.

Cross-references

This cat image is also used in the Section 1 and Section 3.9.

  • #fig- \(\longrightarrow\) @fig- \(\longrightarrow\) Figure

  • #sec- \(\longrightarrow\) @sec- \(\longrightarrow\) Section

  • #tbl- \(\longrightarrow\) @tbl- \(\longrightarrow\) Table

  • #eq- \(\longrightarrow\) @eq- \(\longrightarrow\) Equation

Thank you