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

subsubsection doesn't add numbering

Postby Hesham » Mon Apr 29, 2019 12:41 pm

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

Postby user22741 » Mon Apr 29, 2019 1:17 pm

  1. \documentclass{MastersDoctoralThesis}
  2.  
  3. \setcounter{tocdepth}{5}
  4. \setcounter{secnumdepth}{5}
  5.  
  6. \begin{document}
  7.  
  8. \subsubsection{title}
  9.  
  10. \end{document}

Hesham
Posts: 6
Joined: Thu Apr 25, 2019 11:08 am

Postby Hesham » Mon Apr 29, 2019 2:12 pm

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

  1. \setcounter{tocdepth}{3} % The depth to which the document sections are printed to the table of contents
  2. \ProvideDocumentCommand{\addchaptertocentry}{ m }{%
  3. \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

  1. % Simple interface for the user to customize the chapter titles
  2. \ProvideDocumentCommand{\abovechapterskip}{}{\vspace*{20pt}}
  3. \ProvideDocumentCommand{\chapterbelowskip}{}{\vspace*{40pt}}
  4. \ProvideDocumentCommand{\chapterinbetweenskip}{}{\vspace*{20pt}}
  5. \ProvideDocumentCommand{\autodot}{}{}
  6. \ProvideDocumentCommand{\mdtChapapp}{}{}
  7. \ProvideDocumentCommand{\chapteralign}{}{\raggedright}
  8. \ProvideDocumentCommand{\chapterfont}{}{\Huge\bfseries}
  9. \ProvideDocumentCommand{\chapterprefixfont}{}{\LARGE\bfseries}
  10. \DeclareDocumentCommand{\@makechapterhead}{ m }{%
  11. \abovechapterskip
  12. {\parindent \z@ \chapteralign \normalfont
  13. \ifnum \c@secnumdepth >\m@ne
  14. \if@mainmatter
  15. \ifbool{chapteroneline}{%
  16. \chapterfont \mdtChapapp\thechapter\autodot\enspace
  17. }{%
  18. \chapterprefixfont \@chapapp\space \thechapter
  19. \par\nobreak
  20. \chapterinbetweenskip
  21. }%
  22. \fi
  23. \fi
  24. \interlinepenalty\@M%
  25. \chapterfont #1\par\nobreak
  26. \chapterbelowskip
  27. }
  28. \thispagestyle{\chapter@p@gestyle}
  29. }

Appreciate your help and your time.
Thanks
Hesham

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Apr 29, 2019 3:13 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

Postby Hesham » Mon Apr 29, 2019 5:45 pm

This works. Thanks for your time and reply.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 2 guests