-
Notifications
You must be signed in to change notification settings - Fork 27
/
minimal_word.Rmd
67 lines (40 loc) · 1.13 KB
/
minimal_word.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
title: "officedown example"
output: officedown::rdocx_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, fig.cap = TRUE)
library(officedown)
```
\@ref(id-dash)
## Table of content {#id-dash}
<!---BLOCK_TOC--->
## List of figures
<!---BLOCK_TOC{seq_id: 'fig'}--->
## List of tables
<!---BLOCK_TOC{seq_id: 'tab'}--->
## A two columns section
<!---BLOCK_MULTICOL_START--->
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eu
pulvinar arcu, quis aliquam dui.
In at cursus ante.
Curabitur ligula quam, iaculis faucibus orci quis, vestibulum lobortis lectus.
Suspendisse fringilla nisl pulvinar, laoreet tellus sed.
<!---BLOCK_MULTICOL_STOP{widths: [3,3], space: 0.2, sep: true}--->
## Tables
```{r tab.cap="caption 1", tab.id="mtcars"}
head(mtcars)
```
## Reference
see figure \@ref(fig:boxplot) and table \@ref(tab:mtcars)!
## figures
### A boxplot
```{r fig.cap="A boxplot", fig.id = "boxplot", fig.alt="Alternative text for screen readers"}
boxplot(1:8)
```
<!---BLOCK_LANDSCAPE_START--->
## Landscape section
```{r, echo=FALSE}
barplot(1:5, col=1:5)
```
<!---BLOCK_LANDSCAPE_STOP--->