修订版 | a94b80d13eb2c191e3ddc0b9eab70cac3dbd3385 (tree) |
---|---|
时间 | 2023-02-20 23:05:24 |
作者 | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
A simple example illustrating how to add references in a word document.
@@ -0,0 +1,15 @@ | ||
1 | +--- | |
2 | +title: "VHS Report" | |
3 | +author: "Laurent Franckx" | |
4 | +date: "14 September 2018" | |
5 | +output: | |
6 | + bookdown::word_document2: | |
7 | + fig_caption: yes | |
8 | +#pdf_document: default | |
9 | +--- | |
10 | + | |
11 | +As illustrated in Figure \@ref(fig:TotalCarStock), etc, etc. However, `out.width = '100%'` in an R chunk cannnot be specified when we want to produce a `.docx` output, because `out.width = '100%'` is used for creating `.pdf` outcome. | |
12 | + | |
13 | +```{r TotalCarStock, echo=FALSE, fig.cap="Forecasted versus actual car stock"} | |
14 | +knitr::include_graphics("https://i.stack.imgur.com/JlNbf.png") | |
15 | +``` |