[tex-live] Illegal parameter number in definition of \@preamblecmds
David Kastrup
dak at gnu.org
Sun Oct 4 14:24:19 CEST 2009
Zdenek Wagner <zdenek.wagner at gmail.com> writes:
> I found that floatrow contains \@onlypreamble within \AtBeginDocument
> but it is allowed only in the preamble, not in \AtBeginDocument. This
> may explain why the order of loading the packages matter.
It certainly looks stupid to put \@onlypreamble in \AtBeginDocument.
But I read in latex.ltx
\def\document{\endgroup
[...]
\@begindocumenthook
[...]
\gdef\do##1{\global\let ##1\@notprerr}%
\@preamblecmds
\global\let \@nodocument \relax
\global\let\do\noexpand
\ignorespaces}
So I don't see that \@onlypreamble would not work in \AtBeginDocument.
The preamble disabling happens after executing the document hook.
--
David Kastrup
More information about the tex-live
mailing list