如何在rmarkdown';中强制换行;谁的头衔?
我在一个rmarkdown文档中有一个很长的标题,我想在一个特定的位置强制换行 最起码的例子:如何在rmarkdown';中强制换行;谁的头衔?,r,r-markdown,R,R Markdown,我在一个rmarkdown文档中有一个很长的标题,我想在一个特定的位置强制换行 最起码的例子: --- title: "Quite long title want the * line break at the asterisk" output: html_document --- 我尝试过:\n、\换行符、\和手动换行符。它们似乎都不起作用 我认为这必须非常简单,但我还没有找到解决方案。尝试在每行中使用管道|: --- title: | | Veryyyyyyy | yyyyyy
---
title: "Quite long title want the * line break at the asterisk"
output: html_document
---
我尝试过:\n、\换行符、\和手动换行符。它们似乎都不起作用
我认为这必须非常简单,但我还没有找到解决方案。尝试在每行中使用管道
|
:
---
title: |
| Veryyyyyyy
| yyyyyyyyyyyyyy Looooo
| oooooooooooooooo
| oooooooooooong
author: "Foo Bar"
date: "6 March 2015"
output: html_document
---
对于居中的多行标题:
---
title: |
<center> Veryyyyyyy </center>
<center> yyyyyyyyyyyyyy Looooo </center>
<center> oooooooooooooooo </center>
<center> oooooooooooong </center>
author: "Foo Bar"
date: "6 March 2015"
output: html_document
---
---
标题:|
veryyyyyy
YYYYYYYYYY Looooo
呜呜呜呜呜呜
呜呜呜呜
作者:“富吧”
日期:“2015年3月6日”
输出:html\u文档
---
我知道这是一篇老文章,但我想插话:
# A Title of some kind
<br><br><br><br><br>
# Another title that has 5 blank lines above it
#某种名称
#另一个标题上面有5个空行
请注意,第3行需要两个空格,否则标题将无法正确显示在Rmarkdown::html_文档中。这个解决方案有点难找到,希望有帮助 工作得很有魅力。感谢管道前的4个空间和管道后的单个空间是必不可少的!管道前的两个空格(如上面的代码)可以工作到管道前的两个空格,管道后的一个空格,没有引号,现在对我来说可以工作了。你知道为什么在输出样式pdf\u文档和html\u文档中可以工作,但在word\u文档中不行吗?有没有办法用word文档实现同样的功能?