totpages

The document's number of pages, as the label TotPages on its last.

Loading

\usepackage{totpages}

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:

totpages.tex
\documentclass{article}
\usepackage{totpages}
\begin{document}
Page \thepage{} of \ref{TotPages}.
\end{document}
OutputLoading mLaTeX in your browser
Loading mLaTeX

On this page