Figures produced by code chunks are placed to the right of the slide in PowerPoint, and the text is left. This is nice. But I can't modify the figure width. When I try to increase the figure width, the figure height decreases instead. Modifying the figure height works.
I think there must be some box / container created behind the scenes which I don't know how to specifically modify. Any ideas?
---
title: "test"
format: pptx
editor: visual
---
## Test
This is Iris.
Iris was born in 1936.
Her father's name was Ronald
```{r}
plot(iris)
```
Tried with chunk option fig.width, or YAML option fig-width, here 15 inch.
One way is to change the powerpoint template used as described here. I found the description a bit difficult, so let me re-iterate in my own simpleton way.
quarto pandoc -o template.pptx --print-default-data-file reference.pptx
This will create a file template.pptx
in your working directory.
Powerpoint menu: view - master - slide master
For this particular question, you need to change the layout of the "Content with Caption" slide.
---
title: "test"
format:
pptx:
reference-doc: template.pptx
editor: visual
---
(Needless to say, the file needs to be named like your template file in the working directory).
Result: