通常我使用
\AtBeginSection[]
{
\begin{frame}<beamer>{Gliederung}
\tableofcontents[currentsection]
\end{frame}
}
在我的序言中,为了实现这一点,在新的部分开始之前,目录会显示出来,并突出显示现在开始的部分。
在我实际上正在准备的演讲中,我有一个特殊的部分,我不希望出现这种行为。从之前的部分开始的过渡应该是“无声的”。所有其他部分都应该像现在一样开始。
我确信这一定是可能的。
在投影仪手册中,命令\AtBeginSection
解释如下:
\AtBeginSection[special star text]{text}
如果使用 star 命令声明特殊节\section*
,章节目录将不会出现。这个解决方案是第一个想到的,但可能会改变该部分在文档中的表示方式。
另一种方法(实验性的,我从未测试过)是使用布尔参数。如果设置了布尔参数,则不会打印代码。然后,您正常声明您的部分,但在代码周围设置布尔值。
这是一个可以解决问题的代码示例:
\RequirePackage{ifthen} % package required
\newboolean{sectiontoc}
\setboolean{sectiontoc}{true} % default to true
\AtBeginSection[]
{
\ifthenelse{\boolean{sectiontoc}}{
\begin{frame}<beamer>{Gliederung}
\tableofcontents[currentsection]
\end{frame}
}
}
\newcommand{\toclesssection}[1]{
\setboolean{sectiontoc}{false}
\section{#1}
\setboolean{sectiontoc}{true}
}
然后在文档中,只需将您的特殊部分声明为\toclesssection{My section without the toc}
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)