AZ logo

Package lastpage:
Reference last page for Page N of M type footers.

Reference the number of pages in your LaTeX document through the introduction of a new label which can be referenced like \pageref{LastPage} to give a reference to the last page of a document. It is particularly useful in the page footer that says: Page N of M.

Getting it

If possible, get this package from your distribution using its installation manager. (For installation help, click on your distribution's name.)

Distribution Package name
MiKTeX lastpage
TeX Live lastpage

You can also visit lastpage's CTAN directory to browse the source or download the material for installation by hand.

More

Documentation on CTAN
Readme
Package documentation
Package examples
Documentation off CTAN -none known-
Maintainers
Jeffrey Goldberg (no longer active on this package)
Hans-Martin Münch
Version 1.2k
License GNU General Public License (GPL), version 2 or later
Related packages
totpages:
Count pages in a document, and report last page number.
Keywords
page numbering
cross references
Characterizations
primary:
Page-focused > Page numbers

You can suggest changes to the keywords and characterizations and the maintainer information.

You can get information about any package.