Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!murtoa.cs.mu.oz.au!viccol!dougcc From: Douglas.Miller@viccol.edu.au (Douglas Miller) Newsgroups: comp.text.tex Subject: Re: Total page number Message-ID: <6570.27a6cf01@csv.viccol.edu.au> Date: 30 Jan 91 18:49:52 GMT References: <3883@rwthinf.UUCP> Organization: Computer Services, Victoria College, Melbourne Lines: 16 In article <3883@rwthinf.UUCP>, norbert@rwthinf.UUCP (Norbert Kiesel) writes: > Hello, > I need page numbers formatted like ``1 of 7'', ``2 of 7'' etc. > > Is there any better way to get this than adding a > \label{end} > just before \end{document} and use a > \pageref{end} > while constructing the footer? > > I'm searching for a way to create a total.sty which generates this > automatically i.e. something like a hook at \end{document} to write > the \newlabel{end}{1}{7} to the .aux file. \let\old@enddocument=\enddocument \def\enddocument{\label{end}\old@enddocument}