Scale svg file in quarto MSword report

Hi!
I'm writing my thesis in quarto and rendering it in MSWord. I want to add a .svg image and scale it to the page width.
So far I've managed to insert the image, cross reference it, but I haven't been able to scale it ( {width=0-150%} with or without '%' does nothing).

![image description](./path/myimage.svg){#fig-ref}
and
![image description](./path/myimage.svg){width=150%; #fig-ref}
produce the same result.

I've tried with a couple column-page options to no result.

:::{.column-page}
![image description](./path/myimage.svg){#fig-ref}
:::

What am I doing wrong? Is there a way to specify the width I want to render my svg to?
I'm happy to provide any details necesary. Thanks in advance!

ps: I could create the image witha bigger size, but would defeat the purpose of svg, right?

edits: typos and clarifications.

Solution:
Ok, after searching for other stuff I learned that in the visual editor of Rstudio you can actually set up specific height/width and other figure properties. After switching to source view again, I realized I wasn't specifiyng the width option properly. I couldn't find anywhere on the official quarto guide how to manually set up the width for figures, so for those wondering how to specify width/height of your images in quarto:

![image description](./path/myimage.svg){#fig-ref width="170mm"} (px, mm, cm, in, and % are accepted)

Ahoy! Could I suggest you post this to the quarto discussion board at Discussions · quarto-dev/quarto-cli · GitHub

Quarto is under very active development, and I'm sure they'd appreciate your post as a suggestion to improve the docs.

1 Like

Solution:
Ok, after searching for other stuff I learned that in the visual editor of Rstudio you can actually set up specific height/width and other figure properties. After switching to source view again, I realized I wasn't specifiyng the width option properly. I couldn't find anywhere on the official quarto guide how to manually set up the width for figures, so for those wondering how to specify width/height of your images in quarto:

![image description](./path/myimage.svg){#fig-ref width="170mm"} (px, mm, cm, in, and % are accepted)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.