wolfsatthedoor
wolfsatthedoor

Reputation: 7313

Section outlines in beamer Rmarkdown?

How can I have the outline of a beamer presentation appear before each section in Rmarkdown, like this code for regular beamer?

Upvotes: 0

Views: 916

Answers (1)

scoa
scoa

Reputation: 19857

Put this code in header.tex:

\AtBeginSection[]
{
 \begin{frame}<beamer>
 \frametitle{Plan}
 \tableofcontents[currentsection]
 \end{frame}
}

And compile with:

---
output: 
  beamer_presentation:
    includes:
      in_header: header.tex
---

Upvotes: 1

Related Questions