~/Blog

Brandon Rozek

Photo of Brandon Rozek

PhD Student @ RPI studying Automated Reasoning in AI and Linux Enthusiast.

Quick Beamer: Generating a slide at the beginning of each section

Published on

People want to know where they are within your presentation. This is why for a class of long presentations, there’s an outline slide in the beginning and section headers.

Separating sections with an additional slide is nice because it not only gives an audience an opportunity for questions, but it also allows you to sneak in a sip of water.

To accomplish this automatically, thanks to a tip from James Oswald, we add the following to the preamble of our Beamer file (before the \begin{document})

\AtBeginSection[]{
  \begin{frame}
  \vfill
  \textbf{\insertsectionhead}
  \vfill
  \end{frame}
}

This produces the following slide right after your \section{} code:

Image of beamer slide with the section text in bold

Which for me and my template is equivalent to if I typed this in the beginning of each section:

\begin{frame}
	\textbf{First Awesome Section}
\end{frame}

Saving a little bit of typing is always nice :)

My slide is fairly bare-bones, another cool approach shows the entire table of contents with every other section faded out.

Reply via Email Buy me a Coffee
Was this useful? Feel free to share: Hacker News Reddit Twitter