I'm trying to remove a chapter in the ToC
to instead replace it with a custom text.
A easy way is do like this:
\chapter*{Chapter}
\addcontentsline{toc}{chapter}{Custom chapter name}
But this unfortunately removes all chapter numbers in the
underlying sections and subsections.
How can I go around this?
Best Answer
Here's a somewhat cleaner way (in my point of view) to provide a different chapter number title:
Either manipulate the
tocdepth
counter temporarily or use\chapter[Other ToC Title]{Different in - body - title}
.