Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using the "default" theme with the "crane" color theme and I would like to add a footline to the slides, but with a background color defined by the "crane" color theme.

I have added the necessary text with the following command:

\setbeamertemplate{footline}[text line]{
      \parbox{\linewidth}{\vspace*{-8pt}\inserttitle\hfill\insertauthor\hfill\insertpagenumber}
}

In the beamer class documentation, there seem to be different options available for the footline like "[infolines theme]", but they rely on the specific outer theme to be loaded.

The "infolines" theme adds a header to the slides, that I don't need (and it doesn't seem possible to turn it off?), and I don't want the footer to show the total slide number, just the number of the current slide... hence a "[text line]" with a set background color. Can this be done?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Hi you could do something like:

\documentclass{beamer}

\usecolortheme{crane}
\setbeamertemplate{footline}{%
    \begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex,right, rightskip=1mm, leftskip=1mm]{titlelike}
        \inserttitle\hfill\insertauthor\hfill\insertframenumber%
    \end{beamercolorbox}
}

\author{Me}
\title{You}

\begin{document}

\frame{}

\end{document}

I used the titlelike color for the footer, since crane doesn't define a footer color.

enter image description here

share|improve this answer
    
this is great, thank you! :) –  tomislav-maric Jan 16 '13 at 11:55
add comment

To do that i generally use the following:

\defbeamertemplate{footline}{my footline}{
\begin{beamercolorbox}[sep=0.5pt,wd=\paperwidth]{footlinecolor}
\hskip2pt
left text
\hspace*{\fill} 
center text
\hspace*{\fill}
\llap{\insertpagenumber\,/\,\insertpresentationendpage\,}
\hskip-2pt
\vskip-0.5pt
\end{beamercolorbox}
}
\setbeamertemplate{footline}[my footline]

The hskip and vskip after the page number are just used to fine tune its position. I've left them in case they maybe useful to you.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.