Merge pull request #49 from lionandoil/master

Fixing default.beamer includegraphics redefinition to allow custom options
This commit is contained in:
John MacFarlane 2013-12-13 21:41:43 -08:00
commit 50ca8c85d9

View file

@ -70,7 +70,10 @@ $if(graphics)$
}
\makeatother
\let\Oldincludegraphics\includegraphics
\renewcommand{\includegraphics}[2][]{\Oldincludegraphics[width=\ScaleIfNeeded]{#2}}
{%
\catcode`\@=11\relax%
\gdef\includegraphics{\@ifnextchar[{\Oldincludegraphics}{\Oldincludegraphics[width=\ScaleIfNeeded]}}%
}%
$endif$
% Comment these out if you don't want a slide with just the