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: Nested delimiters that consistently grow regardless of the contents
- mpostinl: Embed METAPOST figures within LaTeX documents
- lintex: Tidy up after a TeX run
- lettermac: Simple macros for writing letters (Plain TeX)