[Tugindia] how to get total no. of pages

H S Rai tugindia@tug.org
Mon, 4 Nov 2002 12:46:15 +0530 (IST)


Today at 11:07am +0530 Sumit Bhardwaj wrote:

>   I need to put following the footer:
>   Page <current page no> of <no . of total pages>

\usepackage{lastpage,fancyhdr}

\pagestyle{fancy}
\rfoot{\thepage/\pageref{LastPage}}

The above \rfoot will produce like: "4/32", make changes in \rfoot to
make it "4 of 32" if you want that way.

HTH

-- 
H.S.Rai

It said requires windows 95 or better, so I installed Linux.