![如何在 beamer 中为每个部分添加目录以及每个部分之前的小节?](https://linux22.com/image/477072/%E5%A6%82%E4%BD%95%E5%9C%A8%20beamer%20%E4%B8%AD%E4%B8%BA%E6%AF%8F%E4%B8%AA%E9%83%A8%E5%88%86%E6%B7%BB%E5%8A%A0%E7%9B%AE%E5%BD%95%E4%BB%A5%E5%8F%8A%E6%AF%8F%E4%B8%AA%E9%83%A8%E5%88%86%E4%B9%8B%E5%89%8D%E7%9A%84%E5%B0%8F%E8%8A%82%EF%BC%9F.png)
我想在每个部分的开头添加一个目录没有各小节和目录和子部分。我能做什么?
答案1
\tableofcontents
您可以使用和-command 的可选参数来实现这一点\AtBeginSection
。
您可以像这样定义章节和小节的样式:
sectionstyle=<current section>/<other sections>
subsectionstyle=<current subsection>/<other subsections in current secton>/<other subsections>
有效关键字为show
、shaded
和hide
这将放置一个没有子部分的目录和一个在每个部分包含当前部分子部分的目录:
\AtBeginSection[]
{
\begin{frame}{title}
\tableofcontents[
sectionstyle=show/show,
subsectionstyle=hide/hide/hide
]
\end{frame}
\begin{frame}{title}
\tableofcontents[
currentsection,
sectionstyle=show/hide,
subsectionstyle=show/show/hide
]
\end{frame}
}
请参阅 Beamer 用户指南第 99-100 页的解释