[Tex/LaTex] Beamer: AtBeginSection and insertsubsectionnavigation

beamer

I'm trying to get a presentation which has for each section a leading slide which shows the name of the current section as well as a table of the subsections belonging to this section.

The first part is easy, I'm using

\AtBeginSection[]%
{%
\begin{frame}[plain]%
  \begin{center}%
    \usebeamerfont{section title}\insertsection%
  \end{center}%
\end{frame}%

However trying to use the \insertsubsectionnavigation command to insert the subsection table fails (maybe due to the fact that this command is meant to be used in templates?).

Is there anyway to get beamer to display the table for me, or do I have to re-create the code used for the \insertsubsectionnavigation command?

EDIT:

Okay, scratch that, after putting the insertsection and the insertsubsectionnavigation in beamercolorboxes they both show up, now I just have to figure out how to make them look good 🙂

Best Answer

Note that beamer can do this out-of-the-box:

\AtBeginSection[]{%
  \begin{frame}<beamer>
    \frametitle{Outline}
    \tableofcontents[sectionstyle=show/hide,subsectionstyle=hide/show/hide]
  \end{frame}
  \addtocounter{framenumber}{-1}% If you don't want them to affect the slide number
}

See the beamer manual, page 100, section 10.5 "Adding a Table of Contents", for more information.

Related Question