我正在尝试在 R markdown 中创建一个包含已排序部分的报告
第 1 节标题
1.1 第 1 小节
1.2第3小节
第 2 节标题
2.1
2.2小节
2.2.1 another sub section
有没有办法让 R markdown 生成这样的有序列表?
最佳答案
添加option number_sections: true
到您的 YAML header :
---
title: "My Report"
output:
html_document:
number_sections: true
---
# Main Section
## 2nd Level
### 3rd Level
瞧,您的部分已编号:
关于r-markdown - 在 RMarkdown 中自动编号部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40120050/