Presentations
Slides
Exercises
Exercise 1
- In your document’s YAML header, change
format: htmltoformat: revealjs. - Use first-level headings (
#) to create a new slide. Use other Markdown headings and text for content on each slide. - Save and render your document.
Quarto will create an HTML file that is a fully functional slide deck.
Note
You can remove code-fold and code-summary from the YAML header, as these are for HTML documents and do not apply to presentations.
Exercise 2
- Add
{.smaller}to your heading to decrease its font size, like this:## Global Happiness Trends {.smaller}. - Place your plot and table side-by-side. Adjust the percentages as needed.
- Use :
:: panel-tabseton the “Country-Level Analysis” slide to organize your content. - To improve the flow, add
slide-transition: slideto your YAML header. Other options includefade,convex,concave, orzoom.
Exercise 3
- Change the title slide background.
- Find an image on Unsplash and get the direct URL to the image file.
- Add
title-slide-attributesto your YAML header and specify thedata-background-imageattribute with the image’s URL. - If it’s a dark photo, you may want to change
data-background-colorto a dark color so that the slide uses a light font color.
- Edit Conclusion slide background color: Use the brand.yml shortcodes to change the color to
primary.