LaTeX forum ⇒ Theses, Books, Title pagesTOC 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

Postby Maks71 » Tue Nov 07, 2017 3:58 pm

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 8523
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Tue Nov 07, 2017 5:43 pm

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.

Similar for appearing in the table of contents:

\setcounter{tocdepth}{3}

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

Stefan
Site admin

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

Postby Maks71 » Tue Nov 07, 2017 8:48 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 Chapter subheading
1.1.1 Chapter sub sub heading
Chapter no section number

I think I am still leaving something out. My chapter reads
\section {Chapter subheading}
\subsection {Chapter sub sub heading}
\subsubsection{Chapter no section number}

The issue is that there is no number in front of "Chapter no section number"

Thanks for the help!


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 1 guest