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.


1 Answer 1


The original definition from beamerbaseauxtemplates.sty is

\defbeamertemplate{footline}{frame number}
  \usebeamercolor[fg]{page number in head/foot}%
  \usebeamerfont{page number in head/foot}%

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

  \usebeamercolor[fg]{page number in head/foot}% 
  \usebeamerfont{page number in head/foot}% 

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

  \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, 2016 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. Oct 11, 2016 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, 2016 at 21:55
  • This solution also removes the colored boxes from beamer styles that have them (like e.g. \usetheme{AnnArbor}).
    – divenex
    Mar 14 at 12:13
  • 1
    @divenex Try \setbeamertemplate{page number in head/foot}[framenumber] or ask a new question Mar 14 at 12:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .