Beamer: frame number in split theme footline
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.
Edit 2021: A very short solution proposed by samcarter on LaTeX.org is:
\setbeamertemplate{page number in head/foot}[totalframenumber] |
Full code by samcarter:
\documentclass{beamer} \usetheme{Warsaw} \title{Beamer Example} \setbeamertemplate{page number in head/foot}[totalframenumber] \begin{document} \begin{frame} abc \end{frame} \end{document} |
Old way posted 2008: We could 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.
Comments (24)