Skip to content

Image resizing #280

Closed Answered by Witiko
rafaelzemog asked this question in Q&A
Discussion options

You must be logged in to vote

Since #256 (to be released in version 2.22.0 of the Markdown package at the end of March), you can use the linkAttribute option to specify attributes for links and images.

\documentclass{article}
\usepackage[linkAttributes]{markdown}
\begin{document}
\begin{markdown}
![example image](example-image.png "An example image from Martin Scharrer's mwe package"){width=250mm height=250mm}
\end{markdown}
\end{document}

In the Markdown package for LaTeX, key-value attributes on images are passed to the \includegraphics command by default, i.e. the above translates roughly to \includegraphics[width=250mm, height=250mm]{example-image.png}.

Replies: 11 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Witiko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feature request question lua Related to the Lua interface and implementation latex Related to the LaTeX interface and implementation
3 participants
Converted from issue

This discussion was converted from issue #50 on March 18, 2023 15:25.