我使用以下内容在yaml
头部对节进行编号并指定目录深度:
output:
html_document:
toc: yes
toc_depth: 3
number_sections: true
toc_float:
collapsed: false
code_folding: hide
theme: cerulean
对于自动编号的部分,我得到了深度为4的章节(#### ....
)编号。如何指定章节编号的深度限制?我知道可以使用#### .... {-}
来取消编号,但更希望有自动化的方法。