git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #49 from lionandoil/master

Fixing default.beamer includegraphics redefinition to allow custom options

commit50ca8c85d9abfb7918cb78015bcc6d6fec02ce75 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 13 Dec 2013, 21:41 (13 years ago) parentdd1d637c1f20a2
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