Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ deroff(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

eqn, neqn, checkeq

nroff, troff

tbl

deroff

PURPOSE

     Removes nroff, troff, troff, tbl, and eqn constructs from
     files.

SYNOPSIS
     deroff [ -mm ] [ -ml ] [ -w ] [ -i ] [ -l ] [ files ]


DESCRIPTION

     The  deroff  command  reads   files  (standard  input  by
     default), removes all troff  requests, macro calls, back-
     slash  constructs, eqn  constructs (between  .EQ and  .EN
     lines  and  between  delimiters),  and  tbl  descriptions
     (perhaps replacing them with  blanks or blank lines), and
     writes the remainder of the file to standard output.

     The deroff  command normally  follows chains  of included
     files  (.so  and .nx  troff  commands).   If a  file  has
     already been included,  a .so naming it is  ignored and a
     .nx naming that file ends execution.

     Notes:

     1.  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.

     2.  The -ml flag does not handle nested lists correctly.

FLAGS

     -i      Suppresses the processing of included files.
     -l      Suppresses the processing of included files whose
             names begin with /usr/lib, such as macro files in
             /usr/lib/tmac.
     -mm     Ignores MM  macros in  text so that  only running
             text  is  output (no  text  from  macro lines  is
             included).
     -ml     Ignores MM macros in  text (-mm) and also deletes
             MM list structures.
     -ms     Ignores MS macros in text.
     -w      Makes the output  a word list, with  one word per
             line and all other  characters deleted.  In text,
             a word is  any string that contains  at least two
             letters  and  is  composed  of  letters,  digits,
             ampersands  ("&"),  and  apostrophes (').   In  a
             macro call, a  word is a string  that begins with
             at least two  letters and contains a  total of at
             least three letters.   Delimiters are any charac-
             ters other than letters, digits, apostrophes, and

             ampersands.  Trailing  apostrophes and ampersands
             are removed from words.

RELATED INFORMATION

     The following  commands:  "eqn, neqn,  checkeq,"  "nroff,
     troff," "tbl," and  "troff."

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026