Research V7 development
[unix-history] / usr / man / man1 / deroff.1
CommitLineData
8df208ef
LC
1.TH DEROFF 1
2.SH NAME
3deroff \- remove nroff, troff, tbl and eqn constructs
4.SH SYNOPSIS
5.B deroff
6[
7.B \-w
8]
9file ...
10.SH DESCRIPTION
11.I Deroff
12reads each file in sequence
13and removes all
14.I nroff
15and
16.I troff
17command lines, backslash constructions, macro definitions,
18.I eqn
19constructs
20(between `.EQ' and `.EN' lines or between
21delimiters),
22and table descriptions
23and writes the remainder on the standard output.
24.I Deroff
25follows chains of included files
26(`.so' and `.nx' commands);
27if a file has already been included, a `.so' is ignored and a `.nx' terminates execution.
28If no input file is given,
29.I deroff
30reads from the standard input file.
31.PP
32If the
33.B \-w
34flag is given, the output is a word list, one `word' (string of letters, digits, and apostrophes,
35beginning with a letter; apostrophes are removed) per line, and all other characters ignored.
36Otherwise, the output follows the original, with the deletions mentioned above.
37.SH "SEE ALSO"
38troff(1), eqn(1), tbl(1)
39.SH BUGS
40.I Deroff
41is not a complete
42.I troff
43interpreter,
44so it can be confused by subtle constructs.
45Most errors result in too much rather than too little output.