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