GeneralSpecial page numbering for appendix not aling in TOC

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
mro
Posts: 18
Joined: Thu Oct 16, 2008 10:49 pm

Special page numbering for appendix not aling in TOC

Post by mro »

Oh well congrats for the new page. Now back to business: :-)

As one can see I have defined special page numbers for the appendix; that works fine so far, however the entries in the index are not lined up (see attach). Why would that be and what can I do to get the alignment right even with the special page numbering?

Regards,
Marki

MWE:

Code: Select all

\documentclass[12pt,twoside,a4paper,english]{book}
\usepackage[plainpages=false, pdfpagelabels]{hyperref} %pdfbookmark

\begin{document}

\tableofcontents

\chapter{Ch1}
\section{1}
1
\newpage
\section{2}
2

\appendix

\chapter{Supplement}
\renewcommand{\thepage}{A--\arabic{page}}
\setcounter{page}{1}
\label{app:calcs}

blabla
\newpage

\section{AAA}
blabalbla

\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}

\section{BBB}
blubblubb

\cleardoublepage
\section{CCC}
blubblubb

\end{document}
Attachments
R1.pdf
(33.32 KiB) Downloaded 213 times

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Special page numbering for appendix not aling in TOC

Post by phi »

There is simply too little room for the page numbers; you get the usual "overfull hbox" messages. Increase the space allocated for page numbers:

Code: Select all

\makeatletter
\renewcommand*\@pnumwidth{2.5em}
\makeatother
Post Reply