git.iko.soy/typeable/pandoc
on master help sign in
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.

commit25f999ad52d110575590ba900c33b48486e9ac25 authorBenjamin Bannier <bbannier@gmail.com> dateSun 3 Mar 2013, 22:41 (14 years ago) parent81c3b75
1 file changed+2−1
default.beamer+2−1
default.beamer+2−1
@@ -62,7 +62,8 @@ $if(graphics)$
6262 \fi
6363}
6464\makeatother
65−\setkeys{Gin}{width=\ScaleIfNeeded}
65+\let\Oldincludegraphics\includegraphics
66+\renewcommand{\includegraphics}[2][]{\Oldincludegraphics[width=\ScaleIfNeeded]{#2}}
6667$endif$
6768
6869% Comment these out if you don't want a slide with just the