About

are macros (or placeholders) stored in specific locations inside other macros that can be redefined to the user's specifications, thereby "hooking into" the macro at that specific point.

Common hooks used in documents include \AtBeginDocument and \AtEndDocument that adds contents to the hooks \@begindocumenthook and \@enddocumenthook, respectively. The etoolbox package provides a number of tools to hook into macros (via \patchcmd, say) and environments, amongst other pre-defined hooks.

history | show excerpt | excerpt history