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

share|improve this question

1 Answer 1

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:

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

share|improve this answer

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.