Footnote should only appear after pause
I'm experiencing an issue when rendering Pandoc to pdf using Beamer.
When using pauses in between paragraphs, when one paragraph has a footnote, the footnote will appear a single frame earlier than it should.
Expected behaviour would be that it shows up on the same slide as the location the footnote is referencing. Instead, it will show up on the previous as well.
The issue was brought up quite a few years ago on Pandoc, but the maintainer pointed here. https://github.com/jgm/pandoc/issues/1019
The issue I'm having and expected behaviour is exactly the same.
Next time, please provide a minimum complete example (MCE)
As a workaround, you can use the beamer's concept of “offsets”:
\documentclass{beamer}
\usepackage{lipsum}
\begin{document}
\begin{frame}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\footnote{Foo.}
\pause{}
Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae,
felis.\footnote<.(1)->{Bar.}
\end{frame}
\end{document}
MWE:
---
output:
beamer_presentation:
keep_tex: true
---
# Foo
test
. . .
- Lorem ipsum dolor sit amet, consectetur adipisicing elit.
- Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[^1]
. . .
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
- nisi ut aliquip ex ea commodo consequat.[^2]
. . .
test
[^1]: I should appear immediately.
[^2]: I shouldn't appear but after the pause.
The problem is that pandoc translates this into \footnote<.->{...} instead of \footnote<.(1)->{...} (as @dbitouze suggested)
I've brought this up again over at Pandoc. It's not entirely clear to me at this stage where this should be resolved, so hopefully a discussion between us can resolve it.
https://github.com/jgm/pandoc/issues/5954
@samcarter This MWE works fine, but it may not be suitable for pandoc to use directly:
\documentclass{beamer}
\usepackage[T1]{fontenc}
\begin{document}
\begin{frame}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\footnote<\value{beamerpauses}->{Foo.}
\pause
Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae,
felis.\footnote<\value{beamerpauses}->{Bar.}
\end{frame}
\end{document}
mmmm, these approaches might work with pause, but fail in other situations
\documentclass{beamer}
\usepackage[T1]{fontenc}
\begin{document}
\begin{frame}
\begin{itemize}[<+->]
\item test\footnote<\value{beamerpauses}->{Foo.}
\item test\footnote<\value{beamerpauses}->{Foo.}
\end{itemize}
\end{frame}
\begin{frame}
\begin{itemize}[<+->]
\item test\footnote<.(1)->{Bar.}
\item test\footnote<.(1)->{Bar.}
\end{itemize}
\end{frame}
\end{document}
Why can't pandoc simply use the beamer default behaviour and give its users the freedom to uncover the footnotes as they want?
@samcarter Pandoc can only transform Markdown syntaxes to beamer macros (and maybe a few extensive syntaxes, such as three dots . . . for \pause). Overlay specs seems to be completely unsupported. See Pandoc manual for details.
@samcarter would you have any insights into the question by John over here? https://github.com/jgm/pandoc/issues/5954#issuecomment-581502455
I think he's wondering whether the number relates to the specific offset of the pause. Would Pandoc simply be able to output below?
\footnote<.(1)->{Foo.}
\pause
\footnote<.(2)->{Bar.}