maybeload – Prevent reloading of files
Defines a command \thisfileis, which will become \endinput if it's called for a second or subsequent time with a particular file name.
Maybe you are interested in the following packages as well.
- perfectcut: Delimiters whose size adjusts to the nesting
- lintex: Tidy up after a TeX run
- texfot: Filter clutter from the output of a TeX run
- lettermac: Simple macros for writing letters (Plain TeX)