modern-latex-theme
modern-latex-theme copied to clipboard
Images break out of bounds
Hey, i really like your theme.
However, when i generate a pdf from markdown, images span multiple pages.
The images itself are huge, but they should scale. I use very basic markdown:

Thank you for your help!
I assume you are using pandoc
, if so you should be able to use {width=20%}
.
You also need to use the link_attributes
features:
pandoc \
--template=latex.template \
--pdf-engine=lualatex \
--pdf-engine-opt="-shell-escape" \
-f markdown_github+link_attributes
-o [OUTPUT.pdf] [INPUT.md]
That works, to some extend.
I can use {width=20px height=10px}
to scale the image, but that does not keep the aspect ratio.
In the end it will be easier to calculate the size manually. But thanks!