为了达到在每个节前面显示目录的效果,基本的思想是:在每个节开始的时候新建一个帧(frame),帧的内容是当前的章节。具体来说,在正文前添加如下代码。
\AtBeginSection[]
{
\begin{frame}{主要内容}
\transfade%淡入淡出效果
\tableofcontents[sectionstyle=show/shaded,subsectionstyle=show/shaded/hide]
\addtocounter{framenumber}{-1} %目录页不计算页码
\end{frame}
}
版权声明:本文为weixin_45481293原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。