man(1) Manual page archive

     DEROFF(1)                                               DEROFF(1)

          deroff - remove formatting requests

          deroff [ option ... ] file ...

          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), tbl table descriptions, pic constructs,
          and refer references.  Remaining text is written 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 execu-
          tion.  If no input file is given, deroff reads from the
          standard input file.

          The options are

          -w   Output a word list, one `word' (string of letters, dig-
               its, and apostrophes, beginning with a letter; apostro-
               phes are removed) per line, and all other characters
               ignored.  Otherwise, the output follows the original,
               with the deletions mentioned above.

          -i   Ignore `.so' and `.nx' requests.

          -ms, -mm
               Follow the conventions of ms(7) or mm macros.

          -ml  Follow the conventions of mm and suppress lists.

          troff(1), eqn(1), tbl(1), pic(1), refer(1)

          Deroff is not a complete troff interpreter; it can be con-
          fused.  In particular, troff macro definitions containing
          `\$' cause chaos when the popular `$$' delimiters for eqn
          are in effect.