从 Beamer 页脚中删除幻灯片计数
我想从 Beamer 演示文稿的页脚(脚线)中删除幻灯片计数(例如,SLIDE_NUMBER / TOTAL_SLIDES
),而不完全删除页脚。我正在使用 Boadilla 主题,它使用 infolines
外部主题。在 beamerouterthemeinfolines.sty
文件中,我们找到以下脚线定义:
\defbeamertemplate*{footline}{infolines theme}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor~~(\insertshortinstitute)
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
我需要重新定义这个外部主题,使其不具有 \insertframenumber{} / \inserttotalframenumber\ hspace*{2ex}
在其中,或者以其他方式定义一个新的外部主题,该外部主题继承 infolines 主题的其他所有内容。我该怎么做?
I would like to remove the slide count (e.g., SLIDE_NUMBER / TOTAL_SLIDES
) from the footer (footline) of a Beamer presentation, without removing the footer entirely. I am using the Boadilla theme, which uses the infolines
outer theme. In the beamerouterthemeinfolines.sty
file, we find the following definition for the footline:
\defbeamertemplate*{footline}{infolines theme}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor~~(\insertshortinstitute)
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
I need to essentially redefine this outer theme such that it doesn't have the \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
in it, or otherwise define a new outer theme that inherits everything else from the infolines theme. How can I do this?
Related question: How to Remove Footers of LaTeX Beamer Templates?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
由于
beameroutertheminfolines.sty
自 2010 年以来已发生变化,目前将\setbeamertemplate{页码放在 head/foot}{} 中 就足够了
序言中的
。
As
beameroutertheminfolines.sty
has changed since 2010, for now it's enough to put\setbeamertemplate{page number in head/foot}{}
in preamble.
如果您愿意,可以简单地更改文件
beamroutertheminfolines.sty
这可能不是一个好主意。因此,您只需将脚线代码放入 .tex 文件中,然后删除帧编号行,或者像我一样,将其转换为注释。因此,您将beameroutertheminfolines.sty
中的确切部分复制到您的 .tex 文件中:If you like you can simply change the file
beameroutertheminfolines.sty
which might be not that of a good idea. So instead you simply take the code of the footline into your .tex file and delete the line for the frame numbers or, as i did, simply turn it into a comment. So you copy the exact part frombeameroutertheminfolines.sty
into your .tex file:来自 https://latex.org/forum/viewtopic.php?t=6694
from https://latex.org/forum/viewtopic.php?t=6694