[texhax] special page numbering

Robin Fairbairns Robin.Fairbairns at cl.cam.ac.uk
Tue Jan 13 13:41:43 CET 2004


> redefine your \appendix command to define a new page numbering style:
> 
> \let\oldappendix\appendix
> \makeatletter
> \renewcommand{\appendix}{
> 	\oldappendix
> 	\renewcommand{\thepage}{\Alph\c at chapter\arabic\c at page}
> }
> \makeatother

that's actually just wrong.  \@Alph\c at chapter (etc) or \Alph{chapter}

also, it doesn't quite work: numbering will go A1 A2 A3 B4 B5 C6 ...

and \@addtoreset isn't useful either -- the default version would make
the first page of each appendix number 0.

these issues are addressed in chappg.sty (which is in my old tetex
system, so i guess is generally available; otherwise ctan
macros/latex/contrib/misc/chappg.sty) 

to use it for the present purpose (rather than to copy concepts out of
the file):

\usepackage{chappg}
\renewcommand\chappgsep{}
\pagenumbering{arabic} % for the body of the document

...

\appendix
\pagenumbering{bychapter}

however, there's all sorts of whizzies that you might like to
investigate.


More information about the texhax mailing list