pandoc icon indicating copy to clipboard operation
pandoc copied to clipboard

Footnotes on Beamer slides appear too early when using pauses

Open pck1980 opened this issue 2 years ago • 3 comments

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

pck1980 avatar Feb 17 '22 18:02 pck1980

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.

jgm avatar Feb 17 '22 22:02 jgm

REMOVE IT ASAP! - This "<.->" breaks ob XeLaTeX and other!

NMarkgraf avatar Feb 25 '22 12:02 NMarkgraf

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.

mb21 avatar May 07 '22 08:05 mb21