Page Layoutbeamer | Display Frame Numbers instead of Page Numbers

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
itatitl
Posts: 13
Joined: Thu Mar 24, 2011 8:20 am

beamer | Display Frame Numbers instead of Page Numbers

Post by itatitl »

I am using the beamer class to prepare a presentation.

Code: Select all

\documentclass{beamer}

\pagestyle{plain}

\setbeamertemplate{footline}[frame number]

\begin{document}
  \begin{frame}
    This is frame 1
  \end{frame}
  \begin{frame}
    This is frame 2 \\
    \pause
    This  also is frame 2
    \pause
  \end{frame}%
\end{document}
I want to display the frame numbers and not the page number of the PDF document. Is that possible?

Thanks for any suggestion.
Last edited by localghost on Tue Oct 23, 2012 4:42 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gadgetto
Posts: 11
Joined: Wed Oct 24, 2012 8:28 am

beamer | Display Frame Numbers instead of Page Numbers

Post by gadgetto »

Hi itatitl,

remove the pagestyle-line and replace

Code: Select all

\setbeamertemplate{footline}[frame number]
by

Code: Select all

\setbeamertemplate{footline}{\hfill\insertframenumber~\vrule~\inserttotalframenumber}
Best regards,
Gadgetto
Post Reply