


      MM(1)			    (DWB)			  MM(1)



      NAME
	   mm, osdd, checkmm - print/check documents formatted with the
	   MM macros

      SYNTAX
	   mm [	options	] [ files ]

	   osdd	[ options ] [ files ]

	   checkmm [ files ]

      DESCRIPTION
	   Mm can be used to type out documents	using nroff and	the MM
	   text-formatting macro package.  It has options to specify
	   preprocessing by tbl(1) and/or neqn (see eqn(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
	   selected.

	   Osdd	is equivalent to the command mm	-mosd.	For more
	   information about the OSDD adapter macro package, see
	   mosd(5).

	   Options for mm are given below.  Any	other arguments	or
	   flags (e.g.,	-rC3) are passed to nroff or to	MM, as
	   appropriate.	 Such options can occur	in any order, but they
	   must	appear before the files	arguments.  If no arguments are
	   given, mm prints a list of its options.

	   -Tterm   Specifies the type of output terminal; for a list
		    of recognized values for term, type	help term2.  If
		    this option	is not used, mm	will use the value of
		    the	shell variable $TERM from the environment (see
		    profile(4) and environ(5)) as the value of term, if
		    $TERM is set; otherwise, mm	will use 450 as	the
		    value of term.  If several terminal	types are
		    specified, 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.)
	   -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,
		    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(1).
	   -E	    Invokes the	-e option of nroff.
	   -y	    Causes mm to use the non-compacted version of the



      Page 1					      (73 A2 02MT REV1)






      MM(1)			    (DWB)			  MM(1)



		    macros (see	mm(5)).

	   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 ghh*
		tbl ghh* | nroff -cm -T450-12 -h -rC3

	   Mm reads the	standard input when - is specified instead of
	   any file names.  (Mentioning	other files together with -
	   leads to disaster.)	This option allows mm to be used as a
	   filter, e.g.:

		cat dws	| mm -

	   Checkmm is a	program	for checking the contents of the named
	   files for errors in the use of the Memorandum Macros,
	   missing or unbalanced neqn delimiters, and .EQ/.EN pairs.
	   Note: The user need not use the checkeq program (see
	   eqn(1)).  Appropriate messages are produced.	 The program
	   skips all directories, and if no file name is given,
	   standard input is read.

      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
		document is not	specified in list.
	   3.	If you use the -s option of nroff (to stop between
		pages of output), 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.

      SEE ALSO
	   col(1), env(1), eqn(1), greek(1), mmt(1), nroff(1), tbl(1),
	   profile(4), mm(5), mosd(5), term(5).
	   In ROS Reference Manual, env(1), profile(4),	mm(5), mosd(5),
	   term(5).
	   Documenter's	Workbench Macro	Package	Reference.




      Page 2					      (73 A2 02MT REV1)






      MM(1)			    (DWB)			  MM(1)



      DIAGNOSTICS
	   mm	    ``mm: no input file'' if none of the arguments is a
		    readable file and mm is not	used as	a filter.
	   checkmm  ``Cannot open filename'' if	file(s)	is unreadable.
		    The	remaining output of the	program	is diagnostic
		    of the source file.

















































      Page 3					      (73 A2 02MT REV1)



