aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Bannier <bbannier@gmail.com>2013-03-03 22:41:53 +0100
committerBenjamin Bannier <bbannier@gmail.com>2013-03-03 22:46:49 +0100
commit25f999ad52d110575590ba900c33b48486e9ac25 (patch)
treed71404e86e3fdf1303b484b04b1eaa4c5c64d95a
parent81c3b759b6e30af512ea0e81f85c8685b0366244 (diff)
downloadpandoc-25f999ad52d110575590ba900c33b48486e9ac25.tar.gz
Provide \Oldincludegraphics in beamer like in LaTeX
In the old solution there was no way to use a LaTeX image where only the height was used to scale the image -- the width was always implicitly set as well leading to wrong aspect ratios. Provide a command \Oldincludegraphics which does just what \includegraphics would do in the LaTeX template. That we the same input markup could be used for beamer and LaTeX templates.
-rw-r--r--default.beamer3
1 files changed, 2 insertions, 1 deletions
diff --git a/default.beamer b/default.beamer
index 74109d359..120bd81f3 100644
--- a/default.beamer
+++ b/default.beamer
@@ -62,7 +62,8 @@ $if(graphics)$
\fi
}
\makeatother
-\setkeys{Gin}{width=\ScaleIfNeeded}
+\let\Oldincludegraphics\includegraphics
+\renewcommand{\includegraphics}[2][]{\Oldincludegraphics[width=\ScaleIfNeeded]{#2}}
$endif$
% Comment these out if you don't want a slide with just the