LaTeX forum ⇒ Document Classesbeamer | Add Frame Number to the Footer Topic is solved

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

beamer | Add Frame Number to the Footer

Postby paulosousa » Sun Jun 24, 2012 8:56 pm

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.

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

Postby CrazyHorse » Mon Jun 25, 2012 8:38 am

That depends to your used beamer theme. The reason why you should create a minimal example.

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

Postby paulosousa » Mon Jun 25, 2012 11:41 am

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 28195 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: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Mon Jun 25, 2012 6:25 pm

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
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

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

Postby paulosousa » Mon Jun 25, 2012 10:24 pm

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..
  1. \documentclass[11pt]{beamer}
  2. \usepackage{beamerthemeshadow}
  3. \usepackage[portuguese]{babel}
  4. \usepackage[applemac]{inputenc}
  5. \usepackage{amsmath,amssymb,amsfonts,textcomp,setspace,graphicx}
  6.  
  7. \title{Graph and Spectral Clustering}
  8. \author{Paulo Sousa}
  9. \institute {PDMA - Faculdade de Ciências da Universidade do Porto}
  10. \date{\footnotesize{\today}}
  11.  
  12. \begin{document}
  13.  
  14. \frame{\titlepage}
  15. \frame{
  16. \tableofcontents
  17. }
  18.  
  19. \section{Classificação de dados}
  20. \begin{frame}
  21. ...


Anyone could help me please??
Last edited by Stefan Kottwitz on Mon Jun 25, 2012 10:48 pm, edited 1 time in total.
Reason: code marked

User avatar
Stefan Kottwitz
Site Admin
Posts: 8262
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Jun 25, 2012 10:59 pm

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
  1. ...
  2. \end{frame}
  3. \end{document}

it's possible to test a solution. So I can suggest to use this in your preamble:

  1. \expandafter\def\expandafter\insertshorttitle\expandafter{%
  2. \insertshorttitle\hfill%
  3. \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
Site admin

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

Postby paulosousa » Tue Jun 26, 2012 9:52 am

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
  1. ...
  2. \end{frame}
  3. \end{document}

it's possible to test a solution. So I can suggest to use this in your preamble:

  1. \expandafter\def\expandafter\insertshorttitle\expandafter{%
  2. \insertshorttitle\hfill%
  3. \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: 8262
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Tue Jun 26, 2012 5:55 pm

Hi Paulo,

you could change that by using the compress option:

  1. \documentclass[11pt,compress]{beamer}


However, I think this is obsolete:

  1. \usepackage{beamerthemeshadow}


Instead, you could try the theme Warsaw, recommended as replacement for the shadow theme:

  1. \usetheme{Warsaw}

If you don't like the header at all, perhaps choose another theme.

Stefan
Site admin

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

Postby paulosousa » Tue Jun 26, 2012 6:32 pm

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 28157 times



Paulo

User avatar
Stefan Kottwitz
Site Admin
Posts: 8262
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Tue Jun 26, 2012 6:41 pm

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
Site admin


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 3 guests