detex(1) UNIX System V(2/27/86) detex(1)
NAME
detex - a filter to strip TeX and LaTeX's commands from a file.
SYNOPSIS
detex [-iw] file1 [file2 ......]
or detex [-iw] < file
DESCRIPTION
TeX and LaTeX have control characters that spell and other troff
-dependent processors (like diction) do not recognize. Detex works as a
preprocessor by filtering those control characters. The output can then
be piped to the next process. The output can be saved by redirecting the
standard output. Detex does not break the document into individual
words. It merely erases the control sequences.
In-line or displayed equation are not passed to the output. Also, the
character '%' is recognized as a comment indicator and the commented text
is not passed to the output.
Detex recognizes and opens files called by TeX's and LaTeX's \input and
\include commands. The -i flag makes detex ignore these commands. The
file name has to be correct relative to the current working directory.
If it cannot open the file nor file_name.tex, it will give a non-fatal
error message and proceed.
Warning is given if suspected unmatching is detected. Use the -w flag to
suppress these warnings.
DIAGNOSTICS
Nesting of \input and \include is allowed but the number of opened files
must not exceed the system's limit on the number of simultaneously opened
files (normally < 20).
Displayed material is regarded as mathematical equations and is ignored.
White spaces withing LaTeX's \begin{...} or \end{...} are not allowed
for.
SEE ALSO
texexpand(1), texeqn(1), texmatch(1).
AUTHOR
Kamal Al-Yahya, Stanford University
10/89 Page 1