For a large lecture (600+ slides) I need ToC slides that show the ToC only for the current section, including all subsections and subsubsections.
However, apparently this does not work. When I pass the sections={<number>} option to \tableofcontents, the result is a ToC that shows all subsections, but only the subsubsections of one subsection. In the MWE this is always the content of the first subsubsection, but in my larger lecture slides document, it is (for whatever reason) always the second subsubsection.
When I remove the sections option, everything works as expected.
Is this a bug? (I have tried beamer version 3.10. as well as the recent version 3.17)
% def\beamer@version{3.10}
\documentclass{beamer}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\newcommand\InsertToC[1][]{
\begin{frame}{Outline}
\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]
\end{frame}
}
\begin{document}
\section{Lecture 1}
\InsertToC[sections={\thesection}] % shows only subsubsections of one subsection
\subsection{Topic 1}
\subsubsection{Motivation}
\subsubsection{Conclusion}
\frame{Stuff}
\subsection{Topic 2}
\InsertToC % shows subsubsections of all subsections
\subsubsection{Motivation}
\subsubsection{Conclusion}
\frame{Stuff}
\end{document}
Output of \tableofcontents with sections option (unexpected):

Output of \tableofcontents without sections option (expected):

beamerregarding\subsubsections, as Till was clearly not keen on their use in presentations. I have addressed some of these over the past few months: could you try the very latestbeamerrelease (3.17)? – Joseph Wright♦ May 8 '12 at 16:52\ProvidePackageRCS $Header$stuff. – Daniel May 8 '12 at 18:45