## LaTeX forum ⇒ Theses, Books, Title pages ⇒ TOC page numbers and levels

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Maks71
Posts: 6
Joined: Wed Aug 02, 2017 12:02 pm

### TOC page numbers and levels

Hi,

I am using Sunils Masters theses template
https://www.overleaf.com/12055382qpxccj ... /45754165/

And I would like to take the TOC down four levels(\subsubsection). when I put \subsubsection this works, however, the section numbers in the TOC do not appear. Labelling for level four does not work either.

My TOC is also out about 30 pages. The numbers are in error. I tried to post a log file however it was too big.

This forum has been so helpful for me. Thank you so much

Maks

Stefan Kottwitz
Posts: 8734
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Hi Maks,

for numbering, you may use:

`\setcounter{secnumdepth}{3}`

You can set it higher to also for deeper down numbering, such as for 4 or 5 to also number `\paragraph` and `\subparagraph`.

`\setcounter{tocdepth}{3}`

You can try higher values. Compile two times to see an effect on the table of contents.

Stefan

Maks71
Posts: 6
Joined: Wed Aug 02, 2017 12:02 pm
Hi Stefan,

In Sunil's instructions about using the Masters Doctoral thesis template, it said to enter the levels in the main.tex.

Under the last usepackage command in the preamble? I put:

\setcounter{tocdepth}{4}

I compiled this twice with LaTeX and once with PDFLaTeX and nothing is changed. I still get:

1 - Chapter heading
1.1.1 Chapter sub sub heading
Chapter no section number

I think I am still leaving something out. My chapter reads