ビーマー、TOC、パーツをどのように操作すればよいですか?

ビーマー、TOC、パーツをどのように操作すればよいですか?

私は、複数の部分に分割するべき Beamer プレゼンテーションを作成しています。各部分には、セクション、サブセクションなどが含まれます。

このコード (\partコマンドなし) は正常に動作し、TOC を正しく生成します。

\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}

\partsしかし、コマンドとコマンドのコメントを解除すると、\frame{\partpage}空の TOC が表示されます。

正しい TOC を視覚化するには何を変更すればよいでしょうか? TOC で次の結果を達成したいと考えています (サブセクションなし、より深いレベル):

パート1

+++ セクション 1

+++ セクション 2

パートII

+++ セクション 3

+++ セクション 4

答え1

後で参照できるように、\tableofcontentsbeamerのコマンドは現在のパートのエントリのみをリストします。オプションのパラメータ[part=N]はパートNのエントリをリストします。これは、のセクション10.5に記載されています。ビーマーマニュアル

\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}

ここに画像の説明を入力してください

関連情報