home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 154_01 / roff.txt < prev    next >
Text File  |  1979-12-31  |  2KB  |  52 lines

  1. .cm text format program:  documentation
  2. .cm Source:  roff.txt
  3. .he    ROFF documentation
  4. .fo    Page #
  5. .in 5
  6. .rm 75
  7.  
  8.  
  9. This is a transliteration of the text formatting program on Kernighan &
  10. Plauger's SOFTWARE TOOLS, with some modifications to take advantage of
  11. the power of C.  If the summary of dot commands below isn't enough for
  12. you, see the book.
  13.  
  14. Most commands can accept arguments.
  15. If the argument is preceded by a plus or minus sign
  16. then the current value of the indicated attribute is changed by that
  17. amount.
  18. For example, the command .ls 2
  19. sets the line spacing to 2,
  20. while the command .ls +2 increases the currently-set line spacing
  21. by 2 lines.
  22.  
  23.  
  24. .nf
  25.  command     break?     default     action
  26.  -------     -----      -------     ------
  27.  
  28.  .bp         yes        +1          begin next page
  29.  .br         yes                    cause break
  30.  .ce n       yes        1           center next n lines
  31.  .fi         yes                    start fill mode
  32.  .fo         no         empty       footer title
  33.  .he         no         empty       header title
  34.  .in n       no         0           indent n spaces
  35.  .ls n       no         1           set line spacing = n
  36.  .nf         yes                    stop fill mode
  37.  .pl n       no         66          set page length = n
  38.  .rm n       no         60          set right margin
  39.  .sp n       yes        1           space down n lines
  40.  .ti n       yes        0           temp indent n spaces
  41.  .ul n       no         1           underline next n lines
  42. .fi
  43.  
  44.  
  45. A break stops the filling of the current line.
  46. Breaks are needed between paragraphs. Lines containing nothing but blanks
  47. always cause one blank line to be output. A line which starts with a tab
  48. or blank causes the temporary indent setting to be set
  49. to the number of beginning spaces on that line.
  50. Note that this feature overrides any .ti setting
  51. in effect.
  52.