" appears in the text,
detex assumes it is dealing with LaTeX source and detex recognizes
additional constructs used in LaTeX. These include the nd
commands. The -l option can be used to force LaTeX mode
and the -t option can be used to force TeX mode regardless of input
content.
Text in various environment modes of LaTeX is ignored. The
default modes are array, eqnarray, equation, figure, mathmatica,
picture, table and verbatim. The -e option can be used to specify a
comma separated environment-list of environments to ignore. The list
replaces the defaults so specifying an empty list effec tively causes
no environments to be ignored.
The -c option can be used in LaTeX mode to have detex echo the
arguments to [#!cite!#], #_#> and #m#>acros. This can be useful when
sending the output to a style checker.
Detex assumes the standard character classes are being used
for TeX. Detex allows white space between control sequences and magic
characters like `' when recognizing things like LaTeX environments.
If the -w flag is given, the output is a word list, one `word'
(string of two or more letters and apostrophes beginning with a
letter) per line, and all other characters ignored. Without -w the
output follows the original, with the deletions mentioned above.
Newline characters are preserved where possible so that the lines of
output match the input as closely as possible.
The TEXINPUTS environment variable is used to find =and
iles.
Detex now handles the basic TeX ligatures as a special case,
replacing the ligatures with acceptable charater substitutes. This
eliminates spelling errors introduced by merely removing them. The
ligatures are å, æ, œ, ß, ø, ł(and their upper-case
equivalents). The special "dotless" characters ıand jare also
replaced with i and j respectively.
Note that previous versions of detex would replace control
sequences with a space character to prevent words from running
together. However, this caused accents in the middle of words to break
words, generating "spelling errors" that were not desirable.
Therefore, the new version merely removes these accents.
The old functionality can be essentially duplicated by using
the -s option.
SEE ALSO
tex(1L)
DIAGNOSTICS
Nesting of =is allowed but the number of opened files
must not exceed the system's limit on the number of simultaneously
opened files. Detex ignores unrecognized option characters after
printing a warning message.
AUTHOR
Daniel Trinkle, Computer Science Department, Purdue University
BUGS
Detex is not a complete TeX interpreter, so it can be
confused by some constructs. Most errors result in too much rather
than too little output.
Running LaTeX source without a "" through
detex may produce errors.
Suggestions for improvements are encouraged.
Purdue University 21 September 1992
;''
;''