mm(1M) mm(1M)
NAME
mm - print documents formatted with the mm macros
SYNOPSIS
mm [options] files
DESCRIPTION
Use mm to format documents using nroff and the mm(5) text formatting
macro package. mm has options to specify preprocessing by tbl(1M)
and/or neqn(1M), and postprocessing by various terminal mode output
filters. The proper pipelines and the required arguments and flags for
nroff and mm are generated, depending on the options that you select.
options for mm are given below. Any other arguments or flags (e.g.
-rC3) are passed to nroff as appropriate. You may use such options in
any order, but you must put them before the files arguments. If you do
not specify arguments, mm prints a list of its options.
-Tttytype specifies the type of output terminal. Here is a list of
recognized values for ttytype:
450 prepares output for a DASI 450 (default for mm;
also equivalent to -T1620.
450-12 prepares output for a DASI 450 in 12-pitch mode.
300 prepares output for a DASI 300 terminal.
300-12 prepares output for a DASI 300 in 12-pitch mode.
300s prepares output for a DASI 300S.
300s-12 prepares output for a DASI 300S in 12-pitch
mode.
4014 prepares output for a TEKTRONIX 4014.
37 prepares output for a TELETYPE+ Model 37
(default for nroff).
382 prepares output for a DTC-382.
4000a prepares output for a TRENDATA 4000A.
X prepares output for an EBCDIC line printer with
a TX print train.
hp prepares output for a Hewlett-Packard HP262x or
HP264x (implies -c); also equivalent to -T2621,
-T2640, and -T2645.
43 prepares output for a TELETYPE Model 43 (implies
Page 1 Reliant UNIX 5.44 Printed 11/98
mm(1M) mm(1M)
-c).
40/4 prepares output for a TELETYPE Model 40/4
(implies -c) also equivalent to -T40/4.
745 prepares output for a Texas Instrument 700
series terminal (implies -c); also equivalent to
-T735.
2631 prepares output for a HP2631 printer (implies
-c).
2631-e same as -T2631, but in expanded mode.
2631-c same as -T2631, but in compressed mode.
Page 2 Reliant UNIX 5.44 Printed 11/98
mm(1M) mm(1M)
832 prepares output for an Anderson Jacobson 832
printer (implies -c).
8510 prepares output for a C.ITOH printer (implies
-c).
tn300 prepares output for a Terminet 300 printer
(implies -c).
lp prepares output for a device with no reverse or
partial line motions or other special features
(implies -c). If you do not use this option, mm
uses the value of the shell variable $TERM from
the environment [see profile(4) and environ(5)]
as the value of ttytype if $TERM is set; other-
wise, mm uses 450 as the value of ttytype. If
you specify several terminal types, the last one
takes precedence.
Note: To generate output on a Xerox page printer, use the
mmx command.
-12 indicates that the document is to be produced in 12-pitch.
You may use this option when $TERM is set to one of 300,
300s, and 450. (You must manually set the pitch switch on
the DASI 300 and 300s terminals to 12 if you use this
option.)
-c causes mm to invoke col(1); note that col(1) is invoked
automatically by mm unless ttytype is one of 300, 300s,
450, 37, 4000a, 382, 4014, and X.
-e causes mm to invoke neqn; also causes neqn to read the
/usr/pub/eqnchar file [see eqnchar(5)].
-t causes mm to invoke tbl(1M).
-E invokes the -e option of nroff.
As an example, assume that the shell variable $TERM is set in the
environment to 450. The two command lines below are then equivalent:
mm -t -rC3 -12 file*
tbl file* | nroff -mm -T450-12 -h -rC3
mm reads the standard input when you specify - instead of any file
names. (Mentioning other files together with - leads to undesired
results.) This option allows you to use mm as a filter, for example:
cat file | mm -
Page 3 Reliant UNIX 5.44 Printed 11/98
mm(1M) mm(1M)
NOTES
1. mm invokes nroff with the -h flag. With this flag, nroff assumes
that the terminal has tabs set every 8 character positions.
2. Use the -olist option of nroff to specify ranges of pages to be
output. Note, however, that if you invoke mm with one or more of
the -e, -t, and - options, together with the -olist option of
nroff, you may cause a harmless "broken pipe" diagnostic if you do
not specify the last page of the document in list.
3. If you use the -s option of nroff (to stop between pages of out-
put), use line-feed (rather than return or new-line) to restart the
output. The -s option of nroff does not work with the -c option of
mm, or if mm automatically invokes col(1) (see -c option above).
4. If you lie to mm about the kind of terminal its output will be
printed on, you will get (often subtle) garbage; however, if you
are redirecting output into a file, use the -T37 option, and then
use the appropriate terminal filter when you actually print that
file.
DIAGNOSTICS
mm: no input file if none of the arguments is a readable file and
you do not use mm as a filter.
FILES
/usr/pub/terminals
list of supported terminals
SEE ALSO
mmt(1M), nroff(1M), profile(4), mm(5), nterm(5), environ(5).
Page 4 Reliant UNIX 5.44 Printed 11/98