I am writing an Rmd file that will be knitted to a report in Word. I am trying to create a label for a figure, and a cross reference to it, as in:
As illustrated in Figure
\ref{fig:TotalCarStock}, etc, etc.
```{r TotalCarStock, echo=FALSE, fig.cap="Forecasted versus actual car stock", out.width = '100%'}
knitr::include_graphics("C:/Usr/WP vehicle stock/TotalCarStock.jpg")
```
All discussions I have seen here indicate that this works correctly when creating a pdf document, but I wish to "knit" my Rmd file to a Word document. The Word document is created correctly, except that the label and the cross reference remain blank.
