Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove the slide count from Beamer footer

Tags:

latex

beamer

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?

like image 542
gotgenes Avatar asked Feb 23 '10 18:02

gotgenes


People also ask

How do I remove a footer in LaTeX beamer?

Or use \setbeamertemplate{footline}[frame number]{} (note the change from "page" to "frame") so the numbering counts frames instead of pages. To completely remove footer, you need to also \setbeamertemplate{footline}{} . See tex.stackexchange.com/questions/223200/…

How do you remove the bottom bar Beamer?

In a similar fashion, you can use \setbeamertemplate{footline}[page number] to replace the footer line in all the slides with a simple slide count. If you want to keep the footer, but remove the header instead, simply use \setbeamertemplate{headline} .

How do you skip slides in Beamer?

It simply consists on adding <0> after \begin{frame} .


1 Answers

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 from beameroutertheminfolines.sty into your .tex file:

 \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%
    }
like image 164
mropa Avatar answered Sep 28 '22 15:09

mropa