标签: r-markdown
我正在尝试在R markdown中创建一个包含部分
第1节标题
1.1第1节
1.2 sub section 3
第2节标题
2.1
2.2子节
2.2.1 another sub section
有没有办法让R markdown生成这样的有序列表?
答案 0 :(得分:44)
将选项number_sections: true添加到您的YAML标题中:
number_sections: true
--- title: "My Report" output: html_document: number_sections: true --- # Main Section ## 2nd Level ### 3rd Level
瞧,你的部分已编号: