Page LayoutAppendix page numbers misaligned in contents

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ChrisDanger
Posts: 13
Joined: Tue Dec 07, 2010 5:25 pm

Appendix page numbers misaligned in contents

Post by ChrisDanger »

Hi All,

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
latex_help.jpg (37.75 KiB) Viewed 1951 times
Last edited by ChrisDanger on Thu Mar 03, 2011 11:49 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by localghost »

This problem has already been discussed here very often. Search the forum for solutions by the tocloft package.


Thorsten
ChrisDanger
Posts: 13
Joined: Tue Dec 07, 2010 5:25 pm

Appendix page numbers misaligned in contents

Post by ChrisDanger »

Hi,

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
* widths may need to be changed to suit.

Chris
Post Reply