Let's say I have these two simple files
myclass.cls:\LoadClass{article} \AtBeginDocument{\typeout{IN CLASS}}myfile.tex\AtBeginDocument{\typeout{BEFORE CLASS}} \documentclass{myclass} \AtBeginDocument{\typeout{AFTER CLASS}} \begin{document} empty \end{document}
When compiling myfile.tex I hoped to see messages in this order:
BEFORE CLASSIN CLASSAFTER CLASS
I rather got this order:
IN CLASSBEFORE CLASSAFTER CLASS
What did I miss?
Just for the sake of completeness, I get this result using pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) and kpathsea version 6.3.2.
Anyway thank's for the link.
– Bruno BEAUFILS Jun 25 '21 at 19:29\AtBeginDocumentchanged? – Bruno BEAUFILS Jun 25 '21 at 19:33