[Tugindia] Typesetting Letters and Books
E. Krishnan
ekmath at asianetindia.com
Thu Aug 18 03:05:51 CEST 2005
On Wed, 17 Aug 2005, CV Radhakrishnan wrote:
> On Wed, August 17, 2005 9:20 pm, Kingshuk said:
> > While writing letters and applications, I am using fancyhdr package and
> > \pagestyle{empty} to remove page numbers.
> > Is there some means to put the page numbers the following way:
> >
> > page 1 of 5
> > page 2 of 5
> > ..
> > ..
> > page 5 of 5
>
> lastpage.sty will help you to get the above. The package says in its
> preamble:
>
> %% Allow for things like |page \thepage\ of \pageref{LastPage}| to
> %% get `page 5 of 23'
If you use both the packages "lastpage" and "fancyhdr", then you can
include a command like
\cfoot{\thepage of \pageref{LastPage}}
to get what you want.
--
Krishnan
More information about the tugindia
mailing list