Creating presentations with Quarto!
“Quarto is an open-source scientific and technical publishing system.”
Create presentations, websites, blogs, reports and more!
Include your
Share interactive content with your coworkers (or the world!)
Quarto should be already installed in R-Studio.
If not or if you want to use VS Code, Jupyter or Text Editor download the newest version from the official website.
\(\rightarrow\) I will focus on R-Studio
In R-Studio:
.qmd
file Preamble defines format and other options for the output:
##
indicates the begin of a new slide
Text/content between two slides is displayed
Caption in []
, relative path to figure in ()
and parameters in {}
like width
, height
and more…
Code needs to be embedded in chunks
Use cell options to control code output, figures, tables,…
```{r}
#| echo: false
#| fig-cap: "Figure caption"
#| fig-align: "center"
#| out-height: "20cm"
# Put your code here
```
#| echo: false
: Include cell source code in rendered output#| fig-cap
: caption of figure#| fig-align
: alignment of figure#| out-height
: output height of figureSave your plots created in your R scripts as RDS-files and read them directly in the Quarto presentation!
::::
indicate div container with class .columns
*Content*
is italic font and **Content**
is bold font
Content of left column
Content of right column
The output of your presentation should be named index.html
If you want to name your Quarto file different, set the name of the output file in the preamble:
Quarto includes 11 built-in themes: e.g. beige
, dark
or moon
…
The theme can be selected in the preambel:
Create your own custom theme with scss
and/or css
rules!
There are many other alternatives available!
Name of the repository will be also in the domain of your published site.
.gitignore
file)images/
, index_files/
and index.html
)There’s much more to discover: extensions, animations, transitions, tabsets, scrolling, …
Ruben C. Kubina - 11.07.2024