aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin <lionandoil@gmail.com>2013-12-13 11:06:31 +0000
committerKevin <lionandoil@gmail.com>2013-12-13 11:06:31 +0000
commitc1f20a285a3ef1a0ba9b342b31856e0045f305c8 (patch)
treeccdd2f4421555cafc83819ac49a1b8f83df1c302
parentccdf08caeaed0b1d0abf12842ec97201985ad0e5 (diff)
downloadpandoc-c1f20a285a3ef1a0ba9b342b31856e0045f305c8.tar.gz
Fixing default.beamer includegraphics redefinition to allow custom options
-rw-r--r--default.beamer5
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