mm(1) mm(1)NAME mm - formats documents that contain nroff and mm macro formatting requests SYNOPSIS mm [-12] [-c] [-e] [-E] [-t] [-Ttty-type] [file]... ARGUMENTS -12 Indicates that the document is to be produced in 12- pitch. You can use this flag option when $TERM is set to one of 300, 300s, 450, and 1620. If you use this flag option, you must manually set the switch to 12 on the DASI 300 and 300s terminals. -c Causes mm to invoke col; note that col is invoked automatically by mm unless $TERM is one of 300, 300s, 450, 37, 4000a, 382, 4014, tek, 1620, or X. -e Causes mm to invoke neqn in a way that causes neqn to read the /usr/pub/eqnchar file. See eqnchar(5) for details. -E Invokes the -e option of nroff. file Specifies the file to be formatted. -t Causes mm to invoke tbl. -Ttty-type Specifies the type (tty-type) of output terminal. DESCRIPTION mm formats documents using nroff and the mm text-formatting macro package. The mm command has options to specify preprocessing by tbl, eqn, and neqn and postprocessing by various terminal-oriented output filters. Using the options you select, mm generates the proper pipelines and the required flag options and arguments for nroff and the mm macros. Any other options that appear on the mm command line are passed to nroff as appropriate. You may use such options in any order, but you must put them before the file argument. If you do not specify any arguments, mm prints a list of its options. The list of recognized values for the -Ttty-type option follow. Replace tty-type with one of these values: 37 Prepares output for a TELETYPE+ Model 37, which is the default for nroff. 40/4 Prepares output for a TELETYPE Model 40/4 using the -c January 1992 1
mm(1) mm(1)option. 43 Prepares output for a TELETYPE Model 43 using the -c option. 450 Prepares output for a DASI 450, which is the default for mm. This value for tty-type is 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. 382 Prepares output for a DTC-382. 745 Prepares output for a Texas Instrument 700 series terminal using the -c option. This value for tty-type is equivalent to -T735. 832 Prepares output for an Anderson Jacobson 832 printer using the -c option. 2631 Prepares output for an HP2631 printer using the -c option. 2631-c Acts the same as -T2631, but uses compressed mode. 2631-e Acts the same as -T2631, but uses expanded mode. 4000a Prepares output for a TRENDATA 4000A. 4014 Prepares output for a TEKTRONIX 4014. 8510 Prepares output for a C. Itoh printer using the -c option. hp Prepares output for a Hewlett-Packard HP262x or HP264x using the -c option. This value for tty-type is equivalent to -T2621, -T2640, and -T2645. 2 January 1992
mm(1) mm(1)lp Prepares output for a device with no reverse or partial line motions or other special features using the -c option. tn300 Prepares output for a Terminet 300 printer using the -c option. X Prepares output for an EBCDIC line printer. If you do not use the -Ttty-type option, mm uses the value of the shell variable $TERM from the environment (see profile(4) and environ(5)) as the value of tty-type, if $TERM is set; otherwise, mm uses 450 as the value of tty-type. If you specify several terminal types, the last one takes precedence. If you lie to mm about the kind of terminal its output is to be printed on, you get readily apparent or subtle garbage. If you redirect output to a file, use the -T37 option and then use the appropriate terminal filter when you actually print the file. When you specify a hyphen (-) on the command line instead of a filename, mm reads the standard input. Reading the standard input allows mm to be used as a filter, as shown here: cat file | mm - Specifying a filename in addition to a hyphen does not work. Options for nroff The mm command invokes nroff with the -h option, which causes nroff to assume that the terminal has tabs set every 8 character positions. You can use the -olist option of nroff to specify ranges of pages to be output. Note, however, that if you invoke mm with -olist and one or more of the -e, -t, and - options, a harmless broken pipe diagnostic may be appear if the last page of the document is not specified in list. If you use the -s option of nroff to stop between pages of output, use linefeed (rather than return or newline) to restart the output. The -s option of nroff does not work with the -c option of mm or if mm automatically invokes col. See the -c option described earlier. EXAMPLES Assuming that the shell variable $TERM is set to 450, the two command lines below are equivalent: January 1992 3
mm(1) mm(1)mm -t -rC3 -12 file tbl file | nroff -cm -T450-12 -h -rC3 STATUS MESSAGES AND VALUES The mm command displays mm: no input file if none of the arguments is a readable file and mm is not used as a filter. FILES /bin/mm Executable file /usr/pub/terminals File containing a list of terminals SEE ALSO checkmm(1), col(1), env(1), eqn(1), greek(1), mmt(1), nroff(1), tbl(1), troff(1) profile(4), mm(5), term(5) in A/UX Programmer's Reference ``mm Reference'' in A/UX Text Processing Tools 4 January 1992