r-markdown
Automatically number sections in RMarkdown
Add the option number_sections: true to your YAML header: — title: “My Report” output: html_document: number_sections: true — # Main Section ## 2nd Level ### 3rd Level And voilá, your sections are numbered: