From c1f20a285a3ef1a0ba9b342b31856e0045f305c8 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 13 Dec 2013 11:06:31 +0000 Subject: Fixing default.beamer includegraphics redefinition to allow custom options --- default.beamer | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3