mm(1) mm(1)NAME mm - format documents that contain nroff and mm formatting requests mm macros SYNOPSIS mm [-Ttty-type] [-12] [-c] [-e] [-t] [-E] [file...] DESCRIPTION Use mm to format documents using nroff and the mm(5) text- formatting macro package. It has options to specify prepro- cessing by tbl(1) or eqn/neqn (see eqn(1) and neqn(1)) and postprocessing by various terminal-oriented 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 (for example, -rC3) are passed to nroff as appropri- ate. 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. -Ttty-type Specifies the type of output terminal; Here is a list of recognized values for tty-type. 450 prepares output for a DASI 450 (de- fault 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 termi- nal. 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. April, 1990 1
mm(1) mm(1)X prepares output for an EBCDIC line printer. 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 -c). 40/4 prepares output for a TELETYPE Model 40/4 (implies -c). also equivalent to -T40/4. 745 prepares output for a Texas Instru- ment 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. 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 pro- file(4) and environ(5)) as the value of tty-type, if $TERM is set; other- wise, mm uses 450 as the value of tty-type. If you specify several terminal types, the last one takes precedence. -12 Indicates that the document is to be produced in 12-pitch. May be used when $TERM is set to one of 300, 300s, 450, and 1620. (The pitch switch on the DASI 300 and 300s terminals must be manually set to 12 if this option is used.) 2 April, 1990
mm(1) mm(1)-c Causes mm to invoke col(1); note that col(1) 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; also causes neqn to read the /usr/pub/eqnchar file (see eqnchar(5)). -t Causes mm to invoke tbl(1). -E Invokes the -e option of nroff. As an example (assuming that the shell variable $TERM is set in the environment to 450), the two command lines below are equivalent: mm -t -rC3 -12 file tbl file | nroff -cm -T450-12 -h -rC3 mm reads the standard input when - is specified instead of any filenames. (Mentioning other files together with - leads to disaster.) This option allows mm to be used as a filter, for example: cat file | mm - HINTS 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 mm, if invoked with one or more of the -e, -t, and - options, together with the -olist option of nroff may cause a harmless ``broken pipe'' diagnostic if the last page of the do- cument is not specified in list. 3. 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 au- tomatically invokes col(1) (see -c option earlier). 4. If you lie to mm about the kind of terminal its output will be printed on, you will get (often subtle) gar- bage; 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. FILES /bin/mm /usr/pub/terminals April, 1990 3
mm(1) mm(1)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). ``mm Reference'' in A/UX Text Processing Tools. DIAGNOSTICS mm ``mm: no input file'' if none of the arguments is a readable file and mm is not used as a filter. 4 April, 1990