[texhax] correct page count

Philip G. Ratcliffe philip.ratcliffe at fastwebnet.it
Fri Sep 7 09:31:42 CEST 2007


> Hi, I'm defining footers as follows.
> 
> \fancyfoot{}
> \fancyfoot[R]{\slshape \textnormal{\thepage~of~\pageref{doc:end}}}
> 
> And, the end of my \appendix is mostly tables, there are 2 pages of
> floats.  I don't have any positional characters in the tables and
> it seems page numbering stops before the floats.
> 
> \label{doc:end}
> \end{document}
> 
> and the last float has "23 of 21" on the bottom of the page. I
> think I see the logic but is there anyway to get "23 of 23"?

Your problem is that \label{doc:end} triggers BEFORE the last page is
actually shipped out and therefore doesn't necessarily get the correct
number.

Try the "lastpage" package - it does the job properly.  

Cheers,  Phil



More information about the texhax mailing list