LaTeX-beamer 中 tableofcontents 技巧小结

原文链接

1、列目录时,隐藏所有的小节

\tableofcontents[hideallsubsections]

2、自动压缩,以显示全部内容

\begin{frame}[shrink]

3、在每一节(或小节)前增加目录
命令 \AtBeginSection[]{} 和 \AtBeginSubsection[]{} 。比如下面两个命令可以实现在每一节前显示文档目录,隐藏所有小节标题,并高亮当前节标题,而在每一小节前显示的目录中,只会显示本节的小节标题,并高亮当前小节标题,其他节的小节标题不显示,只显示节标题。

\AtBeginSection[]
{

\begin{frame}
        \tableofcontents[currentsection,hideallsubsections]
\end{frame}

}

\AtBeginSubsection[]
{

\begin{frame}[shrink]
        \tableofcontents[sectionstyle=show/shaded,subsectionstyle=show/shaded/hide]
 \end{frame}

}

4、frametitle的两种写法

\begin{frame}

  \frametitle{标题}

\end{frame}

\begin{frame}{标题}

\end{frame}

btw: 其实这些技巧在手册中都有,只是手册太长,一直没有完整的读过。结果每次都有新发现。喜欢Beamer,不单因为Beamer确实比较方便、漂亮,更重要的是Beamer的作者对于幻灯片的制作和使用有自己独到的见解。内容的组织,颜色的搭配,时间的控制,都有所涉及。让人感觉非常专业,自然产生一种信任。

猜你喜欢

转载自blog.csdn.net/dahaiyudong/article/details/79970906
今日推荐