diff options
author | Kevin <lionandoil@gmail.com> | 2013-12-13 11:06:31 +0000 |
---|---|---|
committer | Kevin <lionandoil@gmail.com> | 2013-12-13 11:06:31 +0000 |
commit | c1f20a285a3ef1a0ba9b342b31856e0045f305c8 (patch) | |
tree | ccdd2f4421555cafc83819ac49a1b8f83df1c302 | |
parent | ccdf08caeaed0b1d0abf12842ec97201985ad0e5 (diff) | |
download | pandoc-c1f20a285a3ef1a0ba9b342b31856e0045f305c8.tar.gz |
Fixing default.beamer includegraphics redefinition to allow custom 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 |