I am numbering sections and specifying table of contents depth using the following in the yaml header:
output:
html_document:
toc: yes
toc_depth: 3
number_sections: true
toc_float:
collapsed: false
code_folding: hide
theme: cerulean
For sections that are automatically numbered, I'm getting depth 4 sections (#### ....) numbered. How can I specify the depth limit for section numbering? I know how to suppress numbering using #### .... {-} but would enjoy having something more automatic.