
Estoy escribiendo una presentación proyector que debe dividirse en varias partes, cada una de ellas contiene secciones, subsecciones, etc.
Este código (sin \part
comandos) funciona bien y genera TOC correctamente:
\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}
pero cuando descomento los \parts
comandos y los \frame{\partpage}
comandos me sale un TOC vacío.
¿Qué debo cambiar para visualizar un TOC correcto? Me gustaría lograr el siguiente resultado en el TOC (sin subsecciones y en un nivel más profundo):
Parte I
+++ Sección 1
+++ Sección 2
Parte II
+++ Sección 3
+++ Sección 4
Respuesta1
Para referencia posterior, el \tableofcontents
comando en Beamer solo enumera las entradas para la pieza actual. El parámetro opcional [part=N]
enumerará las entradas para la parte N. Esto está documentado en la sección 10.5 deel manual del proyector.
\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}