Path: utzoo!attcan!utgpu!watmath!att!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcvax!ukc!castle!hwcs!zen!helen From: helen@zen.co.uk (Helen Grayson) Newsgroups: comp.text Subject: Altering pagenumbering in LaTeX Message-ID: <1682@zen.co.uk> Date: 9 Aug 89 10:52:09 GMT Reply-To: helen@zen.UUCP (Helen Grayson) Organization: Zengrange Limited, Leeds, England Lines: 24 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.