Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!ukc!stl!stc!axion!pyoung From: pyoung@zaphod.axion.bt.co.uk (peter young) Newsgroups: comp.text Subject: Re: Page numbering by chapter in LaTeX Message-ID: <1974@zaphod.axion.bt.co.uk> Date: 18 Jul 89 09:44:37 GMT References: <31495@ccicpg.UUCP> Sender: news@axion.bt.co.uk Reply-To: pyoung@zaphod.axion.bt.co.uk Lines: 46 From article <31495@ccicpg.UUCP>, by swonk@ccicpg.UUCP (Glen Swonk): > > What I would like is a page numbering scheme that the page number > would restart at the beginning of each chapter (like it > does in some technical manuals). > In the pre-amble (ie the bit before \begin{document}) change the command which numbers the pages to \renewcommand{\thepage}{\thesection-\arabic{page}} Then at the beginning of each section reset the page counter to 1 thus \setcounter{page}{1} This will cope with sections and will number all the pages in Appendix A as A-1, A-2 and so on. It helps if you begin each section on a new page. > Of course, I would like to generate a table of contents > that reflect the page numbering style. \tableofcontents can cope with this but it depends where you want your table of contents to appear and what page number you wish it to be on. It may be advisable to turn off the page numbering for this page. The same applies if you have a bibliography - one solution is to issue another renew command at the start of the bibliography (assuming it is after all the appendices; \renewcommand{\thepage}{Bib-\arabic{page}} \setcounter{page}{1} Will label all the bibliography pages Bib-1.... Hope this is some help. Pete +---------------------------------------------------------------------+ | Pete Young E-Mail :pyoung@axion.bt.co.uk | | Organisation :British Telecom Research Labs | | BTRL, Rm 313, SSTF, Martlesham Heath, IPSWICH IP5 7RE | | Phone : +44 473 645054 | +---------------------------------------------------------------------+ | Healey's Law of Holes: When you're in one, stop digging. | +---------------------------------------------------------------------+