aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-09-12 08:30:00 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-09-12 08:31:59 -0700
commit2e2795412def2f1f7c01b0b719b4d15a9b6f20f4 (patch)
tree20bac634ee32618425a025bb60774bd952edeac7
parentb71c7d97d17d6358a7e797655122ba03ccf193ca (diff)
downloadpandoc-2e2795412def2f1f7c01b0b719b4d15a9b6f20f4.tar.gz
Move 'tables in footnotes' fix out of beamer part of default.latex.
This caused an error in beamer. Footnotes already work in tables in beamer, without this code.
-rw-r--r--data/templates/default.latex5
1 files changed, 3 insertions, 2 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 8dd3bdb12..4c60f8d21 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -176,14 +176,15 @@ $highlighting-macros$
$endif$
$if(tables)$
\usepackage{longtable,booktabs}
-% Fix footnotes in tables (requires footnote package)
-\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{}
$if(beamer)$
\usepackage{caption}
% These lines are needed to make table captions work with longtable:
\makeatletter
\def\fnum@table{\tablename~\thetable}
\makeatother
+$else$
+% Fix footnotes in tables (requires footnote package)
+\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{}
$endif$
$endif$
$if(graphics)$