2012/8/16 Don Simons <dsim...@roadrunner.com>:
> Dirk that's great detective work. I understand binary searching, but not how
> or where to use \endinput. Seems like if you really ended input part way
> through, the printed page couldn't come out looking the same.
>
\endinput means "skip the rest of this file".  Only "this file".
It's extremely useful.

1. Document macros in plain text or Markdown after \endinput
    instead of cluttering up the TeX source with comment lines.
2. Move stuff to after \endinput instead of just deleting it — you
    may want to put it back later.
3. Temporarily "comment out" the rest of the file for debugging.
4. Avoid reading in a macro file twice (see the first non-comment
    line in mtx.tex).

Dirk

-------------------------------
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music

Reply via email to