36

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

44

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

Even simpler method is

\begin{frame}
\frametitle{Outline}
  \tableofcontents
\end{frame}
  • 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. – Schweinebacke 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

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.