Page Layout ⇒ \tableofcontents and Appendices
\tableofcontents and Appendices
\appendix
\chapter{First}
..
\chapter{Second}
..
and tried to use just one chapter named Appendices and a number of section within it. And I need also to use another name instead of "Appendix" for sections, so I wrote something like
\renewcommand{\thesection}{NonstandardAppendixName \Alph{section}:}
However, the \tableofcontents command does not seem to have recognized correctly my redefinition, in particular it did not recognize that the
length of the "NonstandardAppendixName" has become larger. So the result is that "NonstandardAppendixName" overlaps with the names of sections in the table of contents. The problem is only with the \tableofcontents, in the text everything looks fine.
I need to make \tableofcontents know about the appendix-name-redefinition!
Good ideas from specialists are very much appreciated!
Best wishes,
JohnSt
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
\tableofcontents and Appendices
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10