[Tex/LaTex] How to set the background of a “text line” footline in Beamer

beamerheader-footer

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?

Best Answer

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