An example of using {revealjs} with Quarto
Apr 18, 2024
Leveraging the YAML frontmatter
We can add more options to include metadata in the presentation.
title: "Example presentation"
1subtitle: "An example of using {revealjs} with Quarto"
2author:
- name: "Jerid Francom"
email: "francojc@wfu.edu"
affiliation: "Wake Forest University"
- name: "Joe Biggs-Schaut"
email: "biggssj@uni.edu"
affiliation: "State University"
bibliography: ../../bibliography.bib
date: "2024-04-18"
3date-format: medium
As with other output formats, we can specify options for the reveal.js presentation.
format:
revealjs:
1 theme: simple
2 slide-number: c/t
3 hash-type: number
logo: "logo.jpg"
footer: "Recipe 11: Sharing research"
incremental: false
c/t
for current/total)
number
for slide number URL)
As with other output formats, we can specify options for the reveal.js presentation.
format:
revealjs:
theme: simple
slide-number: c/t
hash-type: number
4 logo: "logo.jpg"
5 footer: "Recipe 11: Sharing research"
6 incremental: false
Using #
and ##
for creating/ adjusting slides
There are two primary slide types.
Section slides
Subsection slides
Slides can be customized with additional options:
These options can be combined as needed.
Using Markdown/ Quarto to create slide content
You can use standard Markdown syntax to create slide content. This includes images, tables, links, and more.
Images
Tables
You can also use Quarto to create elements.
Code blocks
Figures
Citations
If you want to add columns to a slide, you can use the following syntax:
:::: {.columns}
::: {.column width="50%"}
Content for the first column
:::
::: {.column width="50%"}
Content for the second column
:::
::::
You can adjust the width as needed and/ or add more columns.
You can add speaker notes to a slide using the following syntax:
Recipe 11: Sharing research