I am preparing an .Rmd
document that I will render into a .docx
. I want the figures to be labelled "Supplementary Figure 1: <Caption>
", but I can't see how to override the default addition of "Figure 1: <Caption>
" – which is possible for PDF output.
A document template allows me to change the style, but not the text content (as far as I can see).
---
output:
bookdown::word_document2:
reference_docx: "StyleTemplate.docx"
fig_caption: true
---
```{r figWithCaption, echo = FALSE, fig.cap = "(ref:caption)"}
variables <- 2
plot(cars) # figure content
` ``
(ref:caption) Caption to the figure might contain _markdown_ $^1$ or `r variables`
[Edit: Some of my figure captions contain markdown, which is supported by the "bookdown" package but (as far as I can see) not by "officedown"]