在乳胶Beamer中,幻灯片的总数包括仅包含每个部分/小节之前内容表的幻灯片,这不必要地增加了幻灯片的总数。有什么方法可以防止这种情况吗?

换句话说:我不希望包含TOC的幻灯片具有页码。

亲切的问候,mefix

有帮助吗?

解决方案

添加行

\addtocounter{framenumber}{-1}

在每个帧中,您希望从总数中排除。

另请参阅此 stackoverflow上的其他问题, ,这可能会进一步帮助您。

其他提示

框架选项 noframenumbering 将排除某些框架从增加Framenumber。我建议将其与 plain 选项,否则,可能会使带有TOC的帧显示与以前的帧相同的帧号。

\documentclass{beamer}

\setbeamertemplate{footline}[frame number]

\AtBeginSection[]{%
    \begin{frame}[noframenumbering,plain]
    \tableofcontents[currentsection]
    \end{frame}
}

\begin{document}

\section{title}
\begin{frame}
\end{frame}

\end{document}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top