I'm writing a beamer presentation that should be divided into several parts, each of them contains sections, subsections, etc.
This code (without \part
commands) works fine and it generates TOC correctly:
\documentclass{beamer}
\title{Title}
\subtitle{Subtitle}
\author{Author Of Presentation}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\tableofcontents
\end{frame}
%\part{Part 1}
%\frame{\partpage}
\section{Section 1}
\begin{frame}
Section 1
\end{frame}
\subsection{Subsection 1.1}
\begin{frame}
Subsection 1.1
\end{frame}
\subsection{Subsection 1.2}
\begin{frame}
Subsection 1.2
\end{frame}
\section{Section 2}
\begin{frame}
Section 2
\end{frame}
%\part{Part 2}
%\frame{\partpage}
\section{Section 3}
\begin{frame}
Section 3
\end{frame}
\subsection{Subsection 3.1}
\begin{frame}
Subsection 3.1
\end{frame}
\subsection{Subsection 3.2}
\begin{frame}
Subsection 3.2
\end{frame}
\section{Section 4}
\begin{frame}
Section 4
\end{frame}
\end{document}
but when I uncomment the \parts
commands and the \frame{\partpage}
commands I get an empty TOC.
What should I change to visualize a correct TOC? I would like to achieve the following result in the TOC (no subsections and deeper level):
Part I
+++ Section 1
+++ Section 2
Part II
+++ Section 3
+++ Section 4
\tableofcontents
slide to the current part, or use the[part=N]
optional parameter to get the ToC for a given part. Beamer manual, section 10.5. To get your exact effect, you'll need multiple\tableofcontents
commands on one slide.\tableofcontents
command pretty useless in my opinion.