再会。
我正在尝试使用导出到 Word 文档的 rmarkdown 文件创建会议摘要提交。我正在尝试找到一种在输出的word文档中插入空行的方法。我发现可以通过在 Markdown 文件末尾添加两个空格来插入换行符,但是,当您只需要一个空行时,此技巧不起作用。下面是示例代码
---
title: "HERE IS THE TITLE OF MY ABSTRACT"
output:
word_document:
reference_docx: draft-styles.docx
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r, include=FALSE, cache=FALSE, echo=FALSE}
library(rmarkdown)
```
Authors: John H. Curry^1^, Kathy S. James^1^, Patrick S. Curry^1^
Affiliations: ^1^University of Somewhere
*Presenting author information*
Name: John H. Curry
Email: [email protected] /cdn-cgi/l/email-protection
Affiliation details: Kinesiology, University of Somewhere, Ottawa, Canada
*Coauthor #2*
Name: Kathy S. James
Email: [email protected] /cdn-cgi/l/email-protection
Affiliation details: Kinesiology, University of Somewhere, Ottawa, Canada
*Coauthor #3*
Name: Patrick S. Curry
Email: [email protected] /cdn-cgi/l/email-protection
Affiliation details: Kinesiology, University of Somewhere, Ottawa, Canada
## Introduction
Here is where I write my introduction....
## Methods
Here is where I write my methods
## Results
Here is where I write my results...
## Discussion
Here is where I write my discussion
When I knit the document, sadly its a little clustered. Below I've added a picture with the current output (left) and what I would like it to look like (right).
![img](https://i.stack.imgur.com/267S3.jpg)
我浏览过论坛,但在使用Word文档时还没有看到解决方案。我将不胜感激任何建议。
谢谢