m

mm(1)

mm(1)

NAME

mm, osdd - print documents formatted with the mm macros

SYNOPSIS

mm[ options ] [ ®les ]

osdd [ options ] [ ®les ]

DESCRIPTION

mmcan be used to format and print documents using nroff and the mm text-formatting macro package (see nroff(1)). It has options to specify preprocessing by tbl and/or neqn, (see tbl(1) and neqn(1)), and postprocessing by various terminal-oriented output ®lters. The proper pipelines and the required argu- ments and ¯ags for nroff and mm are generated, depending on the options selected.

osdd is equivalent to the command mm -mosd.

Options

mmrecognizes the following options and command-line arguments. Any other arguments or options (such as -rC3) are passed to nroff or to mm, as appropriate. Such options can occur in any order, but they must appear before the ®les arguments. If no arguments are given, mm prints a list of its options.

-TtermSpeci®es the type of output terminal; for a list of recognized values for term, type help term2. If this option is not used, mm uses the value of the shell variable $TERM from the environment (see pro®le(4) and environ(5)) as the value of term if $TERM is set; otherwise,

mmuses 450 as the value of term. If several terminal types are speci®ed, the last one is used.

-12Indicates that the document is to be produced in 12-pitch. Can 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.)

-cCauses 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, and X.

-eCauses mm to invoke neqn.

-tCauses mm to invoke tbl.

-EInvokes the -eoption of nroff.

DIAGNOSTICS

mmsends the message mm: no input file if none of the arguments is a readable ®le and mm is not used as a ®lter.

EXAMPLES

Assuming that the shell variable $TERM is set in the environment to 450, the two command lines below are equivalent:

mm -t -rC3 -12 ghh*

tbl ghh* nroff -cm -T450-12 -h -rC3

mmreads the standard input when - is speci®ed instead of any ®le names (mentioning other ®les along with - leads to disaster). This option allows mm to be used as a ®lter, as in this example:

cat dws mm -

Hints

mm invokes nroff with the -hoption. With this option, nroff assumes that the terminal has tabs set every 8 character positions.

Use the -olistoption 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 -olistoption of nroff may cause a harmless ``broken pipe'' diagnostic if the last page of the document is not speci®ed in list.

If you use the -soption of nroff (to stop between pages of output), use line-feed (rather than return or new-line) to restart the output. The -soption of nroff does not work with the -coption of mm, or if mm automatically invokes col (see -coption above and col(1)).

Section 1540

− 1 −

HP-UX Release 11i: December 2000