Modified -- June 30, 1987Added the "-n" no-follow option, to allow detex to ignore \input and \includecommands. Also changed the algorithm for locating the input files. It nowinterprets the "." more reasonably (i.e. it is not always the beginning of anextension).

Modified -- December 15, 1988Added handling of verbatim environment in LaTeX mode and added it to the listof modes ignored by default. Because of limitations with lex, it wasnecessary to shorten the names of some of the existing start states beforeadding a new one (ugh).

Modified -- January 3, 1988Added ignore of \$ inside $$ (math) pair.

Modified (Version 2.2) -- June 25, 1990Control sequences are no longer replaced by space, but just removed. Thismeans accents no longer cause output words to be broken. The "-c" option wasadded to show the arguments of \cite, \ref, and \pageref macros. This isusefule when using something like style on the output.

Modified (Version 2.3) -- September 7, 1990Fixed the handling of Ctl mode a little better and added an exceptionfor \index on suggestions from [email protected] (KC Border). Alsochanged the value for DEFAULTINPUTS to coincide with a local change.

Modified -- February 10, 1991Added -t option to force TeX mode even when seeing the "\begin{document}"string in the input.

Modified -- February 23, 1991Based on suggestions from [email protected] (Francois Pinard), Iadded support for the SysV string routines (-DUSG), added defines forthe flex lexical scanner (-DFLEX_SCANNER), changed NULL to '\0' whenusing it as a character (his sys defined NULL as (void *)0), changedthe Makefile to use ${CC} instead of cc, and added comments about thenew compile time options.

Modified (Version 2.4) -- September 2, 1992Corrected the way CITEBEGIN worked. Due to serious braindeath I hadthe condition wrong in the if test. It should be (fLatex && !fCite).This solves the problem a couple people reported with amstex style\ref entries.

Added a preprocessing sed(1) command to replace all the long, easy toread state names with short two letter state names (SA-S?) so that lexwon't overflow and I don't have to keep shortening the state namesevery time I add one. If a state is added, it must also be added tostates.sed (order is important) along with its unique S? replacement.