git.iko.soy/typeable/pandoc
on master help sign in
Make footnotes work properly in beamer tables.

This fixes a regression in beamer due to the fix to #5367. We put table footnotes outside the table in beamer, because footnote/footnotehyper don't work with beamer.

commit085a89310975aae405a8484822340006fed8a518 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 5 Apr 2019, 11:02 (8 years ago) parent4f572dd
1 file changed+6
src/Text/Pandoc/Writers/LaTeX.hs+6
src/Text/Pandoc/Writers/LaTeX.hs+6
@@ -903,7 +903,13 @@ tableCellToLaTeX :: PandocMonad m => Bool -> (Double, Alignment, [Block])
903903tableCellToLaTeX _ (0, _, blocks) =
904904 blockListToLaTeX $ walk fixLineBreaks $ walk displayMathToInline blocks
905905tableCellToLaTeX header (width, align, blocks) = do
906+ beamer <- gets stBeamer
907+ oldInMinipage <- gets stInMinipage
908+ -- See #5367 -- footnotehyper/footnote don't work in beamer,
909+ -- so we need to produce the notes outside the table...
910+ modify $ \st -> st{ stInMinipage = beamer }
906911 cellContents <- blockListToLaTeX blocks
912+ modify $ \st -> st{ stInMinipage = oldInMinipage }
907913 let valign = text $ if header then "[b]" else "[t]"
908914 let halign = case align of
909915 AlignLeft -> "\\raggedright"