如何在rmarkdown(bookdown)到docx中打断fig.cap中的一条线?
我想要一个数字标题,在它的正下方(在下一行),另一段文字。我该怎么做 我设法用如何在rmarkdown(bookdown)到docx中打断fig.cap中的一条线?,r,r-markdown,docx,bookdown,R,R Markdown,Docx,Bookdown,我想要一个数字标题,在它的正下方(在下一行),另一段文字。我该怎么做 我设法用word\u文档输出格式: --- title: "Untitled" author: "Guilherme" date: "10/6/2020" output: word_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` ```{r, fig.c
word\u文档
输出格式:
---
title: "Untitled"
author: "Guilherme"
date: "10/6/2020"
output: word_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r, fig.cap="Título da figura \\\n Fonte: Autor"}
plot(1:10,1:10)
```
但它不适用于bookdown::word\u document2
:
---
title: "test-report.Rmd"
author: "Guilherme"
date: "9 de maio de 2018"
output:
bookdown::word_document2:
fig_caption: TRUE
toc: TRUE
toc_depth: 4
number_sections: FALSE
---
```{r setup, include=FALSE}
library(knitr)
opts_chunk$set(
fig.path = "graficos/",
dpi = 100,
comment = NA,
warning = FALSE,
cache = FALSE,
echo = FALSE)
```
## Heading 2
And I have this next subsection
```{r, fig.cap="Título da figura \\\n Fonte: Autor"}
plot(1:10,1:10)
```