Page LayoutBeamer: Frame vs page numbering

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
chucktheplant
Posts: 2
Joined: Thu Mar 04, 2010 12:33 pm

Beamer: Frame vs page numbering

Post by chucktheplant »

Hi,

I hope that my question is not too dopey since it is my first post here and I would like to avoid to embarrass myself ;)


I would like to change in my talk with Beamer-class the frame-numbering to a page-numbering -- which I managed. I suppose it is not the most elegant solution since I changed to complete footer definition from my favorite theme (CambridgeUS). The missing thing is now that I do not know how to get the total number of pages:

Code: Select all

\defbeamertemplate*{footline}{infolines theme}
{
  \leavevmode%
...
	\insertpagenumber{} / \WHATISTHETOTALPAGENUMBER \hspace*{2ex}
%    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
  \end{beamercolorbox}}%
  \vskip0pt%
}
What could I use instead of my placeholder '\WHATISTHETOTALPAGENUMBER'? :? Maybe there is also a more convenient solution without changing the whole footer definition?

If possible I am looking for a 'total page number' without counting the appendix/backup-slides. Currently I am masking appendix-slides using the appendixnumberbeamer style-file -- but I guess that I have to rewrite appendixnumberbeamer.sty anyway to use page numbers instead of frame numbers as well...

Cheers & Thanks for any ideas,
Thomas

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Beamer: Frame vs page numbering

Post by kaiserkarl13 »

I seem to recall there are two things that do what you wish: \inserttotalframenumber and \insertpresentationendpage. You might play around with these.

The beamer manual, while quite long, contains references to both of these.

If you're still not getting what you desire, you might simply set a bookmark to "lastpage" right before \end{document} and use that with the \pageref command to get the last page number the old fashioned way.
chucktheplant
Posts: 2
Joined: Thu Mar 04, 2010 12:33 pm

Re: Beamer: Frame vs page numbering

Post by chucktheplant »

\insertpresentationendpage is what I was looking for :)

Many thanks -- Thomas
Post Reply