# How to insert a horizontal bar as a footnote at the end of a beamer slide in metropolis/mtheme?

In a beamer slide, using mtheme/metropolis theme, it is difficult to create a small horizontal bar at the bottom of the slide showing author name or inserting some different text for every slide.

An answer exists here. But the page numbering starts from the title page. How to make the numbering start from the slide after the title page? And the ability to create a bar or some box around the footnotes would be excellent. Such bars exist by default in many different themes like the Madrid theme for beamer.

• Welcome to TeX.SX! A minimal working example (MWE), that illustrates your problem would be excellent too. --- Ref Problem 1: how to remove the page numbering from the first slide, Problem 2: something like this How to insert page number in Beamer Navigation Bars? – Bobyandbob Oct 30 '17 at 16:16
• okay, the page numbering without the title page should be solvable by the first link, thanks! – MycrofD Oct 30 '17 at 16:22
• @samcarter I am not sure I understood the difference between footnote and footline in the edit you made to the question. Thanks for your prompt answer. Let me try that. :) – MycrofD Oct 31 '17 at 18:24
• @MycrofD Footline is what the box at the bottom of frames is called in beamer, the one containing things like author name, title and framenumber. A footnote is used to add information to something, for example Shelock\footnote{the one with the silly hat and pipe} solved this case – user36296 Oct 31 '17 at 18:27
• @MycrofD Do you also want the three different colours from madrid? – user36296 Oct 31 '17 at 18:35

\documentclass{beamer}

\usetheme{metropolis}

\author{names}
\title{text}

\makeatletter
\def\beamer@autobreakframebox{%
\global\setbox\beamer@splitbox=\box\voidb@x%
\ifbeamer@autobreak%
% Ok, frame was overful -> split it!
\setbox\@tempboxa=\vsplit\beamer@framebox to\beamer@autobreakfactor\textheight%
\global\setbox\beamer@splitbox=\box\beamer@framebox%
\@tempdima=\ht\beamer@splitbox%
\ifdim\@tempdima<\beamer@autobreaklastheight%
\global\beamer@autobreaklastheight=\@tempdima\relax%
\else%
\setbox\@tempboxa=\vbox{\unvbox\@tempboxa\unvbox\beamer@splitbox}%
\global\setbox\beamer@splitbox=\box\voidb@x%
\fi%
\setbox\beamer@framebox=\vbox to\textheight{\unvbox\@tempboxa%
\vskip\beamer@framebottomskipautobreak%
\ifvoid\beamer@splitbox%
\begin{beamercolorbox}[wd=\paperwidth,left]{footnote}
\usebeamerfont{footnote}%
\ifvoid\beamer@footins%
\vskip\baselineskip%
\else%
\unvbox \beamer@footins%
\global\setbox\beamer@footins=\box\voidb@x%
\fi%

\vskip-1.4\baselineskip%
\hspace{.5\paperwidth}%
\parbox{.48\paperwidth}{%
}%
\end{beamercolorbox}%
\fi%
\beamer@exitcode%
}%
\else%
\setbox\beamer@framebox=\vbox to\textheight{\unvbox\beamer@framebox%
\vskip\beamer@framebottomskip%
\begin{beamercolorbox}[wd=\paperwidth,left]{footnote}
\usebeamerfont{footnote}%
\ifvoid\beamer@footins%
\vskip\baselineskip%
\else%
\unvbox \beamer@footins%
\global\setbox\beamer@footins=\box\voidb@x%
\fi%

\vskip-1.4\baselineskip%
\hspace{.5\paperwidth}%
\parbox{.48\paperwidth}{%
}%
\end{beamercolorbox}%
\beamer@exitcode}%
\global\setbox\beamer@footins=\box\voidb@x%
\fi%
}
\makeatother

\setbeamerfont{footnote}{size=\scriptsize}
\setbeamertemplate{footline}{}
\setbeamercolor{footnote}{fg=white,bg=mDarkTeal}

\usepackage[style=authoryear]{biblatex}

\begin{document}

\titlepage
\end{frame}

\begin{frame}
test
\end{frame}

\begin{frame}
test\footcite{bertram}

text\footcite{angenendt}
\end{frame}

\begin{frame}
text\footcite{angenendt}
\end{frame}

\begin{frame}
\printbibliography
\end{frame}

\end{document}


• This looks good. But, if I want to insert a citation on a slide at the footnote(or footline) as a footcite [I am not sure if I am using the terms correctly] instead of 'names' and 'text', then what do I have to do? – MycrofD Oct 31 '17 at 18:28
• @MycrofD Then it gets ugly .... let me dig for a similar question we had recently. – user36296 Oct 31 '17 at 18:32
• something like this tex.stackexchange.com/a/290740/52071, but with those 'foot-bars' from Madrid theme. – MycrofD Oct 31 '17 at 18:33
• @MycrofD Is this going in the right direction? – user36296 Oct 31 '17 at 19:06
• yes @samcarter , absolutely. this is going in the right direction. Just a bar on the left showing the author's name, and page number on the right would make it complete. – MycrofD Oct 31 '17 at 19:24