Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!s41.csrd.uiuc.edu!eijkhout From: eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) Newsgroups: comp.text.tex Subject: Re: LaTeX page numbering Message-ID: <1990Nov8.175518.29434@csrd.uiuc.edu> Date: 8 Nov 90 17:55:18 GMT References: <1469@abekrd.UUCP> Sender: news@csrd.uiuc.edu (news) Organization: UIUC Center for Supercomputing Research and Development Lines: 19 graeme@abekrd.UUCP (Graeme Griffiths) writes: > I'm creating a standard document generator using a shell script that >drives LaTeX. On the first page of the document I have the total number of >pages in the document.I have done this by setting a label right at the end of >the document and \pageref ing to it at the start.This works O.K with two >passes but, I would like to prompt for added (i.e non LaTeX generated) pages >and have that added to the number on the first page.This seems alright until >I refer to my label as a value (lots of errors) The page number is stored in \count0. While it's not exactly proper LaTeX, you could just \advance\count0 by ... after you have output the last regular page (use \vfil\eject if necessary). This will generate one spurious page which you then have to throw in the garbage bin. Litterally. Lacking more detailed information this is the best I can suggest. V.