Figure width in typst: should this work? #10597
-
DescriptionThe docs state that:
When you click through the link, you get to Figure Sizing, which presents this example: ---
format: typst
---
{width=300} However I'm getting this error when running on 1.5.56 on macos 14.6.1. [typst]: Compiling template.typ to template.pdf...error: expected relative length or auto, found integer
┌─ template.typ:277:61
│
277 │ #box(image("template_files/mediabag/html-figure.png", width: 300))
│ I've tested with local images and different width units but no dice. The docs make me think this should work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I believe this is fixed in 1.6. For reference: |
Beta Was this translation helpful? Give feedback.
-
Typst requires units on their image sizes, so if you're in an older version of Quarto, use |
Beta Was this translation helpful? Give feedback.
I believe this is fixed in 1.6.
For reference: