【发布时间】:2018-04-27 16:32:49
【问题描述】:
我正在使用 rmarkdown 生成一个单词 (.docx) 报告。我想更改目录的标题。这似乎是可能的,因为在 doc 文件 (1) 的情况下,pandoc_args 可以作为 yaml 标头中的选项传递。但我做得不对。谁能提供一个可行的例子?
(1) pandoc.args 包含在 rmarkdown 可能的选项中,并且在 pandoc 手册中,有一个 toc-title 选项
---
title: "yaml header"
author: "cedric"
output:
word_document:
toc: true
pandoc_args: toc-title="Table des matières"
---
# One section
# Another
这会产生:
【问题讨论】:
标签: r yaml knitr r-markdown pandoc