pandoc
pandoc copied to clipboard
Footnotes on Beamer slides appear too early when using pauses
Explain the problem.
When creating a bullet list with pauses between items, and one bullet contains a footnote, it seems the footnote gets visible one bullet point too early, i. e. when the bullet point before the one containing the footnote is revealed. See attached example, from which a PDF is produced with pandoc -s -t beamer --pdf-engine=lualatex -o slides.pdf slides.md -V theme:metropolis -V themeoptions:subsectionpage=progressbar -V lang=de
Pandoc version? pandoc 2.17.1.1 on macOS 12.2.1 slides.md slides.pdf
Here's the tex that is produced:
\begin{itemize}
\tightlist
\item
Items
\end{itemize}
\pause
\begin{itemize}
\tightlist
\item
With\footnote<.->{Here it is.}
\end{itemize}
Why the <.->
? The code has this:
-- in beamer slides, display footnote from current overlay forward
let beamerMark = if beamer
then text "<.->"
else empty
Probably this isn't right, but maybe a beamer expert can let us know what we should be doing here.
REMOVE IT ASAP! - This "<.->" breaks ob XeLaTeX and other!
This was added in https://github.com/jgm/pandoc/commit/ab75e1d3bdf830875b02602055cbff29ba63e1fb with the comment:
This ensures that the footnotes will not appear before the overlays in which their corresponding note markers appear.
Closes https://github.com/jgm/pandoc/issues/1525.