deroff(1-ucb) (BSD Compatibility Package) deroff(1-ucb)
NAME
deroff - remove nroff, troff, tbl and eqn constructs
SYNOPSIS
/usr/ucb/deroff [-w] filename ...
DESCRIPTION
The deroff command reads each file in sequence and removes all nroff
and troff command lines, backslash constructions, macro definitions,
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 terminates
execution. If no input file is given, deroff reads from the standard
input file.
OPTIONS
-k if deroff is called with the -ms or -me option (see below):
causes keep blocks associated with the ms macros [.KS/.KF/.KE and
.DS/.DE] and keep blocks and lists associated with the me macros
[.(z/.)z and
-m[a|e|m|s|l]
the standard macro packages man, me, mm, and ms are included.
-ma causes the man macros to be interpreted such that only run-
ning text is output [i.e. no text (parameter) from macro lines].
-me, -mm, and -ms functions analogously.
-ml causes keep blocks and lists associated with the mm/ms macros
to be deleted.
-w Generate a word list, one word per line. A "word" is a string of
letters, digits, and apostrophes, beginning with a letter; apos-
trophes are removed. All other characters are ignored.
NOTES
deroff is not a complete troff interpreter, so it can be confused by
subtle constructs. Most errors result in too much rather than too lit-
tle output.
deroff does not work well with files that use .so to source in the
standard macro package files.
SEE ALSO
eqn(1M), mm(1M), mmt(1M), neqn(1M), nroff(1M), tbl(1M), troff(1M),
man(5), me(5), mm(5), ms(5), mv(5).
Page 1 Reliant UNIX 5.44 Printed 11/98