Fixing default.beamer includegraphics redefinition to allow custom options

This commit is contained in:
Kevin 2013-12-13 11:06:31 +00:00
parent ccdf08caea
commit c1f20a285a

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