1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
|
.TH MM 1
.SH NAME
mm \- print out documents formatted with the \s-1MM\s+1 macros
.SH SYNOPSIS
.B mm
[ options ] [ files ]
.SH DESCRIPTION
.I Mm\^
can be used to type out documents using
.IR nroff (1)
and the
.SM MM
text-formatting macro package.
It has options to specify
preprocessing by
.IR tbl (1)
and/or
.IR neqn (1)
and postprocessing by various terminal-oriented output filters.
The proper pipelines and the
required arguments and flags for
.IR nroff (1)
and
.SM MM
are generated, depending on the options selected.
.PP
.I Options\^
for
.I mm\^
are given below.
Any other arguments or flags (e.g.,
.BR \-rC3 )
are passed
to
.IR nroff (1)
or to
.SM MM\*S,
as appropriate.
Such options can occur in any order,
but they must appear before the
.I files\^
arguments.
If no arguments are given,
.I mm\^
prints a list of its options.
.PP
.PD 0
.TP 9
.BI \-T term
Specifies the type of output terminal;
for a list of recognized values for
.IR term ,
type
.BR "help term2" .
If this option is
.I not\^
used,
.I mm\^
will use the value of the shell variable
.SM
.B $TERM
from the environment (see
.IR profile (5)
and
.IR environ (7))
as the value of
.IR term ,
if
.SM
.B $TERM
is set;
otherwise,
.I mm\^
will use
.B 450
as the value of
.IR term .
If several terminal types are specified,
the last one takes precedence.
.TP
.B \-12
Indicates that the document is to be produced in 12-pitch.
May be used when
.SM
.B $TERM
is set to one of
.BR 300 ,
.BR 300s ,
.BR 450 ,
and
.BR 1620 .
(The pitch switch on the
.SM DASI
300 and 300s terminals must be manually
set to
.B 12
if this option is used.)
.TP
.B \-c
Causes
.I mm\^
to invoke
.IR col (1);
note that
.IR col (1)
is invoked automatically by
.I mm\^
unless
.I term\^
is one of
.BR 300 ,
.BR 300s ,
.BR 450 ,
.BR 37 ,
.BR 4000A ,
.BR 382 ,
.BR 4014 ,
.BR tek ,
.BR 1620 ,
and
.BR X .
.TP
.B \-e
Causes
.I mm\^
to invoke
.IR neqn (1);
also causes
.I neqn
to read the
.B /usr/pub/eqnchar
file (see
.IR eqnchar (7)).
.TP
.B \-t
Causes
.I mm\^
to invoke
.IR tbl (1).
.TP
.B \-E
Invokes the
.B \-e
option of
.IR nroff (1).
.TP
.B \-y
Causes
.I mm\^
to use the non-compacted version of the macros (see
.IR mm (7)).
.PD
.PP
As an example (assuming that the shell variable
.SM
.B $TERM
is set in the environment to
.BR 450 ),
the two command lines below are equivalent:
.RS
.PP
mm \|\-t \|\-rC3 \|\-12 \|ghh\(**
.br
tbl \|ghh\(** \|\(bv \|nroff \|\-cm \|\-T450\-12 \|\-h \|\-rC3
.RE
.PP
.I Mm\^
reads the standard input
when
.B \-
is specified
instead of any file names.
(Mentioning other files together with
.B \-
leads to disaster.)\
This option allows
.I mm\^
to be used as a filter, e.g.:
.RS
.PP
cat \|dws \|\(bv \|mm \|\-
.RE
.SH HINTS
.PD 0
.TP
1.
.I Mm\^
invokes
.IR nroff (1)
with the
.B \-h
flag.
With this flag,
.IR nroff (1)
assumes that the terminal has tabs set
every 8 character positions.
.TP
2.
Use the
.BI \-o list\^
option of
.IR nroff (1)
to specify ranges of pages to be output.
Note, however, that
.IR mm ,
if invoked with
one or more of the
.BR \-e ,
.BR \-t ,
and
.B \-
options,
.I together\^
with the
.BI \-o list\^
option of
.IR nroff (1)
may cause a harmless ``broken pipe'' diagnostic
if the last page of the document is not specified in
.IR list .
.TP
3.
If you use the
.B \-s
option of
.IR nroff (1)
(to stop between pages of output),
use line-feed (rather than return or new-line)
to restart the output.
The
.B \-s
option of
.IR nroff (1)
does not work with the
.B \-c
option of
.IR mm ,
or if
.I mm\^
automatically invokes
.IR col (1)
(see
.B \-c
option above).
.TP
4.
If you lie to
.I mm\^
about the kind of terminal its output will be printed on,
you'll get (often subtle) garbage;
however, if you are redirecting output into a file, use the
.B \-T37
option, and then use the appropriate terminal filter when you actually print that file.
.PD
.br
.ne 4
.SH SEE ALSO
.tr ~
.PD 0
col(1), env(1), eqn(1), greek(1), mmt(1), nroff(1), tbl(1),
profile(5), mm(7), term(7).
.PP
.I "\s-1MM\s+1\-Memorandum Macros\^"
by D.~W. Smith and J.~R. Mashey.
.PP
.I "Typing Documents with \s-1MM\s+1\|"
by D.~W. Smith and E.~M. Piskorik.
.PD
.SH DIAGNOSTICS
.tr ~~
``mm: \|no input file''\| if
none of the arguments is a readable file and
.I mm\^
is not used as a filter.
|