git.iko.soy/typeable/pandoc
on master help sign in
LaTeX: Don't include \maxwidth in beamer.

It causes an error when you include an image.

commitb8385d84d7e43abbbdfbc17fc27dba6c56e14c9e authorJohn MacFarlane <fiddlosopher@gmail.com> dateMon 30 Jan 2012, 09:17 (15 years ago) parent438c5c3
1 file changed+3
default.latex+3
default.latex+3
@@ -58,6 +58,8 @@ $if(url)$
5858$endif$
5959$if(graphics)$
6060\usepackage{graphicx}
61+$if(beamer)$
62+$else$
6163% We will generate all images so they have a width \maxwidth. This means
6264% that they will get their normal width if they fit onto the page, but
6365% are scaled down if they would overflow the margins.
@@ -68,6 +70,7 @@ $if(graphics)$
6870\let\Oldincludegraphics\includegraphics
6971\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
7072$endif$
73+$endif$
7174$if(beamer)$
7275% Comment these out if you don't want a slide with just the
7376% part/section/subsection/subsubsection title: