Document Classesfooter with author and page number

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
roescu
Posts: 6
Joined: Fri Sep 28, 2007 1:59 am

footer with author and page number

Post by roescu »

Hi,
I use beamer class with a special theme. In fact I have took one of the built-in themes and deleted all information about header and footer as i don't need any split or so.
Anyway, I need page numbers and author name in the right and left part of the footer respectively. With the page numbers there is no problem as i could use in the preamble:

Code: Select all

\setbeamertemplate{footline}[page number]{}
Now the question is to insert also the author on the left part. I have tried

Code: Select all

\setbeamertemplate{footline}[text]{author \hfill page number}
but it doesnt work. what should i do? has somebody an idea?
thanx

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

footer with author and page number

Post by Stefan Kottwitz »

Hi Roescu,

it could be done this way:

Code: Select all

\defbeamertemplate{footline}{author and page number}{%
  \usebeamercolor[fg]{page number in head/foot}%
  \usebeamerfont{page number in head/foot}%
  \hspace{1em}\insertshortauthor\hfill%
  \insertpagenumber\,/\,\insertpresentationendpage\kern1em\vskip2pt%
}
\setbeamertemplate{footline}[author and page number]{}
Stefan
LaTeX.org admin
roescu
Posts: 6
Joined: Fri Sep 28, 2007 1:59 am

Re: footer with author and page number

Post by roescu »

Thank you so much.
It is exactly what i needed.
Post Reply