lastpage

The document's last page, for "page 3 of \pageref{LastPage}".

Loading

\usepackage{lastpage}

A module of its own, compiled into mLaTeX: the package's commands are defined over mLaTeX's primitives.

Example

A document that uses it, from mLaTeX's own tests, so it compiles as written, and below it what mLaTeX sets from it in your browser:

lastpage.tex
\documentclass{article}
\usepackage{lastpage}
\begin{document}
Page \thepage{} of \pageref{LastPage}.
\end{document}
OutputLoading mLaTeX in your browser
Loading mLaTeX

On this page