
Estou escrevendo uma apresentação beamer que deve ser dividida em várias partes, cada uma delas contendo seções, subseções, etc.
Este código (sem \part
comandos) funciona bem e gera o TOC corretamente:
\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}
mas quando descomente os \parts
comandos e os \frame{\partpage}
comandos, recebo um sumário vazio.
O que devo mudar para visualizar um TOC correto? Gostaria de alcançar o seguinte resultado no TOC (sem subseções e nível mais profundo):
Parte I
+++ Seção 1
+++ Seção 2
parte II
+++ Seção 3
+++ Seção 4
Responder1
Para referência posterior, o \tableofcontents
comando no beamer lista apenas as entradas para a peça atual. O parâmetro opcional [part=N]
listará as entradas para a parte N. Isso está documentado na seção 10.5 doo manual do projetor.
\documentclass{beamer}
\title{Title}
\subtitle{Subtitle}
\author{Author Of Presentation}
\newcommand{\makepart}[1]{ % For convenience
\part{Title of part #1} \frame{\partpage}
\section{Section} \begin{frame} Section \end{frame}
\subsection{Subsection} \begin{frame} Subsection \end{frame}
\subsection{Subsection} \begin{frame} Subsection \end{frame}
\section{Section} \begin{frame} Section \end{frame}
}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
Part I:
\tableofcontents[part=1]
Part II:
\tableofcontents[part=2]
\end{frame}
\makepart{1}
\makepart{2}
\end{document}