diff options
-rw-r--r-- | default.beamer | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/default.beamer b/default.beamer index 4aaf50959..d57e19711 100644 --- a/default.beamer +++ b/default.beamer @@ -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 |