tags:

views:

2215

answers:

4

I am using the beamer document class in latex to make a presentation. I will have a number of back up slides which are there for offline viewing, reference etc. Beamer has a feature that shows the progress through the presentation as {page#}/{total pages} on each slide. I would really like it if {total pages} was equivalent to my total number of pages w/out counting the back up slides (I don't want to discourage my audience on the first page!). Does anyone know how this can be done?

+4  A: 

To manually fix the total frame count to a certain number, say 25, you could add the following command

\renewcommand{\inserttotalframenumber}{25}

right after the \begin{document} command.

You can also add the \appendix command right before the beginning of your backup slides, so that the corresponding sections/subsections do not appear in the table of contents/navigation structure.

It should be possible to tweak the renewcommand above so that it automatically uses the last frame number before the appendix, but I don't know how to do it.

Fanfan
\renewcommand{...}{25} works great, and you are right, it would be nice if you could set it by using the frame count of the last slide b/f the back up.Just to clarify, adding the \appendix command leaves all subsequent [sub][sub]sections out of the ToC but does put them in the nav structure
mwlebour
+2  A: 

Fanfan, thanks for your answer, your answer steered me to this sty file that one can include in a beamer document class that will automatically count only the number of frames before the appendix, and then restart the a separate count for the appendix slides, pretty neat.

http://www.ensta.fr/~lelong/Latex/appendixnumberbeamer.sty

Thanks also to Jérôme LELONG for having this available online.

mwlebour
The link is dead.
fuenfundachtzig
+2  A: 

Updated link for the appendixnumberbeamer style file: http://www-ljk.imag.fr/membres/Jerome.Lelong/latex/appendixnumberbeamer.sty

Partha
+3  A: 

I have defined two commands to do this:

\newcommand{\beginbackup}{
   \newcounter{framenumbervorappendix}
   \setcounter{framenumbervorappendix}{\value{framenumber}}
}
\newcommand{\backupend}{
   \addtocounter{framenumbervorappendix}{-\value{framenumber}}
   \addtocounter{framenumber}{\value{framenumbervorappendix}} 
}

You can then use \beginbackup and \endbackup before and after your backup slide to adjust the number of slides.

For my beamer template I also like to add

\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~~(\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} % hier hat's sich geändert
  \end{beamercolorbox}}%
  \vskip0pt%
}

in the definition of the \beginbackup command to hide to total page number in the backup slides, otherwise you'll get something like "24/18".

Using all this, your slides will be numbered like "x/Y" for all slides before the backup, where Y is the total number of slides before the first backup slide, and the backup slides will continue the numbering of the previous slides.

fuenfundachtzig