DEROFF(1-BSD) RISC/os Reference Manual DEROFF(1-BSD)
NAME
deroff - remove nroff, troff, tbl and eqn constructs
SYNOPSIS
deroff [ -w ] [ -k ] [ -m (a e l m s) ] [ file ... ]
DESCRIPTION
deroff reads each file in sequence and removes all nroff and
troff command lines, backslash constructions, macro defini-
tions, eqn constructs (between `.EQ' and `.EN' lines or
between delimiters), and table descriptions, and writes the
remainder on the standard output. deroff follows chains of
included files (`.so' and `.nx' commands); if a file has
already been included, a `.so' is ignored and a `.nx' ter-
minates execution. If no input file is given, deroff reads
from the standard input file.
If the -w flag is given, the output is a word list, one
`word' (string of letters, digits, and apostrophes, begin-
ning with a letter; apostrophes are removed) per line, and
all other characters ignored. Otherwise, the output follows
the original, with the deletions mentioned above.
The -m option may be followed by an m, s, a, e, or l. The
-mm option causes the mm macros to be interpreted so that
only running text is output (i.e., no text from macro
lines.) Similarly, the -ms option causes deletion of the ms
macro commands; the -ma option causes deletion of the man
macro commands; and the -me option causes deletion of the me
macro commands. The -ml option forces the -mm option and
also causes deletion of lists associated with the mm macros.
The -k option keeps blocks of text after a `.nf' (no fill)
command; without this flag, the -m option removes these
blocks of text.
SEE ALSO
eqn(1), nroff(1), tbl(1), troff(1).
BUGS
deroff is not a complete troff interpreter, so it can be
confused by subtle constructs. Most errors result in too
much rather than too little output.
Printed 11/19/92 Page 1