Document Classesbeamer | Page Number is truncated

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
MKa
Posts: 3
Joined: Sun Jan 20, 2008 5:33 am

beamer | Page Number is truncated

Post by MKa »

Hello,

I tried to insert a page number in the footline of my beamer slides with

Code: Select all

\setbeamertemplate{footline}[page number]
But the bottom of the number is not on the slide any more so that it displays only half the number.
I use the default theme.

If anyone has an idea, please let me know.

Thanks,
MKa

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

Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

beamer | Page Number is truncated

Post by Stefan Kottwitz »

Hi MKa,

welcome to the LaTeX Community board!
There was no answer until now, perhaps there were just not enough details for the reader to get an idea to help. But maybe you will read this thread again, at some time, that's why I'm writing now.

You said you are using the default theme. Maybe the split theme? I will give you an example for a possible workaround, modifying \insertshortauthor to display the frame number in its box too:

Code: Select all

\newcommand*\oldmacro{}
\let\oldmacro\insertshortauthor% save previous definition
\renewcommand*\insertshortauthor{%
  \leftskip=.3cm% before the author could be a plus1fill ...
  \insertframenumber\,/\,\inserttotalframenumber\hfill\oldmacro}
If you have questions concerning this or other issues, don't hesitate to ask, we'll try to help.

Stefan
MKa
Posts: 3
Joined: Sun Jan 20, 2008 5:33 am

beamer | Page Number is truncated

Post by MKa »

Hi Stefan,

thanx for your reply.
Sorry, I did not understand completely how I can use the modifications for \insertauthor to the footline.

I will give you some more information:

I select the theme with

Code: Select all

\usetheme{default}
I don't know exactly if that's the split theme.

After \begin{document} I insert the page numbers with

Code: Select all

\setbeamertemplate{footline}[page number]
as they suggested in the beameruserguide.

But the lower quarter of the numbers is not displayed on the page. It is cut because the page is to small or the footline too low.
By the way, the same thing happens if I insert text in the footline with e.g.

Code: Select all

\setbeamertemplate{footline}[text line]{hello}
.

So basically I am just searching for a way to raise everything what is displayed in the footline for approx 0.5cm.

Regards,
Moritz
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

beamer | Page Number is truncated

Post by Stefan Kottwitz »

Hi Moritz,

could you please show a minimal working example?
At the moment it's just too few information for me, I cannot reproduce this behaviour. Just a short but compilable LaTeX document with one frame showing that behaviour should be enough.

Stefan
LaTeX.org admin
MKa
Posts: 3
Joined: Sun Jan 20, 2008 5:33 am

beamer | Page Number is truncated

Post by MKa »

Yes, of course.

Code: Select all

\documentclass{beamer}

\usepackage[english]{babel}
\usetheme{default}

\begin{document}
\setbeamertemplate{footline}[frame number]
\setbeamertemplate{navigation symbols}{}

\frame{
	Frame 1
}

\frame{
	Frame 2
}
\end{document}
You see, the '2' for example is slightly cut at the bottom.

Regards,
MKa
User avatar
jeremie
Posts: 1
Joined: Thu May 15, 2008 5:30 pm

beamer | Page Number is truncated

Post by jeremie »

Hi,

Try your code with:

Code: Select all

\setbeamertemplate{footline}[page number]
but BEFORE \begin{document}

(For me it is working with or with out the theme : \usetheme{Hannover} )
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Re: beamer | Page Number is truncated

Post by Stefan Kottwitz »

Hi jeremie,

welcome to the LaTeX Community board!
I can confirm that your solution is working. Good advice!

Stefan
LaTeX.org admin
qianjigui
Posts: 2
Joined: Tue Nov 24, 2009 2:49 am

beamer | Page Number is truncated

Post by qianjigui »

jeremie wrote:Hi,

Try your code with:

Code: Select all

\setbeamertemplate{footline}[page number]
but BEFORE \begin{document}

(For me it is working with or with out the theme : \usetheme{Hannover} )
Before \begin{document} is working so well, thanks!
padmaiyenghar
Posts: 2
Joined: Tue Aug 16, 2011 9:53 am

Re: beamer | Page Number is truncated

Post by padmaiyenghar »

Inserting \setbeamertemplate{footline}[page number] before \begin{document} works so well. thanks!
Post Reply