I use \tableofcontents
to generate a ToC of a book. It uses Roman numerals I, II, III for parts, and Arabic numerals 1, 2, 3 for chapters. I would like it to say "Part I" rather than "I", and "Chapter 23" rather than "23". How can I change this consistently throughout the document?
[Tex/LaTex] Table of contents — changing headings
numberingtable of contents
Best Answer
You can use the tocloft package. A little example (feel free to adapt it according to your needs):
EDIT: changed the "manual" names "Part" and "Chapter" to \partname and "\chaptername".
EDIT: changed to properly handle appendixes