Theses, Books, Title pagesTOC page numbers and levels

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

TOC page numbers and levels

Post by Maks71 »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

TOC page numbers and levels

Post by Stefan Kottwitz »

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
LaTeX.org admin
Maks71
Posts: 6
Joined: Wed Aug 02, 2017 12:02 pm

TOC page numbers and levels

Post by Maks71 »

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!
Post Reply