12.14.2 \AtEndOfClass & \AtEndOfPackage

Synopses:

\AtEndOfClass{code}
\AtEndOfPackage{code}

Hooks to insert code to be executed when LaTeX finishes processing the current class resp. package.

These hooks can be used multiple times; each code segment will be executed in the order called. Many packages and classes use these commands.

See also \AtBeginDocument.


Unofficial LaTeX2e reference manual