Document Classesbeamer | Add Frame Number to the Footer

Information and discussion about specific document classes and how to create your own document classes.
paulosousa
Posts: 90
Joined: Sun Jun 24, 2012 8:48 pm

beamer | Add Frame Number to the Footer

Post by paulosousa »

Hi everybody,

I'm just starting using LaTeX for beamer presentations and I want to add page (frame) numbers to my presentation maintaining the original foot line that has my name and the title of the presentation.

I used \setbeamertemplate{footline}[frame number] but it destroys my original foot line. I need it with the format "frame number/total number of frames". I searched and tested but no success! Is there any to to keep the same footer (my name and the title of the presentation) add the date and the the pages with this format "frame number/total number of frames"?


Best regards,
Paulo
Last edited by paulosousa on Mon Jun 25, 2012 9:09 am, edited 2 times 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

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Re: beamer | Add Frame Number to the Footer

Post by CrazyHorse »

That depends to your used beamer theme. The reason why you should create a minimal example.
paulosousa
Posts: 90
Joined: Sun Jun 24, 2012 8:48 pm

beamer | Add Frame Number to the Footer

Post by paulosousa »

CrazyHorse wrote:That depends to your used beamer theme. The reason why you should create a minimal example.
I am at work now, so I have only the PDF file here. If I can put here an image, here it is.
beamer-capture.jpg
beamer-capture.jpg (44.96 KiB) Viewed 85996 times
How can I put the format "frame number/total number of frames", at right, with the same footer?

Another thing I don't want all those 'topic's on top, just that one I have in the slide. how can I do it?

regards,
Paulo
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

beamer | Add Frame Number to the Footer

Post by localghost »

paulosousa wrote:[…] I am at work now, so I have only the PDF file here. […]
As soon as you have access to the source file, cut this down to a minimal example.


Thorsten
paulosousa
Posts: 90
Joined: Sun Jun 24, 2012 8:48 pm

beamer | Add Frame Number to the Footer

Post by paulosousa »

localghost wrote:
paulosousa wrote:[…] I am at work now, so I have only the PDF file here. […]
As soon as you have access to the source file, cut this down to a minimal example.


Thorsten

I am using this..

Code: Select all

\documentclass[11pt]{beamer}
\usepackage{beamerthemeshadow}
\usepackage[portuguese]{babel}
\usepackage[applemac]{inputenc}
\usepackage{amsmath,amssymb,amsfonts,textcomp,setspace,graphicx}

\title{Graph and Spectral Clustering}
\author{Paulo Sousa}
\institute {PDMA - Faculdade de Ciências da Universidade do Porto}
\date{\footnotesize{\today}}

\begin{document}
  
\frame{\titlepage}
\frame{
\tableofcontents
}

\section{Classificação de dados}
\begin{frame}
...
Anyone could help me please??
Last edited by Stefan Kottwitz on Mon Jun 25, 2012 10:48 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

beamer | Add Frame Number to the Footer

Post by Stefan Kottwitz »

Hi Paulo!

It would be good if a posted code example would be compilable, which makes helping easy. If I complete the code above by

Code: Select all

...
\end{frame}
\end{document}
it's possible to test a solution. So I can suggest to use this in your preamble:

Code: Select all

\expandafter\def\expandafter\insertshorttitle\expandafter{%
  \insertshorttitle\hfill%
  \insertframenumber\,/\,\inserttotalframenumber}
Here, we extend the macro which is used for printing the title in the footer, to print the frame number on the right. I used this method in this blog post: Beamer: frame number in split theme footline.

Stefan
LaTeX.org admin
paulosousa
Posts: 90
Joined: Sun Jun 24, 2012 8:48 pm

beamer | Add Frame Number to the Footer

Post by paulosousa »

Stefan, was a great solution, thank you very much for helping me
Another thing I don't want all those 'topic's on top (please check image in my previous post), just that one I have in the slide. how can I do it?

regards,
Paulo
Stefan_K wrote:Hi Paulo!

It would be good if a posted code example would be compilable, which makes helping easy. If I complete the code above by

Code: Select all

...
\end{frame}
\end{document}
it's possible to test a solution. So I can suggest to use this in your preamble:

Code: Select all

\expandafter\def\expandafter\insertshorttitle\expandafter{%
  \insertshorttitle\hfill%
  \insertframenumber\,/\,\inserttotalframenumber}
Here, we extend the macro which is used for printing the title in the footer, to print the frame number on the right. I used this method in this blog post: Beamer: frame number in split theme footline.

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

beamer | Add Frame Number to the Footer

Post by Stefan Kottwitz »

Hi Paulo,

you could change that by using the compress option:

Code: Select all

\documentclass[11pt,compress]{beamer}
However, I think this is obsolete:

Code: Select all

\usepackage{beamerthemeshadow}
Instead, you could try the theme Warsaw, recommended as replacement for the shadow theme:

Code: Select all

\usetheme{Warsaw}
If you don't like the header at all, perhaps choose another theme.

Stefan
LaTeX.org admin
paulosousa
Posts: 90
Joined: Sun Jun 24, 2012 8:48 pm

beamer | Add Frame Number to the Footer

Post by paulosousa »

Hi Stefan,

thanks a lot

it's better now, but not the final solution, because it appear this way
beamer-footer.png
beamer-footer.png (10.61 KiB) Viewed 85958 times

Paulo
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

beamer | Add Frame Number to the Footer

Post by Stefan Kottwitz »

So choose another theme, which is not based on the split theme, which brings this header. Just browse themes in the beamer user guide.

Stefan
LaTeX.org admin
Post Reply