Directory macros/luatex/latex/docref
LaTeX Package: DocRef v0.2 2026-10-26
Cross-references to external LaTeX package documentation.
Description
docref retrieves reference numbers, titles, and page numbers from locally available package manuals. It requires LuaLaTeX.
Usage
~latex documentclass{article} usepackage{docref} usepackage{hyperref} % optional begin{document} See Section~docref{babel}{selectors}, ~docnameref{babel}{selectors}'', on page~docpageref{babel}{selectors}. end{document}
All three commands take a package name and label. With hyperref, references link to the PDF manual; starred forms suppress links. Unresolved values produce ?? and a warning.
Common documentation source names are discovered automatically. To select a source or auxiliary file explicitly, use:
~latex DocRefSource{pkg}{build/manual.aux}build/manual.pdf ~
The first file may be .tex, .ltx, .dtx, or .aux; the optional final argument specifies a PDF file or URL. Auxiliary records support all label types, including figures, tables, equations, and custom counters. Titles require nameref or hyperref in the target manual; exact destinations require hyperref there. Without auxiliary records, lookup is limited to source headings and PDF information.
Installation
Keep docref.sty and docref.lua together beside your document or in a TeX-searchable directory.
Documentation
See the main manual for lookup rules and examples.
License and maintainer
- License: LPPL 1.3c or later.
- Maintainer: Amer Amikhteh.
Download the contents of this package in one zip archive (63.3k).
DocRef – Cross-references to labels in external LaTeX documentation
This package provides cross-references to labels in locally available LaTeX package documentation, retrieving reference numbers, titles, and page numbers. It supports links to PDF manuals via hyperref and requires LuaLaTeX.
| Package | DocRef |
| Bug tracker | |
| Repository | |
| Version | 0.2 2026-10-26 |
| Licenses | The LaTeX Project Public License 1.3c |
| Copyright | 2026 Amer Amikhteh |
| Maintainer | Amer Amikhteh |
| Contained in | TeX Live as docref MiKTeX as docref |
| Topics | Label and References LuaTeX |