开发者

Increase page numbers in LaTeX Beamer

开发者 https://www.devze.com 2023-01-14 02:48 出处:网络
in LaTeX Beamer, the total number of slides includes those that only contain the table of contents before each section/subsection, which increases the total number of slides unnecessarily. Is there an

in LaTeX Beamer, the total number of slides includes those that only contain the table of contents before each section/subsection, which increases the total number of slides unnecessarily. Is there any w开发者_JAVA技巧ay to prevent this?

In other words: I don't want slides containing the TOC to have page numbers.

Kind regards, mefiX


Add the line

\addtocounter{framenumber}{-1}

on each frame you wish to exclude from total count.

See also this other Question here on Stackoverflow, which might assist you further.


The frame option noframenumbering will exclude certain frames from increasing the framenumber. I would recommend to use it in combination with the plain option, otherwise it might look that the frames with the toc will show the same frame number as the frame before.

\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}


Add [plain] to not display the header and the footer. Finally, add \addtocounter{framenumber}{-1} to not increment page number.

\AtBeginSection[]{%
    \begin{frame}[plain]
    \addtocounter{framenumber}{-1}
    \tableofcontents[currentsection]
    \end{frame}
} 
0

精彩评论

暂无评论...
验证码 换一张
取 消