Skip to content

Commit

Permalink
Fix broken image scaling in case a custom width or height is provided…
Browse files Browse the repository at this point in the history
… for the image (#2094)
  • Loading branch information
AndSte01 committed Jan 10, 2024
1 parent 1fd6a55 commit fa8a2de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions share/templates/latex/base.tex.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa8a2de

Please sign in to comment.