6

I am using the warsaw theme and I need to have the footer with frame number the header of the code is:

\mode<presentation>
{
\usetheme{Warsaw}
\usecolortheme{crane}
\setbeamercovered{transparent}
%  \setbeamertemplate{footline}[frame number]
}

If I uncomment the \setbeamertemplate{footline}[frame number] it would cause the footer to disappear. I am quoting the paragraph from this site:

To get slide numbers in the footer (next to the title of the presentation) replace your \title{} command with this:

 \title[Abbrev.Title\hspace{2em}\insertframenumber/\inserttotalframenumber]{Full Title}

In this case, we must provide enough value to \hspace to align the slide number. Is there any better way?

5

You could use \hfill to produce a stretchable space. Here I use makebox to get a fixed width, a bit shorter than half of the frame width, and \hfill to align at the right:

\title[{\makebox[.45\paperwidth]{Abbrev.Title\hfill%
       \insertframenumber/\inserttotalframenumber}}]{Full Title} 

I used the additional braces to protect the square brackets within the optional argument of \title.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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