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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

%  \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?

share|improve this question
up vote 2 down vote accepted

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:

       \insertframenumber/\inserttotalframenumber}}]{Full Title} 

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

share|improve this answer

Your Answer


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.