atveryend
Provides specialized hooks and commands for executing code at the precise end of document compilation.
Overview
Enhances document finalization by offering fine-grained control over actions that occur during the very last stages of LaTeX compilation. This specialized functionality is particularly valuable for:
- Managing cleanup operations at document completion
- Executing final document modifications or calculations
- Implementing custom end-document behaviors
- Supporting other packages that need to perform actions at the absolute end of processing
Primarily used by package developers and advanced LaTeX users who need precise control over document finalization sequences.
Getting Started
To use atveryend
, include it in your document preamble:
\documentclass{article}
\usepackage{atveryend}
This package is primarily intended for package authors. The main functionality is providing hooks that can be used at the very end of a document.
Examples
Using atveryend to execute code at the very end of document processing.
\documentclass{article}
\usepackage{atveryend}
\AtVeryEndDocument{\typeout{Document processing has completely finished.}}
\begin{document}
This is a simple document demonstrating the \texttt{atveryend} package.
The package provides hooks that allow executing code at the very end of document
processing, after all other end-document hooks have been processed.
\end{document}