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
|
\makeatother
|
||||||
\let\Oldincludegraphics\includegraphics
|
\let\Oldincludegraphics\includegraphics
|
||||||
\renewcommand{\includegraphics}[2][]{\Oldincludegraphics[width=\ScaleIfNeeded]{#2}}
|
{%
|
||||||
|
\catcode`\@=11\relax%
|
||||||
|
\gdef\includegraphics{\@ifnextchar[{\Oldincludegraphics}{\Oldincludegraphics[width=\ScaleIfNeeded]}}%
|
||||||
|
}%
|
||||||
$endif$
|
$endif$
|
||||||
|
|
||||||
% Comment these out if you don't want a slide with just the
|
% Comment these out if you don't want a slide with just the
|
||||||
|
|
Loading…
Add table
Reference in a new issue