nroff and troff are invoked from the command line as follows:
nroff [options] [files] troff [options] [files]
Many of the options are the same for both formatters.
Run chap1 through the tbl preprocessor, then format the result using the mm macros, with register N set to 5 (sets the page-numbering style), etc.:
tbl chap1 | troff -mm -rN5 | spooler &
Format chap2 using the ms macros; the first page is 7, but print only pages 8–10, 15, and 18 through the end of the file:
nroff -ms -n7 -o8-10,15,18- chap2 | col > chap2.txt &
Copyright © 2003 O'Reilly & Associates. All rights reserved.