Theses, Books, Title pagessubsubsection doesn't add numbering

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
Hesham
Posts: 6
Joined: Thu Apr 25, 2019 11:08 am

subsubsection doesn't add numbering

Post by Hesham »

Hi,
in the template (MastersDoctoralThesis), the command (\subsubsection) add a headline but without numbering. How to fix that please? thanks.

MastersDoctoralThesis
subsubsection

Regards,
Hesham

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
user22741
Posts: 35
Joined: Fri Nov 09, 2018 12:03 pm

subsubsection doesn't add numbering

Post by user22741 »

Code: Select all

\documentclass{MastersDoctoralThesis}

\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}

\begin{document}

\subsubsection{title}

\end{document}
Hesham
Posts: 6
Joined: Thu Apr 25, 2019 11:08 am

subsubsection doesn't add numbering

Post by Hesham »

Hi, thanks for replying me. I have found this pieces of code in the template class

Code: Select all

\setcounter{tocdepth}{3} % The depth to which the document sections are printed to the table of contents
\ProvideDocumentCommand{\addchaptertocentry}{ m }{%
	\addcontentsline{toc}{chapter}{#1}%
I have changed 3 to 4, but this doesn't help. The title shows in the toc, but still without numbering, the same for the text itself.

For the other parameter you mentioned, I can find it here, but don't know what to do with it

Code: Select all

%  Simple interface for the user  to customize the chapter titles 
\ProvideDocumentCommand{\abovechapterskip}{}{\vspace*{20pt}}
\ProvideDocumentCommand{\chapterbelowskip}{}{\vspace*{40pt}}
\ProvideDocumentCommand{\chapterinbetweenskip}{}{\vspace*{20pt}}
\ProvideDocumentCommand{\autodot}{}{}
\ProvideDocumentCommand{\mdtChapapp}{}{}
\ProvideDocumentCommand{\chapteralign}{}{\raggedright}
\ProvideDocumentCommand{\chapterfont}{}{\Huge\bfseries}
\ProvideDocumentCommand{\chapterprefixfont}{}{\LARGE\bfseries}
\DeclareDocumentCommand{\@makechapterhead}{ m }{%
	\abovechapterskip
	{\parindent \z@ \chapteralign \normalfont
		\ifnum \c@secnumdepth >\m@ne
		\if@mainmatter
		\ifbool{chapteroneline}{%
			\chapterfont \mdtChapapp\thechapter\autodot\enspace
		}{%
			\chapterprefixfont \@chapapp\space \thechapter
			\par\nobreak
			\chapterinbetweenskip
		}%
		\fi
		\fi
		\interlinepenalty\@M%
		\chapterfont #1\par\nobreak
		\chapterbelowskip
	}
	\thispagestyle{\chapter@p@gestyle}
}
Appreciate your help and your time.
Thanks
Hesham
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

subsubsection doesn't add numbering

Post by Johannes_B »

Add the mentioned lines to main.tex as suggested. Do not change the class file.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Hesham
Posts: 6
Joined: Thu Apr 25, 2019 11:08 am

subsubsection doesn't add numbering

Post by Hesham »

This works. Thanks for your time and reply.
Post Reply