# How to make “outline” frame in Beamer?

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

You can do this using \AtBeginSection:

\documentclass{beamer}

\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:

• That highlights the section, but if it has subsections, they are not highlighted. Do you know if there is a way to do that? – Sune Jakobsen May 6 '16 at 16:25
• – M.C. Apr 19 '17 at 13:48

Even simpler method is

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

• 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