In the table of contents, I want the chapters to appear like

Chapter 1: Preface


Chapter 4: Advanced Topics

I tried to modify the \l@chapter command as shown in the MWE but what I get is actually

Chapter 1 Preface:

How to fix it?

I want to do it without titletoc or tocloft.

enter image description here

  \ifnum \c@tocdepth >\m@ne
    \vskip 1.0em \@plus\p@
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \hskip -\leftskip
      Chapter #1:\nobreak\hfil % <<<--- Changed
      \nobreak\hb@xt@\@pnumwidth{\hss #2%

1 Answer 1


The chapter number is printed in the \@chapter command, not in the \l@chapter command. So you need to patch both commands to do what you want without using one of the TOC packages:

\patchcmd{\l@chapter}{#1}{\chaptername{} #1}{}{}

output of code


You must log in to answer this question.

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