TOC in Rmark down

My content page is not showing any sub third heading in r mark. Any idea why is this happening please?

---
title: ""
author: ""
date: ""
output:
  rmarkdown::pdf_document:
  number_sections: yes
  toc: yes
  fig_caption: yes
  includes:  
    in_header: my_header.tex
bibliography: bibliography.bib    
---

Many Thansk

You need to add a toc_depth sub-option to your YAML header.

---
output:
  pdf_document:
    toc: true
    toc_depth: 4
---
3 Likes

Many Thanks for this.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.