我准备制作一个较长的演示文档。在安装为目录中的section编号的模板之后,由于section的编号是从1
开始连续自增,所以没什么问题。
为了实际使用的便利,我准备将整体内容分为两个beamer文档。然而,两份文档都会从1
开始为section重新编号——这是我不希望看到的。
在下面这份实际上是第二份演示文稿中,我希望目录中出现的第一个section的编号为3
,但是,我在导言区使用\addtocounter{section}{2}
却并不奏效。
\documentclass{beamer}
\setbeamertemplate{section in toc}[sections numbered]
\addtocounter{section}{2}
\begin{document}
\frame{
\contentsname
\tableofcontents
}
\section{sectionthree}
\frame{\frametitle{sectionthree}some text}
\section{sectionfour}
\frame{\frametitle{sectionfour}some text}
\end{document}