troff/nroff, command line options
Unlike the case for Unix programs that use getopt(), all
troff options that take arguments must be written as one word.
That is, ``-n 1'' and ``-n1'' are different, and only
``-n1'' works as intended.
pages
- -o -a,b-c,d,e-
-
Print only pages
- -a
- from the beginning to page a,
- b-c
- from b to c,
- d
- d,
- e-
- and from e to the end of the document.
- -n N
-
Number the first generated page N.
- -a N
-
Wait for a newline every N pages.
input/output
- -m name
- Read /usr/lib/tmac/tmac.name before the input.
- -i
- Read standard input after the input files are exhausted
(a trailing - should have the same effect.)
- -t
- (troff) Write to standard output, not
to the phototypesetter.
- -a
- (troff) Print an ascii-representation of
the output to stdout.
- -z
- Don't produce formatted output, only error messages.
arcana
- -raN
- Set register a (one character) to value N.
- -q
- Invoke the simultaneous input-output mode
of the .rd request. (Huh?)
- -h
- (nroff) Use tabs for output spacing. Assume
8 character tabs.
- -Tname
- (nroff) Output
terminal type is name.
- -e
- (nroff) Produce equally-spaced words in adjusted
lines, using full terminal resolution. I can't see this working.
- -p N
- (troff) Print all characters in font
size N, but space them as usual.