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: 82
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.

Link:
BBcode:
HTML:
Hide post links
Show post links

CrazyHorse
Posts: 350
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.

Link:
BBcode:
HTML:
Hide post links
Show post links

paulosousa
Posts: 82
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 25646 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

Link:
BBcode:
HTML:
Hide post links
Show post links

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 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

Link:
BBcode:
HTML:
Hide post links
Show post links

paulosousa
Posts: 82
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

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7804
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

Link:
BBcode: Topic is solved[/url]" title="Click to select post's link in BBcode format" onclick="this.focus();this.select();" />
HTML: Topic is solved</a>" title="Click to select post's link in HTML format" onclick="this.focus();this.select();" />
Hide post links
Show post links

paulosousa
Posts: 82
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

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7804
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

Link:
BBcode:
HTML:
Hide post links
Show post links

paulosousa
Posts: 82
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 25608 times



Paulo

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7804
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

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 2 guests