strmode doesn't allocate space anymore, just use the stack
[unix-history] / usr / src / usr.bin / deroff / deroff.1
CommitLineData
b0889f9e 1.\" @(#)deroff.1 6.1 (Berkeley) %G%
3c21473c 2.\"
b0889f9e 3.TH DEROFF 1 ""
3c21473c
KM
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
351cca63 15reads each file in sequence and removes all
3c21473c
KM
16.I nroff
17and
18.I troff
19command lines, backslash constructions, macro definitions,
20.I eqn
351cca63
KM
21constructs (between `.EQ' and `.EN' lines or between delimiters),
22and table descriptions and writes the remainder on the standard output.
3c21473c 23.I Deroff
351cca63
KM
24follows chains of included files (`.so' and `.nx' commands);
25if a file has already been included, a `.so' is ignored and a `.nx'
26terminates execution. If no input file is given,
3c21473c
KM
27.I deroff
28reads from the standard input.
29.PP
30If the
31.B \-w
351cca63
KM
32flag is given, the output is a word list, one `word' (string of letters,
33digits, and apostrophes, beginning with a letter; apostrophes are removed)
34per line, and all other characters ignored.
3c21473c
KM
35Otherwise, the output follows the original, with the deletions mentioned above.
36.SH "SEE ALSO"
37troff(1), eqn(1), tbl(1)
38.SH BUGS
39.I Deroff
40is not a complete
41.I troff
351cca63 42interpreter, so it can be confused by subtle constructs.
3c21473c 43Most errors result in too much rather than too little output.