[comp.text] Altering pagenumbering in LaTeX

helen@zen.co.uk (Helen Grayson) (08/09/89)

Recently there was a discussion in this group about altering the
page numbering from sequential to chapter-page. After considering
the various suggestions, I altered the style file (which is
broadly based on report.sty) to do this.

One slight problem remains:  In the table of contents and list
of figures, the page numbers are right justified.  If the box
specified by @pnumwidth is narrow enough (say 1.6em), then 6-9
followed by 6-10 looks OK, because the 0 sticks out into the
margin (but you get an overfull hbox error message, of course).

But where (as in the list of figures) 9-6 is followed by 11-1,
the effect is untidy.  I've improved it slightly by making
@pnumwidth wider (2em) and rewriting the last bit of
@dottedtocline so that there is an hfil on either side of the
page number.

What I then tried to do was to make @pnumwidth variable, depending
on whether the chapter number was one or two digits -- but the
program stopped with an error message (pnumwidth undefined).

Any suggestions?

Helen.