TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For my presentation, I am using Madrid theme; however, I'd like to change the contents of the footline. Currently, the footline shows, "short author" in the left, "short title" in the middle, and "date and framenumber/total number of frames" in the right side. I need to change these contents as follows:

Left side: Section name

Center: Subsection

Right: The same which is Date and frame number/total number of frames

I really appreciate if someone help me.

share|improve this question
Please use the search term [beamer] footline madrid for a lot of questions similar to this one on TeX.SE search bar. – percusse Nov 17 '12 at 0:13
up vote 18 down vote accepted

Madrid uses the infolines outer theme, so you need to redefine the footline template as implemented for this outer theme; here are the necessary changes:


  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertsection
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertsubsection
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 

\title{The Title}
\author{The Author}


\section{Test Section One}
\subsection{Test Subsection One One}
\subsection{Test Subsection One Two}


enter image description here

share|improve this answer
This is fantastic! Thanks a lot @ Gonzalo; your posts and answers have helped me a lot; I really appreciate it! – N Nik Nov 17 '12 at 5:33

Your Answer


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.