Skip to content
Discussion options

You must be logged in to vote

For the generated content there is a fig-width I can define, but it doesn't seems to affect images I insert in the document by myself.

fig-width only works for figures generated by computations as we document at https://quarto.org/docs/reference/formats/html.html#figures

You need to apply attributes on figures individually using Markdown syntax as explained in https://quarto.org/docs/authoring/figures.html#figure-sizing

If you want to apply an attributes on all items in a document, you may leverage Lua filters for that as it would allow you to tweak the document programatically (https://quarto.org/docs/extensions/filters.html)

You would target for example all Image element, and add a width

Replies: 4 comments 1 reply

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 kompre
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mcanouil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
html Issues with HTML and related web technology (html/css/scss/js) themes Related to HTML theming or any other style related issue (like highlight-style)
3 participants