
저는 여러 부분으로 나누어야 하는 비머 프레젠테이션을 작성 중입니다. 각 부분에는 섹션, 하위 섹션 등이 포함되어 있습니다.
이 코드( \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를 시각화하려면 무엇을 변경해야 합니까? 목차에서 다음과 같은 결과를 얻고 싶습니다(하위 섹션이 없고 더 깊은 수준이 없음).
1부
+++ 섹션 1
+++ 섹션 2
2부
+++ 섹션 3
+++ 섹션 4
답변1
나중에 참조할 수 있도록 \tableofcontents
비머의 명령은 현재 부품에 대한 항목만 나열합니다. 선택적 매개변수는 [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}