git.iko.soy/typeable/pandoc
on master help sign in
Fixing default.beamer includegraphics redefinition to allow custom options
c1f20a2Kevin
default.beamer+4−1
@@ -70,7 +70,10 @@ $if(graphics)$
70}
70}
71\makeatother
71\makeatother
72\let\Oldincludegraphics\includegraphics
72\let\Oldincludegraphics\includegraphics
73+{%
74+ \catcode`\@=11\relax%
73−\renewcommand{\includegraphics}[2][]{\Oldincludegraphics[width=\ScaleIfNeeded]{#2}}
75+ \gdef\includegraphics{\@ifnextchar[{\Oldincludegraphics}{\Oldincludegraphics[width=\ScaleIfNeeded]}}%
76+}%
74$endif$
77$endif$
75
78
76% Comment these out if you don't want a slide with just the
79% Comment these out if you don't want a slide with just the