How can I insert two images side by side into a word document (.docx) with captions?
I found several solutions for HTML and pdf documents. However, for word documents, this doesn't seem to be the case.
This is my YAML:
---
title: "Two images side by side"
output: officedown::rdocx_document
---
I know that the following code can generally insert two images side by side (without captions):
{width=300} {width=300}
The problem with this is that I need figure captions for which I normally use include_graphics():
```{r, fig.cap = c("cap1", "cap2")}
include_graphics(c(" to my picture/picture.jpg", " to my picture/picture.jpg"))
``
For HTML and pdf documents I would add fig.show = "hold" to the chunk to stack them side by side. However, for word documents, this doesn't change anything.