diff --git a/share/templates/latex/base.tex.j2 b/share/templates/latex/base.tex.j2 index d88152d01..493130b07 100644 --- a/share/templates/latex/base.tex.j2 +++ b/share/templates/latex/base.tex.j2 @@ -18,6 +18,8 @@ override this.-=)) % Basic figure setup, for now with no caption control since it's done % automatically by Pandoc (which extracts ![](path) syntax from Markdown). \usepackage{graphicx} + % Keep aspect ratio if custom image width or height is specified + \setkeys{Gin}{keepaspectratio} % Maintain compatibility with old templates. Remove in nbconvert 6.0 \let\Oldincludegraphics\includegraphics % Ensure that by default, figures have no caption (until we provide a