name lastpage category Package shortdesc Reference last page for Page N of M type footers. longdesc Reference the number of pages in your LaTeX document through the longdesc introduction of a new label which can be referenced like longdesc \pageref{LastPage} to give a reference to the last page of a longdesc document. It is particularly useful in the page footer that says: longdesc Page N of M. [description copied from TeX Catalogue]