robertevansanders robertevansanders - 8 months ago 34
R Question

How to add a new block environment / layouts (definitions, theorem, etc) to RMarkdown beamer?

enter image description hereI am trying to add insets (definitions, theorem, etc) to RMarkdown beamer. Does anyone know how to do this?

An example would be a definition:

\begin_layout Definition
\begin_inset Quotes eld
\end_inset

[Cheese] cheese rocks.
\begin_inset Quotes erd
\end_inset

Answer Source

You can use a header level inferior to the slide level. Here is an example (which may look a little bit different with another beamer theme).

---
output: 
  beamer_presentation:
    theme: Copenhagen
    slide_level: 3
---

### Revenue management

#### Definition

Cheese rocks^[especially French cheese]

enter image description here