From 2e2795412def2f1f7c01b0b719b4d15a9b6f20f4 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Tue, 12 Sep 2017 08:30:00 -0700
Subject: [PATCH] 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.
---
 data/templates/default.latex | 5 +++--
 1 file 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)$