5

I would like to create a custom footer like this one in Beamer ? How can I do it and set it for all or some slides ?

custom footer

I want to use the stockholm beamer theme (link) but I did not like the footer so I wanted to change it to this one.

Thank you very much for your help !

2
  • 1
    Welcome! Please provide a small, compilable sample document. Without knowing your current Beamer config, it isn't possible to say very much. We don't know which themes or options you are using, how the colours relate to your colour theme. Etc.
    – cfr
    Aug 13 '15 at 21:46
  • 1
    Related: Modify footer of slides Aug 13 '15 at 22:37
8

Here you go (adjust the settings according to your needs):

\documentclass[compress]{beamer}
\usetheme{sthlm}

\usepackage{
booktabs,
datetime,
dtklogos,
multicol,
pgfplots,
ragged2e,
tabularx,
tikz,
wasysym
}

\pgfplotsset{compat=1.8}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{newpxtext,newpxmath}

\usetikzlibrary{
backgrounds,
mindmap
}

\setbeameroption{show notes}

\title{The title}
\subtitle{The subtitle}
\date{\today}
\author{The Author}
\institute{The Institute}

\hypersetup{
pdfauthor = {Mark H. Olson: sayhi@hendryolson.com},      
pdfsubject = {Mathematics, },
pdfkeywords = {},  
pdfmoddate= {D:\pdfdate},          
pdfcreator = {WriteLaTeX}
}

\definecolor{footcolor1}{RGB}{10,169,220}
\definecolor{footcolor2}{RGB}{161,229,78}
\definecolor{footcolor3}{RGB}{255,205,0}
\definecolor{footcolor4}{RGB}{182,232,230}
\definecolor{footcolor5}{RGB}{193,239,155}

\setbeamercolor{box1}{fg=black,bg=footcolor1}
\setbeamercolor{box2}{fg=black,bg=footcolor2}
\setbeamercolor{box3}{fg=black,bg=footcolor3}
\setbeamercolor{box4}{fg=black,bg=footcolor4}
\setbeamercolor{box5}{fg=black,bg=footcolor5}

\defbeamertemplate*{footline}{mytheme}{
\leavevmode
\begin{beamercolorbox}[wd=.15\paperwidth,sep=1em]{box1}
\usebeamercolor{author in head/foot}\insertframenumber
\end{beamercolorbox}\hfill%
\begin{beamercolorbox}[wd=.12\paperwidth,sep=1em]{box2}
\phantom{A}
\end{beamercolorbox}\hfill%
\begin{beamercolorbox}[wd=.12\paperwidth,sep=1em]{box3}
\phantom{A}
\end{beamercolorbox}\hfill%
\begin{beamercolorbox}[wd=.12\paperwidth,sep=1em]{box4}
\phantom{A}
\end{beamercolorbox}\hfill%
\begin{beamercolorbox}[wd=.4\paperwidth,sep=1em]{box5}
\hfill\usebeamercolor{author in head/foot}\insertshorttitle
\end{beamercolorbox}%
}

\begin{document}

\maketitle

\section{Background}

\begin{frame}
\frametitle{A test frame}
Some test text
\begin{block}{A test block}
\begin{itemize}
  \item point 1
  \item point 2
\end{itemize}
\end{block}
\end{frame}

\end{document}

The result:

enter image description here

Of course, you can use this footline with any theme you like; you only need to add the footline definition:

\definecolor{footcolor1}{RGB}{10,169,220}
\definecolor{footcolor2}{RGB}{161,229,78}
\definecolor{footcolor3}{RGB}{255,205,0}
\definecolor{footcolor4}{RGB}{182,232,230}
\definecolor{footcolor5}{RGB}{193,239,155}

\setbeamercolor{box1}{fg=black,bg=footcolor1}
\setbeamercolor{box2}{fg=black,bg=footcolor2}
\setbeamercolor{box3}{fg=black,bg=footcolor3}
\setbeamercolor{box4}{fg=black,bg=footcolor4}
\setbeamercolor{box5}{fg=black,bg=footcolor5}

\defbeamertemplate*{footline}{mytheme}{
\leavevmode
\begin{beamercolorbox}[wd=.15\paperwidth,sep=1em]{box1}
\usebeamercolor{author in head/foot}\insertframenumber
\end{beamercolorbox}\hfill%
\begin{beamercolorbox}[wd=.12\paperwidth,sep=1em]{box2}
\phantom{A}
\end{beamercolorbox}\hfill%
\begin{beamercolorbox}[wd=.12\paperwidth,sep=1em]{box3}
\phantom{A}
\end{beamercolorbox}\hfill%
\begin{beamercolorbox}[wd=.12\paperwidth,sep=1em]{box4}
\phantom{A}
\end{beamercolorbox}\hfill%
\begin{beamercolorbox}[wd=.4\paperwidth,sep=1em]{box5}
\hfill\usebeamercolor{author in head/foot}\insertshorttitle
\end{beamercolorbox}%
}
2
  • Thank you so much. I almost figured it out before you posted the answer. I had some problems of horizontal spacing but your solution is perfect. Thank you !
    – abpar
    Aug 14 '15 at 13:45
  • @AbdulWahab You're welcome! Aug 14 '15 at 13:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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