auxhook
Provides specialized hooks for modifying and extending the behavior of auxiliary files during LaTeX document compilation.
Overview
Enables fine-grained control over auxiliary file handling in LaTeX documents, particularly at the beginning of .aux files. This functionality is especially valuable for package developers and advanced users who need to:
- Inject custom commands or data into auxiliary files
- Modify how LaTeX processes cross-references and document metadata
- Implement specialized document tracking or processing features
While primarily intended for package developers, the functionality can be useful in complex document workflows where precise control over auxiliary file behavior is needed.
Getting Started
To use auxhook
, include it in your document preamble:
\documentclass{article}
\usepackage{auxhook}
This package is primarily intended for package authors. The main functionality is:
% Add code to be executed at the beginning of the .aux file
\AddToHook{auxfile/begin}{code}