@@ -176,14 +176,15 @@ $highlighting-macros$
176176$endif$
177177$if(tables)$
178178\usepackage{longtable,booktabs}
179−% Fix footnotes in tables (requires footnote package)
180−\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{}
181179$if(beamer)$
182180\usepackage{caption}
183181% These lines are needed to make table captions work with longtable:
184182\makeatletter
185183\def\fnum@table{\tablename~\thetable}
186184\makeatother
185+$else$
186+% Fix footnotes in tables (requires footnote package)
187+\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{}
187188$endif$
188189$endif$
189190$if(graphics)$