[comp.text.tex] Total page number

norbert@rwthinf.UUCP (Norbert Kiesel) (01/23/91)

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.


		so long

			Norbert


*******************************************************************************
* Norbert Kiesel	Institut f. Informatik III     NN       NN    KK   KK *
* RWTH Aachen           Ahornstr. 55  		       NNN      NN    KK  KK  *
* West Germany		D-5100 Aachen 		       NN N     NN    KK KK   *
*                       +49 241 80-7266		       NN  N    NN    KKKK    *
* 		                 		       NN   N   NN    KKKK    *
* EUNET:  norbert@rwthi3.uucp          		       NN    N  NN    KK KK   *
* USENET: ...!mcvax!unido!rwthi3!norbert	       NN     N NN    KK  KK  *
* X.400:  norbert@rwthi3.informatik.rwth-aachen.de     NN      NNN    KK   KK *
*******************************************************************************

Douglas.Miller@viccol.edu.au (Douglas Miller) (01/31/91)

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}