如何在Latex Beamer中将目录分成多个幻灯片?

50

我目前正在为演示文稿准备一些幻灯片,使用的是带有Beamer包的Latex。 目前,我的演示文稿的各个部分和子部分会导致大纲文本在目录幻灯片上超出页面底部。

有没有办法将我的目录拆分成多个幻灯片显示?

4个回答

69
\begin{frame}[allowframebreaks]{Outline}
以上代码将会把任何溢出部分分割到多张幻灯片中。

4
这对于我的关于文献的问题也起作用了。谢谢! - M. Tibbits

15

你也可以尝试:

\begin{frame}[shrink]{Outline}
上面的代码将尝试缩小内容以适应框架边距。

5
从Beamer的用户指南中可以得知:绝不要使用更小的字体大小来“在一帧中放更多内容”。绝不要使用“邪恶”的shrink选项。 - Júda Ronén

13

您可以使用以下方法将演示文稿分为多个部分:

\part{1} .... \part{n}

那么你可以通过以下方式在另一张幻灯片上显示每一部分的目录:

\tableofcontents[part=1]
如果您使用
\tableofcontents[currentsection]

只有该部分的目录将被显示...


将解决方案链接在 https://tex.stackexchange.com/questions/65656/how-do-one-reset-the-section-numbers-in-beamer 这里,以供其他需要在部分之间重置章节编号的人参考。 - dfernan

2
如果你手动分割目录,你可以更精细地控制选择好的断点:
\documentclass{beamer}

\begin{document}
    
\begin{frame}
  \only<1>{\tableofcontents[sections={1-4}]}
  \only<2>{\tableofcontents[sections={5-}]} 
\end{frame} 

\section{title1}
\begin{frame}
content...
\end{frame}
\section{title2}
\begin{frame}
content...
\end{frame}
\section{title3}
\begin{frame}
content...
\end{frame}
\section{title4}
\begin{frame}
content...
\end{frame}
\section{title5}
\begin{frame}
content...
\end{frame}
\section{title6}
\begin{frame}
content...
\end{frame}
\section{title7}
\begin{frame}
content...
\end{frame}
\section{title8}
\begin{frame}
content...
\end{frame}

    
\end{document}

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接