TeXblog

 Typography with TeX and LaTeX

Beamer: frame number in split theme footline

12 July 2008 by Stefan Kottwitz

Yet again somebody in the mrunix forum asked for an advice how to put the frame number into the footline of his beamer presentation. He was using the “Warsaw” outer theme. The first solution

\setbeamertemplate{footline}[frame number]

will just overwrite the “Warsaw” footline.

Possible solutions are: to use a different outer theme or to change the “Warsaw” footline. “Warsaw” uses the split outher theme, a workaround for insertion of the frame number should consider that and will be usable for other themes like “Copenhagen”, “Luebeck” and “Malmoe”. Inspection of the file beamerouterthemesplit.sty reveals that the footline uses the \insertshorttitle macro in its right part. So a quick workaround could be to redefine that macro:

\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
  \oldmacro\hfill%
  \insertframenumber\,/\,\inserttotalframenumber}

If you want to see more details you could look at example source code and its pdf output.

This topic was discussed on mrunix.de and in the Matheplanet forum.

This entry was posted on 12 July 2008 at 8:32 PM and is filed under Presentations, plain TeX. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

1 response about “Beamer: frame number in split theme footline”

  1. Stefan Kottwitz said:

    Here’s a modification using \expandafter like I’ve described in this blog post:

    \expandafter\def\expandafter\insertshorttitle\expandafter{%
      \insertshorttitle\hfill%
      \insertframenumber\,/\,\inserttotalframenumber}

Leave a Reply