Reputation: 84529
I'm writing a report in Rmarkdown language with Rstudio, and then I convert the md
file (not the Rmd
file) into doc
format using pandoc.
Each figure has a caption in the output doc
file: "plot of chunk unnamed-chunk-xxx". Of course I can modify this caption in the md
file, but I wonder whether it is possible to directly modify it in the Rmd
file.
Upvotes: 3
Views: 2238
Reputation: 84529
Ooops I have found a solution: option fig.cap
of the R chunk.
The caption appears in the Word file after conversion, but it does not appear in the html file.
Upvotes: 3