latex - 从Beamer页脚删除幻灯片计数

标签 latex 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主题的所有其他内容。我怎样才能做到这一点?

相关问题:How to Remove Footers of LaTeX Beamer Templates?

最佳答案

如果愿意,您可以简单地更改文件beameroutertheminfolines.sty,但这可能不是一个好主意。因此,相反,您只需将脚注代码添加到.tex文件中,并删除帧号行,或者像我一样,只需将其转换为注释即可。因此,您将确切部分从beameroutertheminfolines.sty复制到您的.tex文件中:

 \documentclass{beamer}
    %#comment out the Boadilla theme and uses only the header bar
    %\usetheme[]{Boadilla} 
    \usetheme[secheader]{Boadilla}

      %#make sure to change this part, since it is predefined
      %\defbeamertemplate*{footline}{infolines theme}
      \setbeamertemplate{footline}
        {
      \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}

    %#turning the next line into a comment, erases the frame numbers
        %\insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 

      \end{beamercolorbox}}%
      \vskip0pt%
    }

关于latex - 从Beamer页脚删除幻灯片计数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2320776/

相关文章:

latex - 在使用 LaTeX Beamer 进行分项时,我可以转到另一个帧吗?

python - 网络x : multiple figure with consistent node placement

r - 交叉引用在 rmarkdown 投影仪演示中不起作用

LaTeX:删除法语中的空格

algorithm - 使用行号在 Lyx 2.1.1 中插入算法

linux - sed 将 "_"、 "&"、 "$"分别替换为 "\_"、 "\&"、 "\$"

image - Beamer:如何将图像显示为分步图像

latex - 引文、表格和方程超出了投影仪中的页面宽度

latex - 在单个 LaTeX 表格单元格中添加自定义左间距

LaTex:在环境的开头启动命令并在结束定义中结束