In my beamer
presentation, I want
- the main text to have a line spacing of 1.5,
- footnotes to have a line spacing of 1, both within them and between two consecutive footnotes.
Inserting \linespread{1.5}
in the document's scope results in a line spacing of 1.5 in both main text and footnotes, which is undesirable.
I know that, generally, the preferred way of achieving the desired output is to load the setspace
package and insert \setstretch{1.5}
somewhere in the document's scope, but loading setspace
seems to break beamer
's \footnote
. For instance, the following MWE does not produce any footnote:
\documentclass{beamer}
\usepackage{setspace}
\begin{document}
\begin{frame}
foo\footnote{bar}
\end{frame}
\end{document}
A workaround is to entirely eschew the setspace
package and use \linespread
to locally change the line spacing in footnotes, like so:
\documentclass{beamer}
\usepackage{lipsum}
\let\oldfootnote\footnote
\renewcommand\footnote[2][]{{\linespread{1}\oldfootnote[#1]{#2}}}
\linespread{1.5}
\begin{document}
\begin{frame}
foo\footnote{\lipsum[2]}\\
bar\footnote{sdfsdf}
\end{frame}
\end{document}
which produces the desired line spacing (1) within footnotes, but not between them:
What should I do to produce the desired output?