Page Layout ⇒ Appendix page numbers misaligned in contents
-
- Posts: 13
- Joined: Tue Dec 07, 2010 5:25 pm
Appendix page numbers misaligned in contents
The picture below shows my contents page, where the appendix page numbers are misaligned when going into double figures. Can someone please advise on a fix?
I'm using the appendix package, and in the body of my document have set \pagenumbering{bychapter}.
- Attachments
-
- latex_help.jpg (37.75 KiB) Viewed 1949 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Appendix page numbers misaligned in contents
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 13
- Joined: Tue Dec 07, 2010 5:25 pm
Appendix page numbers misaligned in contents
Thanks Thorsten. I did search the forums and found nothing before I posted. However, the tocloft package documentation was indeed the key.
The fix was simply to include these lines* in the preamble. The tocloft package does not even need to be included.
Code: Select all
\makeatletter
\renewcommand{\@pnumwidth}{3em}
\renewcommand{\@tocrmarg}{4em}
\makeatother
Chris