Martin Schroeder <[log in to unmask]> writes:

> On 2003-01-08 14:39:14 +0100, David Kastrup wrote:
> > \AtBeginDocument or so.  Except that quite a few packages shift stuff
> > that could be relevant to that also in that hook.  Perhaps one would
> > need a command \AfterBeginDocument as well...
>
> \AtBeginDocument{\AtBeginDocument{foo}} ? :-)

\begin{document} redefines \AtBeginDocument to \@firstofone (or
something equivalent to it) before working off the saved hooks.

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum