git.iko.soy/typeable/pandoc
on master help sign in
Fixing default.beamer includegraphics redefinition to allow custom options
commitc1f20a285a3ef1a0ba9b342b31856e0045f305c8 authorKevin <lionandoil@gmail.com> dateFri 13 Dec 2013, 11:06 (13 years ago) parentccdf08c
1 file changed+4−1
default.beamer+4−1
default.beamer+4−1
@@ -70,7 +70,10 @@ $if(graphics)$
7070}
7171\makeatother
7272\let\Oldincludegraphics\includegraphics
73−\renewcommand{\includegraphics}[2][]{\Oldincludegraphics[width=\ScaleIfNeeded]{#2}}
73+{%
74+ \catcode`\@=11\relax%
75+ \gdef\includegraphics{\@ifnextchar[{\Oldincludegraphics}{\Oldincludegraphics[width=\ScaleIfNeeded]}}%
76+}%
7477$endif$
7578
7679% Comment these out if you don't want a slide with just the