Default Classes

layout

Setting default classes for all slides

Emil Hvitfeldt true
05-22-2021

Setting default classes is a great way to reduce type and increase uniformity in your slides.

Start your first slide with

and nothing else!

Then all the following classes will have these classes including what to specify on a slide by slide basis.

Can be turned of by setting

Result

Rmd

---
output:
  xaringan::moon_reader:
    seal: false
    lib_dir: libs
    nature:
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false
---

class: center, inverse
layout: true

---

# Hello world

---

# More slides

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Hvitfeldt (2021, May 22). Xaringan Gallery: Default Classes. Retrieved from https://xaringan.gallery/examples/default-classes/

BibTeX citation

@misc{hvitfeldt2021default,
  author = {Hvitfeldt, Emil},
  title = {Xaringan Gallery: Default Classes},
  url = {https://xaringan.gallery/examples/default-classes/},
  year = {2021}
}