LaTeX: Don't include \maxwidth in beamer.

It causes an error when you include an image.
This commit is contained in:
John MacFarlane 2012-01-30 09:17:09 -08:00
parent 438c5c3ea8
commit b8385d84d7

View file

@ -58,6 +58,8 @@ $if(url)$
$endif$
$if(graphics)$
\usepackage{graphicx}
$if(beamer)$
$else$
% We will generate all images so they have a width \maxwidth. This means
% that they will get their normal width if they fit onto the page, but
% are scaled down if they would overflow the margins.
@ -68,6 +70,7 @@ $if(graphics)$
\let\Oldincludegraphics\includegraphics
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
$endif$
$endif$
$if(beamer)$
% Comment these out if you don't want a slide with just the
% part/section/subsection/subsubsection title: