[texhax] End of file

Philip G. Ratcliffe philipratcliffe at tiscali.it
Thu Jan 12 23:16:36 CET 2006

> Is there a command in (La)TeX that would define EOF anywhere in
> the file, so
> the rest of the text in the file (below the command) would be
> omitted while
> compiling the document. That would apply to input file(s). I
> would like to
> avoid commenting or deleting the rest of the text - I would like
> to preserve
> it as it is.

Just put in \end{document} where you want to stop compilation; everything
that follows will be ignored.  Make sure it's not inside some environment or
other group though!

Cheers,  Phil Ratcliffe

More information about the texhax mailing list