Document Classes ⇒ Inserting pages number
Inserting pages number
I'm using the Beamer class for writing my dissertation slides...
how can I do if I want to add the numbers of pages in my presentation?
Thanks in advance!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Inserting pages number
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Inserting pages number
If the theme doesn't support itself the page number (as for example the Boadilla theme does) can I add this feature fro example like this:
\setbeamertemplate{footline}
{
\insertframenumber
}
But this seems not to properly work. I wanted the page number at the right of the footline.
Thanks...
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
Inserting pages number
see Beamer: frame number in split theme footline for an example how to put the frame number into the footline even if it's not supported by the chosen beamer theme.
Stefan
Re: Inserting pages number
\setbeamertemplate{footline}[frame number]
is not so good because it cancels the footline of the original theme
The second approach instead
\expandafter\def\expandafter\insertshorttitle\expandafter{%
\insertshorttitle\hfill%
\insertframenumber\,/\,\inserttotalframenumber}
is better but it give me a lot of errors, one at the end of each frame.
The error is the following:
Illegal unit of measure (pt inserted)
Is that possible?
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
Inserting pages number
both approaches didn't raise errors in my documents. Other code of your document could be interferring. Perhaps show a minimal example of your code that produces this error.
Stefan