AMM*_*AMM 5 ms-word r-markdown
我已经看到了各种适用于 pdf 和 HTML 文档输出的解决方案。但是,对于文字输出,没有一个对我有用。当|按照此处的建议使用时:将标题拆分为多行?只是让整个标题消失了。这是代码:
---
title: |
| Supporting Information
| Development and mechanistic bla bla.
author: Some people
output:
word_document:
reference_docx: ACS SI style for RMD.docx
mainfont: Arial
---
<style>
body {
text-align: justify}
p {line-height: 1.5em;}
</style>
Run Code Online (Sandbox Code Playgroud)
任何帮助将非常感激。
该|管道不连同字工作。将标题设置为""。对于输出到单词的标题中的换行,我们可以使用:
\n
(重要:以两个空格为首!)。
---
title: "Supporting Information \nDevelopment and mechanistic bla bla."
author: Some people
output: word_document
---
Run Code Online (Sandbox Code Playgroud)
屈服
空行
为了实现标题内的空行,单词在这些行中想要“东西”,因此我们可以在换行代码后设置一个不间断空格:
\n
(再次重要: \n以两个空格为首!)。
---
title: "Supporting Information \n \n Development and mechanistic bla bla."
author: Some people
output: word_document
---
Run Code Online (Sandbox Code Playgroud)
屈服
| 归档时间: |
|
| 查看次数: |
2628 次 |
| 最近记录: |