# slide numbering in Beamer class (Warsaw theme)

I'm using the beamer class and Warsaw theme. Is there any way to have slide numbering at the bottom of the page and on the left (as 2/10) in this theme?
Here is my code:

\documentclass{beamer}‎
‎‎‎‎‎\usetheme{Warsaw‎}‎‎
‎\begin{document}‎
‎‎\title{How to number the ...?‎}
‎‎\author{My name‎}
‎‎\date{06‎.06.2005}
‎\begin{frame}‎
‎\titlepage‎
‎‎‎\end{frame}‎‎‎
‎‎\section{Intro‎}‎
‎\begin{frame}‎
‎‎\frametitle{There are many ...‎}‎
‎‎\end{frame}‎‎
‎\end{document}‎


## 3 Answers

You need to select an outer theme. \useoutertheme{infolines} should give you the desired format.

If you just want to include the numbers, you have to adopt the original code for the footline from the outer theme shadow which in turn uses the the format from the split theme.

\documentclass{beamer}
\usetheme{Warsaw}
\title{How to number the ...?}
\author{My name}
\date{06‎.06.2005}
\defbeamertemplate*{footline}{shadow theme}
{%
\leavevmode%
\hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fil,rightskip=.3cm]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertframenumber\,/\,\inserttotalframenumber\hfill\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle%
\end{beamercolorbox}}%
\vskip0pt%
}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\section{Intro‎}
\begin{frame}
\frametitle{There are many ...}
\end{frame}
\end{document}


Note that by moving the \title etc into the preamble, this will also be used for the PDF metadata.

• Do I put this command after \usetheme{Warsaw‎}‎‎? – jeff Jan 3 '11 at 13:49
• Yes. But it does change more than just the numbers in the footer. – Carsten Thiel Jan 3 '11 at 13:56
• Thanks, but what should I do if I don't want to have the the institution name or the current date? – jeff Jan 3 '11 at 14:04
• In that case you need to design the footline element manually, using the code from the Warsaw theme, see edit above. – Carsten Thiel Jan 3 '11 at 14:53
• Great. This is exactly what I needed. Thanks man. – jeff Jan 3 '11 at 18:59

Just stumpled upon this while googling.

A slightly more forward approach to simply add page numbers to the old macro would be

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


as seen on the texblog ( http://texblog.net/latex-archive/uncategorized/beamer-footline-frame-number/ ).

Just add it to the preamble. Works with "Warsaw", "Copenhagen", "Malmoe" and "Luebeck.

• Works for "Berlin" as well! – berezovskyi Mar 31 '15 at 15:21
• .. .. however, it shows counting on/from title page. – Wings Jan 10 at 20:18

If placing the frame numbers on the right hand site is sufficient, this can now easily be done with by using \setbeamertemplate{page number in head/foot}[totalframenumber] after the theme.

MWE:

\documentclass{beamer}
\usetheme{Warsaw}
\setbeamertemplate{page number in head/foot}[totalframenumber]

\title{How to number the ...?‎}
\author{My name}
\date{06‎.06.2005}

\begin{document}

\begin{frame}
\titlepage
\end{frame}
\section{Intro}
\begin{frame}
\frametitle{There are many ...‎}
\end{frame}
\end{document}


(this requires beamer version >= 3.50)