Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
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
add comment

3 Answers

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}
\setbeamertemplate{headline}{} % removes the headline that infolines inserts

\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}

sample code

share|improve this answer
    
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
add comment

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

share|improve this answer
add comment
up vote 7 down vote accepted

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

Hannover with slide numbers

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%
  \insertverticalnavigation{\swidth}%
  \vfill
  \hbox to2cm{\hskip0.6cm\usebeamerfont{subsection in
      sidebar}\strut\usebeamercolor[fg]{subsection in
      sidebar}\inserttotalframenumber-\insertframenumber\hfill}%
  \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}
share|improve this answer
1  
Thanks for sharing the solution. –  day May 27 '12 at 14:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.