git.iko.soy/typeable/pandoc
on master help sign in
Beamer: Use \footnote<.->{..} for notes.

This ensures that the footnotes will not appear before the overlays in which their corresponding note markers appear. Closes #1525.

commitab75e1d3bdf830875b02602055cbff29ba63e1fb authorJohn MacFarlane <jgm@berkeley.edu> dateTue 12 Aug 2014, 10:56 (12 years ago) parent712ae61
1 file changed+6−1
src/Text/Pandoc/Writers/LaTeX.hs+6−1
src/Text/Pandoc/Writers/LaTeX.hs+6−1
@@ -793,12 +793,17 @@ inlineToLaTeX (Note contents) = do
793793 (CodeBlock _ _ : _) -> cr
794794 _ -> empty
795795 let noteContents = nest 2 contents' <> optnl
796+ opts <- gets stOptions
797+ -- in beamer slides, display footnote from current overlay forward
798+ let beamerMark = if writerBeamer opts
799+ then text "<.->"
800+ else empty
796801 modify $ \st -> st{ stNotes = noteContents : stNotes st }
797802 return $
798803 if inMinipage
799804 then "\\footnotemark{}"
800805 -- note: a \n before } needed when note ends with a Verbatim environment
801− else "\\footnote" <> braces noteContents
806+ else "\\footnote" <> beamerMark <> braces noteContents
802807
803808protectCode :: [Inline] -> [Inline]
804809protectCode [] = []