Quarto: Presentations
Objectives
💡 You can create a Quarto presentation using the reveal.js format.
💡 You can write slides using Markdown syntax (headings, text, images, code).
💡 You can use fragments to reveal content step-by-step.
💡 You can add speaker notes to your slides.
💡 You can customize your presentation with themes and layout options.
Tasks
In this session, you will work on the following tasks:
- Reading: Read the chapter(s) Reveal.js Presentations in the Version Control Book.
- Implementation: Try out the commands in the chapter.
- Exercises: Work on the exercises.
As always:
- Try out the commands of this session and play around with them.
- Check whether you have achieved the learning objectives.
- Ask questions!
Exercises
Create a Quarto Presentation
- In your
my-projectfolder, create a new file calledslides.qmd. - Add a YAML header specifying
format: revealjsand a title of your choice. - Write at least three slides using
##headings with some content on each slide. - Render the presentation to HTML using
quarto previewor the Render button in RStudio.
Customize Your Slides
- Add a code block or image to one of your slides.
- Use the
::: {.fragment}syntax to make at least one element appear step-by-step. - Add speaker notes to one slide using
::: notes. - 🚀 Optional: Change the presentation theme (e.g.,
theme: solarized) and observe the effect.
Slides
NoteHow can I download the slides as a PDF file?
To export the slides to PDF, do the following:
- Toggle into Print View using the E key (or using the Navigation Menu).
- Open the in-browser print dialog (CTRL/CMD+P).
- Change the Destination setting to Save as PDF.
- Change the Layout to Landscape.
- Change the Margins to None.
- Enable the Background graphics option.
- Click Save.
Note: This feature has been confirmed to work in Google Chrome, Chromium as well as in Firefox.
Here’s what the Chrome print dialog would look like with these settings enabled:
These instructions were copied from the Quarto documentation (MIT License) and slightly modified.