## LaTeX forum ⇒ Theses, Books, Title pages ⇒ subsubsection doesn't add numbering Topic is solved

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

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

MastersDoctoralThesis
subsubsection

Regards,
Hesham

user22741
Posts: 35
Joined: Fri Nov 09, 2018 12:03 pm
\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
Hi, thanks for replying me. I have found this pieces of code in the template class

\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

%  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}}

Thanks
Hesham

Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm
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