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:

\ifnum \c@tocdepth >\m@ne
\vskip 1\baselineskip
{   \parindent \z@
\rightskip \@tocrmarg
\parfillskip -\rightskip
\hskip -\leftskip
#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par

\ifnum \c@tocdepth >\z@ \vskip \tf@singlelineskip \fi


\ifnum \c@tocdepth >1 \vskip \tf@singlelineskip \fi

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?


1 Answer 1


The secnumdepth value determines to which level section and subsection headings are numbered. The tocdepth values determines to which level the table of contents will typeset section and subsection headings (See How to show subsubsections and paragraphs in TOC?).

For the turabian-thesis document class, use the setcounter command to change the secnumdepth and tocdepth values to '2' in the preamble of your latex document source file (instead of modifying the turabian-thesis.cls file). To do so, place the following code before \begin{document}:


To adjust how section and subsection entries are typeset in the table of contents, change the values used by @dottedtocline command in both the l@section and l@subsection commands. To do so, renew both the l@section and l@subsection commands by also placing the following code in your document preamble (the actual values serving as a suggestion):

        \ifnum \c@tocdepth >\z@ \vskip \tf@singlelineskip \fi
        \ifnum \c@tocdepth >\z@ \vskip \tf@singlelineskip \fi

With this, the numbers should now precede the section and subsection headings in the table of contents.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .