Featured Book

LaTeX Beginners Guide

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 3 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

beamer | Add Frame Number to the Footer Topic is solved

Add tags Information and discussion about specific document classes and how to create your own document classes.

beamer | Add Frame Number to the Footer

Postby paulosousa on Sun Jun 24th, 2012

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 25th, 2012, edited 2 times in total.
paulosousa
 
Posts: 66
Joined: Sun Jun 24th, 2012

Re: beamer | Add Frame Number to the Footer

Postby CrazyHorse on Mon Jun 25th, 2012

That depends to your used beamer theme. The reason why you should create a minimal example.
CrazyHorse
 
Posts: 350
Joined: Sat Aug 2nd, 2008

Re: beamer | Add Frame Number to the Footer

Postby paulosousa on Mon Jun 25th, 2012

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 13797 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
paulosousa
 
Posts: 66
Joined: Sun Jun 24th, 2012

Re: beamer | Add Frame Number to the Footer

Postby localghost on Mon Jun 25th, 2012

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
User avatar
localghost
Site Moderator
 
Posts: 9219
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Re: beamer | Add Frame Number to the Footer

Postby paulosousa on Mon Jun 25th, 2012

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  •  Open in writeLaTeX
\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_K on Mon Jun 25th, 2012, edited 1 time in total.
Reason: code marked
paulosousa
 
Posts: 66
Joined: Sun Jun 24th, 2012

Re: beamer | Add Frame Number to the Footer  Topic is solved

Postby Stefan_K on Mon Jun 25th, 2012

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  •  Open in writeLaTeX
...
\end{frame}
\end{document
}

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

Code: Select all  •  Open in writeLaTeX
\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 Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6411
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: beamer | Add Frame Number to the Footer

Postby paulosousa on Tue Jun 26th, 2012

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  •  Open in writeLaTeX
...
\end{frame}
\end{document
}

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

Code: Select all  •  Open in writeLaTeX
\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
paulosousa
 
Posts: 66
Joined: Sun Jun 24th, 2012

Re: beamer | Add Frame Number to the Footer

Postby Stefan_K on Tue Jun 26th, 2012

Hi Paulo,

you could change that by using the compress option:

Code: Select all  •  Open in writeLaTeX
\documentclass[11pt,compress]{beamer}


However, I think this is obsolete:

Code: Select all  •  Open in writeLaTeX
\usepackage{beamerthemeshadow}


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

Code: Select all  •  Open in writeLaTeX
\usetheme{Warsaw}

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

Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6411
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: beamer | Add Frame Number to the Footer

Postby paulosousa on Tue Jun 26th, 2012

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



Paulo
paulosousa
 
Posts: 66
Joined: Sun Jun 24th, 2012

Re: beamer | Add Frame Number to the Footer

Postby Stefan_K on Tue Jun 26th, 2012

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 Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6411
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Next

Return to Document Classes

Who is online

Users browsing this forum: No registered users and 3 guests