27

Footnotes in presentations are "usually not a good idea" (beamer manual, p. 130). Suppose, however, I have a valid reason to use the \footnote command in a beamer document (e.g., for printing a full citation similar to a bibliography entry). Many beamer themes include navigation symbols, and to my dismay I noticed that footnotes will be placed at the very bottom of a frame where they are likely to collide with any navigation symbols present. I tried to put the contents of a frame inside a minipage, but this will make footnotes (too) closely aligned to the text.

\documentclass{beamer}

\useoutertheme{infolines}

\author{Author}
\institute{Institute}
\date{\today}

% Remove footnote rule
\renewcommand*{\footnoterule}{}

\begin{document}

\begin{frame}{Frame 1}

Some text.\footnote{A long footnote that partially overwrites the navigation symbols.}

\end{frame}

\begin{frame}{Frame 2}

\begin{minipage}{\textwidth}

Some text.\footnote{A footnote that is closely aligned to the text.}

\end{minipage}

\end{frame}

\end{document}

How can I place footnotes at the bottom of a frame excluding the vertical space claimed by navigation symbols?

EDIT: Stefan's answer made me realize that the problem is more complicated. I'm looking for a solution that also works with beamer themes which include information about author, institute etc. in the footline (and the navigation symbols immediately above this information). I edited my code example accordingly.

EDIT2: Following Stefan's suggestion to "just insert the navigation symbols", this is what I came up with (to be added to the preamble of my code example):

\makeatletter
\setbeamertemplate{sidebar right}{}
\setbeamertemplate{footline}
{
  \leavevmode%
% Begin of additions - note that this is pure guesswork
  \vskip2pt%
  \begin{beamercolorbox}[wd=0.9925\paperwidth,right]{}
  \usebeamertemplate***{navigation symbols}%
  \end{beamercolorbox}
  \vskip2pt%
% End of additions
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor~~\beamer@ifempty{\insertshortinstitute}{}{(\insertshortinstitute)}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}%
  \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} 
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatother

To rephrase my original question once more: Is there a solution that doesn't depend on which beamer themes are used? E.g., adding vertical space after the last (!) footnote on a frame if navigation symbols are present?

6
  • A very similar question is here (and also here). Is is a duplicate? Commented Nov 23, 2010 at 18:50
  • @Hendrik: The first question is about inserting additional material into the footline (which also contains the navigation symbols), while I want to displace footnote text from the footline. The second question (about beamer and biblatex) would actually profit from an answer to my question.
    – lockstep
    Commented Nov 23, 2010 at 19:03
  • @lockstep: Ah, thanks for the explanation. Does this imply that my 2nd link is not a duplicate of the 1st one (as suggested by Matthew)? Commented Nov 23, 2010 at 19:05
  • @Hendrik: Indeed. Full citations tend to be rather long, and the first question seems to be about short texts (which don't collide with anything else present in the footline).
    – lockstep
    Commented Nov 23, 2010 at 19:10
  • 2
    Best solution: turn off navigation symbols
    – Seamus
    Commented Nov 23, 2010 at 21:21

3 Answers 3

11

You can achieve that by placing the navigation symbols in the footline instead of the default position in the right sidebar:

\setbeamertemplate{sidebar right}{}
\setbeamertemplate{footline}{\hfill\usebeamertemplate***{navigation symbols}}

The original definition uses \llap and the sidebar, that's why it may be overwritten:

% From beamerouterthemedefault.sty:
\defbeamertemplate*{sidebar right}{default}
{
  \vfill%
  \llap{\insertlogo\hskip0.1cm}%
  \vskip2pt%
  \llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
  \vskip2pt%
}

In response to locksteps edit: this tiny example used the complete footline for demonstration. If there's already a footline present, I would modify this footline inserting \usebeamertemplate***{navigation symbols} therein, so it may become a footline with a height of two lines. This cannot be accidentally overwritten.

Seeing locksteps last edit now: for example, using Matthew's suggestion \addtobeamertemplate on the footline instead of the footnote brings us to:

\setbeamertemplate{sidebar right}{}% or get rid of navigation entries there somehow
\addtobeamertemplate{footline}{\hfill\usebeamertemplate***{navigation symbols}%
    \hspace*{0.1cm}\par\vskip 2pt}{}

This reserves the space and works with or without an existing footline, no matter if that footline is one or more lines tall. I've tested it with the themes Berlin, Singapore and Madrid.

4
  • Many thanks, but I realized that your suggestion would remove any additional information present in the footline. I edited my question.
    – lockstep
    Commented Nov 23, 2010 at 19:34
  • @lockstep: just insert the navigation symbols into the existing footline. It doesn't mean that one has to replace it. I've edited as well.
    – Stefan Kottwitz
    Commented Nov 23, 2010 at 19:39
  • Many thanks, especially for your tests. Just a small suggestion: \par\vskip 2pt would come closer to the original.
    – lockstep
    Commented Nov 23, 2010 at 21:43
  • ... the second solution removes the navigation symbols in all slides in Madrid style for me...
    – Rmano
    Commented Dec 9, 2015 at 20:53
31

The more I learn about beamer's template mechanism, the more I like it. Try this in the preamble:

\addtobeamertemplate{footnote}{}{\vspace{2ex}}

This just adds some space to the footnote so it doesn't overwrite the navigation symbols.

4
  • 5
    this is fine if just one footnote is used, but this space would also be inserted between each two footnotes on one frame.
    – Stefan Kottwitz
    Commented Nov 23, 2010 at 20:05
  • @Stefan: this is true. Bad use case, then. :-) Commented Nov 23, 2010 at 20:24
  • you made a very good suggestion to use \addtobeamertemplate! I've combined it with my proposal.
    – Stefan Kottwitz
    Commented Nov 24, 2010 at 0:51
  • The next time Stefan and you come up with helpful answers to a question of mine, I'll accept your answer.
    – lockstep
    Commented Nov 24, 2010 at 7:05
7

Matthew's answer inspired me to add vertical space to the footnote line:

\addtobeamertemplate{footnote}{\vspace{-6pt}\advance\hsize-0.5cm}{\vspace{6pt}}
\makeatletter
% Alternative A: footnote rule
\renewcommand*{\footnoterule}{\kern -3pt \hrule \@width 2in \kern 8.6pt}
% Alternative B: no footnote rule
% \renewcommand*{\footnoterule}{\kern 6pt}
\makeatother

EDIT: Incorporated reduction of the horizontal size of the footnote text, by courtesy of egreg.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .