New answers tagged

8

Your question isn't that clear but there is an \everyeof hook (added by etex) so if your class goes \def\foo{\begin{document}\end{document}} \everyeof{\global\expandafter\let\expandafter\foo\expandafter\relax\foo} Then \foo will define itself to do nothing (in case more than one file is input) but the first time will do \begin{document}\end{document} ...



Top 50 recent answers are included