7

The command

\setbeamertemplate{footline}[frame number]{}

issues the frame number in the format a/b where a is current and b total. Is there a command that produces just a, in the same color, character, position etc? I'd prefer to avoid having to edit things at tex level or producing a new command.

  • 3
    Try on preamble \setbeamertemplate {footline}{\quad\hfill\insertframenumber\strut\quad} – Sigur Oct 10 '16 at 23:55
13

The original definition from beamerbaseauxtemplates.sty is

\defbeamertemplate{footline}{frame number}
{
  \hfill%
  \usebeamercolor[fg]{page number in head/foot}%
  \usebeamerfont{page number in head/foot}%
  \insertframenumber\,/\,\inserttotalframenumber\kern1em\vskip2pt%
}

So if you want to keep colour, character position etc., try with

\setbeamertemplate{footline}{% 
  \hfill% 
  \usebeamercolor[fg]{page number in head/foot}% 
  \usebeamerfont{page number in head/foot}% 
  \insertframenumber%
  %\,/\,\inserttotalframenumber
  \kern1em\vskip2pt% 
}

But I'm not sure if this fulfils you not "tex level or producing a new command" requirements, whatever this means.


With an up-to-date version of beamer, this can be simplified to

\setbeamertemplate{footline}{
  \hfill%
  \usebeamercolor[fg]{page number in head/foot}%
  \usebeamerfont{page number in head/foot}%
  \setbeamertemplate{page number in head/foot}[framenumber]%
  \usebeamertemplate*{page number in head/foot}\kern1em\vskip2pt%
}
  • That's good, thank you. I perhaps should also increase the \vskip value since now there is no / symbol, but I guess this is personal taste. – jj_p Oct 11 '16 at 16:28
  • @jj_p The \vskip controls the vertical placement, this should not have changed. If you want to compensate the missing / you want a horizontal space. – user36296 Oct 11 '16 at 21:29
  • Actually, I'm bothered not by the horizontal spacing, but the vertical, since \vskip space is counted from the / symbol, which is taller than the numbers, so this is why I considered changing it :) – jj_p Oct 11 '16 at 21:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.