2

I am trying to customize the \part{ } numbering as it appears in my Table of Contents. Currently, when I use \part{Stuff}, it appears in the TOC as:

"I Stuff (long whitespace) 2"

The trailing 2 in this case is the page number. I would like to change the roman I that marks part 1 to a custom label, specifically I would like it to look like this,

"Part I - Stuff (long whitespace) 2"

and for subsequent part labels to follow this formatting (Part II - , Part III - , etc.). Is this possible? It seems that an alternative would be to remove the number label entirely and simply include "Part I" in the { }, but I would need the label to be left-justified correctly.

Thanks.

1

Renewing the \cftpartpresnum command provided by the tocloft package should do what you want.

\documentclass{report}

\usepackage{blindtext,tocloft}

\renewcommand{\cftpartpresnum}{Part }

\begin{document}
    \tableofcontents
    \part{Part 1}
    \blinddocument
    \part{Part 2}
    \blinddocument
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.