CTAN Comprehensive TeX Archive Network

Directory macros/luatex/latex/docref

README.md

Package: DocRef v0.2 2026-10-26

Cross-references to external package documentation.

Description

docref retrieves reference numbers, titles, and page numbers from locally available package manuals. It requires Lua.

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 -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 documentation

This package provides cross-references to labels in locally available package documentation, retrieving reference numbers, titles, and page numbers. It supports links to PDF manuals via hyperref and requires Lua.

PackageDocRef
Bug tracker
Repository
Version0.2 2026-10-26
LicensesThe Project Public License 1.3c
Copyright2026 Amer Amikhteh
MaintainerAmer Amikhteh
Contained inTeX Live as docref
MiKTeX as docref
TopicsLabel and References
Lua
...
Guest Book Sitemap Contact Contact Author