Engaging Reproducible Presentations
With Quarto, you are not limited to just reports, you can make presentations (and websites too!)
As of now Quarto supports making presentations in the following formats,
We are going to focus primarily on RevealJS presentations
The basic markdown tips you learned previously can be used.
Tip
Try changing the value for format to pptx
or beamer
and see how the value changes.
images.qmd
---
title: ""
format: revealjs
---
## Showing images is the same as reports
{.r-stretch width=64px fig-alt="The pokemon Eevee, a cat like animal with long pointy ears, wearing a flower"}
## Absolute positioning images
{.absolute top=200 left=0 width="350" height="300"}
{.absolute top=50 right=50 width="450" height="250"}
{.absolute bottom=0 right=50 width="300" height="300"}
## Zoom in to images
{fig-alt="The pokemon Eevee, a cat like animal with long pointy ears, wearing a flower"}
Use the `Alt` key to zoom in to images or areas of the presentation
code-output.qmd
---
title: "Code output"
format: revealjs
---
## Code output {auto-animate="true"}
::: {.cell}
```{.r .cell-code}
library(tidyverse)
ggplot(diamonds, aes(x = carat, y = price)) +
geom_point()
```
::: {.cell-output-display}
{width=960}
:::
:::
## Code animated {auto-animate="true"}
::: {.cell}
```{.r .cell-code}
ggplot(diamonds, aes(x = carat, y = price)) +
geom_point() +
theme_minimal() +
labs(title = "We need diamonds with more carrots")
```
::: {.cell-output-display}
{width=960}
:::
:::
Note
Try making a presentation
Similar to the themes in reports there are several Bootstrap themes available.
Tip
Try changing the theme of the current presentation you are working on to simple
or any other built in theme that you fancy
You can customize the individual parts of the presentation with a custom theme.
/*-- scss:defaults --*/
$body-bg: #ffe3bb;
$body-color: green;
$link-color: #42affa;
$font-family-sans-serif: "Arial", sans-serif;
$presentation-font-size-root: 64px;
$presentation-heading-font: "Times New Roman", serif;
$presentation-heading-color: red;
$presentation-heading-text-shadow: #fc0 1px 0 10px;
/*-- scss:rules --*/
.reveal .slide blockquote {
border-left: 3px solid $text-muted;
padding-left: 0.5em;
}
Note
Try styling your previous presentation by
M
key)C
key or N
key, requires chalkboard: true)S
key)G
key)O
key)slide-tone: true
)The simplest type of animations are incremental lists.
There are more advanced ways to animate using fragments and auto-animate options as seen here.
The results of the revealjs presentation is a static HTML file.
You can use any place that can static file hosting services online to share the presentation.
Examples include,
Let’s talk about what’s one thing that we remember from this session.