# How to number slides in the beamer theme Hannover ?

I used the package beamer outer theme split numbered to make it for themes with navigation. But the theme Hannover is different. Is re-defining the footline the only choice, or is there some other convenient way?

Update: the solutions like

\useoutertheme{infolines}


or

\setbeamertemplate{footline}{\insertframenumber/\inserttotalframenumber}


can both do the job, but not so grace as I expect. Both of them will ruin the layout of Hannover. It is better to put the page number on the bottom of the left column, or at the left side of the navigation row.

-
I don't know about the outer theme split numbered. Do you mean split? That doesn't have slide numbers by default. Do you mean infolines? –  Matthew Leingang Mar 11 '11 at 14:28
@Matthew: I meant this one beamer_splitnumber sites.google.com/site/shinhsin/beamer_splitnumber –  gerry Mar 11 '11 at 16:01

You can install an outer theme on top of a complete theme, as in:

\documentclass{beamer}
\title{Test of Hannover with slide numbers}
\usetheme{Hannover}
\useoutertheme{infolines}

\begin{document}
\begin{frame}
\maketitle
\end{frame}

\begin{frame}
\begin{itemize}
\item Abel
\item Baker
\item Charlie
\end{itemize}
\end{frame}

\begin{frame}
\begin{itemize}
\item Abel
\item Baker
\item Charlie
\end{itemize}
\end{frame}

\end{document}


-
Thank you. But since this theme already have a menu part, I'd rather move the information in the infolines there. Is that possible ? –  gerry Mar 11 '11 at 15:58
Anything's possible. What do you want in the footline? Just the frame number? –  Matthew Leingang Mar 11 '11 at 17:00
If the frame number can be moved there, the time stamp, or even logos can also be added there in the same way, right? Whatever,the frame number itself is enough for me now. –  gerry Mar 11 '11 at 17:14

If you only want to have the slide numbers in the footer, I use this (I adapted Matthews code):

\documentclass{beamer}
\title{Test of Hannover with slide numbers}
\usetheme{Hannover}
\setbeamertemplate{footline}[frame number]

\begin{document}
\begin{frame}
\maketitle
\end{frame}

\begin{frame}
\begin{itemize}
\item Abel
\item Baker
\item Charlie
\end{itemize}
\end{frame}

\end{document}


For more details on how to modify beamer templates you can also have a look at the Beamer User Guide

-

I find a way finally. It is not a light solution, but it looks better.

My code is below. Maybe someone else also need it.

\documentclass{beamer}
\title[Hack Hannover]{Hannover with slide numbers}
\author[Beamer]{Beamer}
\usetheme{Hannover}
\def\swidth{1.6cm}
\setbeamersize{sidebar width left=\swidth}
\setbeamertemplate{sidebar left}
{
{\usebeamerfont{title in sidebar}%
\vskip1.5em%
\usebeamercolor[fg]{title in sidebar}%
\insertshorttitle[width=\swidth,center,respectlinebreaks]\par%
\vskip1.25em%
}%
{%
\usebeamercolor[fg]{author in sidebar}%
\usebeamerfont{author in sidebar}%
\insertshortauthor[width=\swidth,center,respectlinebreaks]\par%
\vskip1.25em%
}%
\hbox to2cm{\hss\insertlogo\hss}
\vskip1.25em%
\vfill
\hbox to2cm{\hskip0.6cm\usebeamerfont{subsection in
sidebar}\strut\usebeamercolor[fg]{subsection in
\vskip3pt%
}%

\begin{document}
\begin{frame}
\maketitle
\end{frame}

\section{Introduction}
\begin{frame}
\begin{itemize}
\item Abel
\item Baker
\item Charlie
\end{itemize}
\end{frame}

\section{Conclusions}
\begin{frame}
\begin{itemize}
\item Abel
\item Baker
\item Charlie
\end{itemize}
\end{frame}

\end{document}

-
Thanks for sharing the solution. –  day May 27 '12 at 14:03