CTAN Comprehensive TeX Archive Network

New on CTAN: monoref

Date: July 9, 2026 7:39:35 AM CEST
Srikanth Mohankumar submitted the monoref package. Version: 1.3 2026-07-07 License: lppl1.3c Summary description: Single-pass cross-references, page totals, and a table of contents for LuaLaTeX Announcement text:
monoref (v1.3) — a new package that resolves forward \ref/\pageref, the total page count, and a multi-level table of contents in a single LuaLaTeX compilation, by holding pages in memory and back-patching at end of document. Optional clickable links via hyperref.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/monoref The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/luatex/latex/monoref/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs

monoref – Single-pass cross-references, page totals, and a table of contents for Lua

This package resolves forward cross-references (\ref, \pageref), the total page count (\lastpage), and a multi-level table of contents in a single Lua run — no rerun, no latexmk, and no .aux round-trip. It holds every finished page in memory via the shipout hook and back-patches the still-unknown values at \end{document}. Forward values are reserved as fixed-width slots that collapse to their natural width when filled, so lines never reflow and short values leave no gap. When hyperref is loaded, references and contents entries become clickable, using the package’s own named destinations so linking stays single-pass. The package requires Lua.

Packagemonoref
Version1.3 2026-07-07
Copyright2026 Srikanth Mohankumar
MaintainerSrikanth Mohankumar

Announcements

more

Guest Book Sitemap Contact Contact Author