【问题标题】:How add a blank line between title and authors in YAML output - Rmarkdown?如何在 YAML 输出中的标题和作者之间添加一个空行 - Rmarkdown?
【发布时间】:2019-09-05 17:02:54
【问题描述】:

我在 rmarkdown 中有这样的代码:

---
title: "title"
author: "author"
output: pdf_document
---

如何在标题和作者之间添加一个空行?在默认输出中,作者的名字与标题的名字非常接近。我认为解决方案很简单,但我看不到。

提前致谢!

【问题讨论】:

    标签: r yaml r-markdown


    【解决方案1】:

    this comment 之后,您可以使用 | 在标题或作者中添加多行象征。

    ---
    title: "title"
    author: |
       | 
       | author
    output: pdf_document
    ---
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-20
      • 1970-01-01
      • 2017-08-31
      • 2020-05-13
      • 2015-10-08
      • 2017-02-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多