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 infolines as outer theme and I like it. I would like just to display the current slide number without the total slide number (i.e. instead of "n / N" just "n") in the bottom right corner, keeping the rest of the layout provided by infolines.

How can I achieve this?

share|improve this question
    
Does the following post provide a solution: tex.stackexchange.com/questions/13223/…? That is, using: \setbeamertemplate{footline}{\insertframenumber} –  Werner Oct 26 '11 at 18:05
    
Thanks for your comment, Werner. However, your code inserts JUST a number and deletes the rest of the formatting. I'd like to keep the footer provided by infolines, just instead of having "n/N" I'd like "n" –  Danilo Oct 26 '11 at 18:09

1 Answer 1

up vote 5 down vote accepted

You can redefine set the footline beamer template in a way similar to the original definition in the file beamerouterthemeinfolines.sty, but suppressing / \inserttotalframenumber:

\documentclass{beamer}
\usetheme{Warsaw}
\useoutertheme{infolines}

\makeatletter
\setbeamertemplate{footline}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor~~\beamer@ifempty{\insertshortinstitute}{}{(\insertshortinstitute)}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
    \insertframenumber\hspace*{2ex} 
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatother

\begin{document}

\begin{frame}Test\end{frame}
\begin{frame}Test\end{frame}
\begin{frame}Test\end{frame}

\end{document}
share|improve this answer
    
Wonderful, thanks! :) –  Danilo Oct 26 '11 at 18:17

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.