44

In a presentation, people show regularly a "outline" frame containing the table of contents where some sections are grey (have been presented) and others are highlighted (will be presented right now).

Could anyone tell me how to realize it? Do we have to copy the same frame (table of contents) every time and change the color of some titles?

Thank you very much

50

You can do this using \AtBeginSection:

\documentclass{beamer}
\usetheme{Boadilla}

\AtBeginSection[]
{
  \begin{frame}<beamer>
    \frametitle{Outline for section \thesection}
    \tableofcontents[currentsection]
  \end{frame}
}


\begin{document}

\section{Test section one}
\begin{frame} Test \end{frame}
\begin{frame} Test \end{frame}
\section{Test section two}
\begin{frame} Test \end{frame}
\begin{frame} Test \end{frame}

\end{document}

Here's the frame obtained just before the frames for section two:

enter image description here

2
1

To get a slide with your table of contents, use

\begin{frame}
\frametitle{Outline}
  \tableofcontents
\end{frame}

or on more recent beamer versions

\begin{frame}{Outline}
  \tableofcontents
\end{frame}

While this does not answer exactly the original question, it ends up being useful, as lot of people might visit this thread with this specific goal.

3
  • 2
    Have you tested this answer? It does not show the table of contents with highlight for the current section. And even if it would: It is not simpler to copy the frame every time you start a new section than to generate such a frame automatically. Jul 15 '17 at 7:22
  • This is what to do if you want an outline one time at the start of the presentation, but it's not a clean way to have a repeating outline at the start of each section.
    – EL_DON
    Apr 12 '18 at 15:30
  • Yes, this is the answer to the wrong question, but it happens to be the answer to the question that I wanted the answer to, so it fits the definition “This answer is useful”, at least to this user at this time. Aug 3 '20 at 1:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.