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.
This commit is contained in:
parent
81c3b759b6
commit
25f999ad52
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue