I stumbled upon the fancyvrb package for some project documentation
recently.One thing I really like about it is the ability to include and
transclude content from other files.
For example, the following LATEX includes a file, numbers the lines,
then permits iterating over the file in segments, which is excellent for
exegetical works. Of course, relying on line numbers is brittle if the
included file changes, but the package also affords the ability to match
It’s a little bit on the “clever” side, but as long as you don’t become
too enamored of yourself or the method, it’s quite decent and quick.