[Tugindia] how to get total no. of pages

Radhakrishnan CV tugindia@tug.org
05 Nov 2002 09:26:55 +0530


>>>>> "CVR" == Radhakrishnan CV <cvr@river-valley.org> writes:

    CVR> \def\lastpage{0} \AtEndDocument{% \clearpage
    CVR> \addtocounter{page}{-1}
    CVR> \immediate\write\@auxout{\string\lastpage{\thepage}} }

Sorry, there is a small mistake. The last line should be:

  \immediate\write\@auxout{\string\gdef\string\lastpage{\thepage}}}

Once again apologies.

Best.

-- 
Radhakrishnan