Fixing default.beamer includegraphics redefinition to allow custom options
This commit is contained in:
parent
ccdf08caea
commit
c1f20a285a
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue