1deroff(1)                        User Commands                       deroff(1)
2
3
4

NAME

6       deroff - remove nroff/troff, tbl, and eqn constructs
7

SYNOPSIS

9       deroff [-m [m | s | l]] [-w] [-i] [filename...]
10
11

DESCRIPTION

13       deroff reads each of the filenames in sequence and removes all troff(1)
14       requests, macro calls, backslash constructs, eqn(1) constructs (between
15       .EQ  and  .EN  lines, and between delimiters), and tbl(1) descriptions,
16       perhaps replacing them with white space (blanks and blank  lines),  and
17       writes the remainder of the file on the standard output. deroff follows
18       chains of included files (.so and .nx troff commands); if  a  file  has
19       already been included, a .so naming that file is ignored and a .nx nam‐
20       ing that file terminates execution. If no input file is  given,  deroff
21       reads the standard input.
22

OPTIONS

24       -m    The  -m  option  may be followed by an m, s, or l. The -mm option
25             causes the macros to be interpreted so that only running text  is
26             output  (that  is,  no  text  from  macro lines.)  The -ml option
27             forces the -mm option and also causes deletion of  lists  associ‐
28             ated with the mm macros.
29
30
31       -w    If  the  -w  option  is  given,  the  output  is a word list, one
32             ``word'' per line, with all other characters deleted.  Otherwise,
33             the  output  follows  the  original, with the deletions mentioned
34             above. In text, a ``word'' is any string that contains  at  least
35             two  letters  and is composed of letters, digits, ampersands (&),
36             and apostrophes ('); in a macro call, however, a  ``word''  is  a
37             string that begins with at least two letters and contains a total
38             of at least three letters. Delimiters are  any  characters  other
39             than letters, digits, apostrophes, and ampersands. Trailing apos‐
40             trophes and ampersands are removed from ``words.''
41
42
43       -i    The  -i option causes  deroff to ignore  .so and  .nx commands.
44
45

ATTRIBUTES

47       See attributes(5) for descriptions of the following attributes:
48
49
50
51
52       ┌─────────────────────────────┬─────────────────────────────┐
53       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
54       ├─────────────────────────────┼─────────────────────────────┤
55       │Availability                 │SUNWdoc                      │
56       └─────────────────────────────┴─────────────────────────────┘
57

SEE ALSO

59       eqn(1), nroff(1), tbl(1), troff(1), attributes(5)
60

NOTES

62       deroff is not a complete troff interpreter, so it can  be  confused  by
63       subtle  constructs. Most such errors result in too much rather than too
64       little output.
65
66
67       The -ml option does not handle nested lists correctly.
68
69
70
71SunOS 5.11                        14 Sep 1992                        deroff(1)
Impressum