xref: /csrg-svn/usr.bin/deroff/deroff.1 (revision 43683)
1*43683Scael.\" Copyright (c) 1990 The Regents of the University of California.
2*43683Scael.\" All rights reserved.
319402Smckusick.\"
4*43683Scael.\" %sccs.include.redist.man%
5*43683Scael.\"
6*43683Scael.\"     @(#)deroff.1	6.2 (Berkeley) 06/24/90
7*43683Scael.\"
8*43683Scael.Dd
9*43683Scael.Dt DEROFF 1
10*43683Scael.Os ATT 7th
11*43683Scael.Sh NAME
12*43683Scael.Nm deroff
13*43683Scael.Nd remove nroff, troff, tbl and eqn constructs
14*43683Scael.Sh SYNOPSIS
15*43683Scael.Nm deroff
16*43683Scael.Op Fl w
17*43683Scael.Ar file \&...
18*43683Scael.Sh DESCRIPTION
19*43683Scael.Nm Deroff
2019403Smckusickreads each file in sequence and removes all
21*43683Scael.Xr nroff 1
2219402Smckusickand
23*43683Scael.Xr troff 1
2419402Smckusickcommand lines, backslash constructions, macro definitions,
25*43683Scael.Xr eqn 1
2619403Smckusickconstructs (between `.EQ' and `.EN' lines or between delimiters),
2719403Smckusickand table descriptions and writes the remainder on the standard output.
28*43683Scael.Nm Deroff
2919403Smckusickfollows chains of included files (`.so' and `.nx' commands);
3019403Smckusickif a file has already been included, a `.so' is ignored and a `.nx'
3119403Smckusickterminates execution.  If no input file is given,
32*43683Scael.Nm deroff
3319402Smckusickreads from the standard input.
34*43683Scael.Pp
3519402SmckusickIf the
36*43683Scael.Fl w
3719403Smckusickflag is given, the output is a word list, one `word' (string of letters,
3819403Smckusickdigits, and apostrophes, beginning with a letter; apostrophes are removed)
3919403Smckusickper line, and all other characters ignored.
4019402SmckusickOtherwise, the output follows the original, with the deletions mentioned above.
41*43683Scael.Sh SEE ALSO
42*43683Scael.Xr troff 1 ,
43*43683Scael.Xr eqn 1 ,
44*43683Scael.Xr tbl 1
45*43683Scael.Sh HISTORY
46*43683Scael.Nm Deroff
47*43683Scaelappeared in Version 7 AT&T Unix.
48*43683Scael.Sh BUGS
49*43683Scael.Nm Deroff
5019402Smckusickis not a complete
51*43683Scael.Xr troff 1
5219403Smckusickinterpreter, so it can be confused by subtle constructs.
5319402SmckusickMost errors result in too much rather than too little output.
54