【问题标题】:Missing tittle and author缺少标题和作者
【发布时间】:2019-10-04 07:15:08
【问题描述】:

我有一个 Rmd(见下文)文件,当我在没有 toc 和 pandoc 的情况下执行该文件时,我能够获得标题和作者,但使用它们我无法看到它们。如何让我的标题和作者姓名与编号的章节和目录一起出现?

---
title: "Design"
author: "Jen"
output:
  html_document:
    toc: true
    pandoc_args: [
      "--number-sections"
    ]
  
---

# plots

【问题讨论】:

    标签: r-markdown pandoc


    【解决方案1】:

    您应该让rmarkdown 完全控制 pandoc 参数:

    ---
    title: "Design"
    author: "Jen"
    output:
      html_document:
        toc: true
        number_sections: true
    ---
    
    # plots
    

    来源:https://bookdown.org/yihui/rmarkdown/html-document.html#section-numbering

    【讨论】:

      猜你喜欢
      • 2015-08-12
      • 1970-01-01
      • 1970-01-01
      • 2010-11-23
      • 1970-01-01
      • 2013-05-31
      • 2016-08-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多