• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版a94b80d13eb2c191e3ddc0b9eab70cac3dbd3385 (tree)
时间2023-02-20 23:05:24
作者Lorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

A simple example illustrating how to add references in a word document.

更改概述

差异

diff -r c3473ebc0253 -r a94b80d13eb2 markdown/test_referencing.Rmd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/markdown/test_referencing.Rmd Mon Feb 20 15:05:24 2023 +0100
@@ -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+```