LaTeX forum ⇒ Theses, Books, Title pagesSection Numbers in toc using turabian-formatting

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
bopgah
Posts: 1
Joined: Fri Feb 01, 2019 4:36 pm

Section Numbers in toc using turabian-formatting

Postby bopgah » Fri Feb 01, 2019 4:48 pm

I am currently writing my dissertation in latex using turabian-formatting's thesis class, https://ctan.org/pkg/turabian-formatting. By default, the class does not show section and subsection numbers. I have figured out how to get it to show these by commenting out the line in the package that disables them. However, in the table of contents it now tries to write the section (and subsection) numbers *over* the names, making a mess. Here is the (I think) relevant part of the package that controls how the table of contents looks:
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \renewcommand*{\l@chapter}[2]{%
  2. \ifnum \c@tocdepth >\m@ne
  3. \addpenalty{-\@highpenalty}%
  4. \setlength\@tempdima{1.25in}%
  5. \vskip 1\baselineskip
  6. { \parindent \z@
  7. \rightskip \@tocrmarg
  8. \parfillskip -\rightskip
  9. \leavevmode
  10. \advance\leftskip\@tempdima
  11. \hskip -\leftskip
  12. #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
  13. \penalty\@highpenalty}
  14. \fi}
  15.  
  16. \renewcommand*{\l@section}{%
  17. \ifnum \c@tocdepth >\z@ \vskip \tf@singlelineskip \fi
  18.  
  19. \@dottedtocline{1}{1.5in}{\z@}}
  20.  
  21. \renewcommand*{\l@subsection}{%
  22. \ifnum \c@tocdepth >1 \vskip \tf@singlelineskip \fi
  23. \@dottedtocline{2}{1.75in}{\z@}}

Sadly, this is all Greek to me. The chapters look fine in the table of contents. Does anyone have any ideas about how to fix the section and subsection formattings so that it displays properly?

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

Postby Johannes_B » Sat Feb 02, 2019 8:15 am

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 8 guests