2 .\" Copyright (c) 1997, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
8 mm \- text formatting (memorandum) macros
12 \fBnroff\fR \fB-mm\fR [\fIoptions\fR] \fIfilename\fR...
17 \fBtroff\fR \fB-mm\fR [\fIoptions\fR] \fIfilename\fR...
23 This package of \fBnroff\fR(1) and \fBtroff\fR(1) macro definitions provides a
24 formatting facility for various styles of articles, theses, and books. When
25 producing 2-column output on a terminal or lineprinter, or when reverse line
26 motions are needed, filter the output through \fBcol\fR(1). All external
27 \fB-mm\fR macros are defined below.
30 Note: this \fB-mm\fR macro package is an extended version written at Berkeley
31 and is a superset of the standard \fB-mm\fR macro packages as supplied by Bell
32 Labs. Some of the Bell Labs macros have been removed; for instance, it is
33 assumed that the user has little interest in producing headers stating that the
34 memo was generated at Whippany Labs.
37 Many \fBnroff\fR and \fBtroff\fR requests are unsafe in conjunction with this
38 package. However, the first four requests below may be used with impunity after
39 initialization, and the last two may be used even before initialization:
61 \fB\fB\&.sp\fR\fIn\fR \fR
64 insert n spacing lines
70 \fB\fB\&.ce\fR\fIn\fR \fR
79 \fB\fB\&.ls\fR\fIn\fR \fR
82 line spacing: \fIn\fR\fB=1\fR single, \fIn\fR\fB=2\fR double space
91 no alignment of right margin
96 Font and point size changes with \fB\ef\fR and \fB\es\fR are also allowed; for
97 example, \fB\efIword\efR\fR will italicize \fIword\fR. Output of the
98 \fBtbl\fR(1), \fBeqn\fR(1) and \fBrefer\fR(1) preprocessors for equations,
99 tables, and references is acceptable as input.
103 Here is a table of macros.
110 Macro Name Initial Value Break? Reset? Explanation
112 \fB\&.1C\fR on y,y one column format on a new page
114 \fB\&.2C\fR [ \fIl\fR ] - y,y two column format \fIl\fR=line length
116 \fB\&.AE\fR - y end abstract
118 \fB\&.AL\fR [ \fIt\fR ] [ \fIi\fR ] [ \fIs\fR ] \fIt\fR=\fB1\fR;\fIi\fR=\fB\&.Li\fR;\fIs\fR=\fB0\fR y T{
119 Start automatic list type \fIt\fR=[\fB1\fR,\fBA\fR,\fBa\fR,\fBI\fR,\fBi\fR] \fB1\fR=arabic numbers; \fBA\fR=uppercase letters \fBa\fR=lowercase letters; \fBI\fR=uppercase Roman numerals; \fBi\fR=lowercase Roman numerals indentation \fIi\fR; separation \fIs\fR
122 \fB\&.AS\fR \fIm\fR [ \fIn\fR ] \fIn\fR=\fB0\fR y begin abstract
124 \fB\&.AU\fR - y author's name
126 \fB\&.AV\fR \fIx\fR - y signature and date line of verifier \fIx\fR
128 \fB\&.B\fR \fIx\fR - n embolden \fIx\fR; if no \fIx\fR, switch to boldface
130 \fB\&.BE\fR - y end block text
132 \fB\&.BI\fR \fIx\fR \fIy\fR - n embolden \fIx\fR and underline \fIy\fR
134 \fB\&.BL\fR - y bullet list
136 \fB\&.BR\fR \fIx\fR \fIy\fR - n embolden \fIx\fR and use Roman font for \fIy\fR
138 \fB\&.BS\fR - n start block text
140 \fB\&.CN\fR - y same as \fB\&.DE\fR (\fBnroff\fR)
142 \fB\&.CS\fR - y cover sheet
144 \fB\&.CW\fR - n same as \fB\&.DS I\fR (\fBnroff\fR)
146 \fB\&.DE\fR - y end display
148 \fB\&.DF\fR [ \fIp\fR ] [ \fIf\fR ] [ \fIrp\fR ] \fIp\fR=\fBL\fR;\fIf\fR=\fBN\fR y T{
149 start floating display; position \fIp\fR=[\fBL\fR,\fBC\fR,\fBCB\fR] \fBL\fR=left; \fBI\fR=indent; \fBC\fR=center; \fBCB\fR=center block fill \fIf\fR=[\fBN\fR,\fBY\fR]; right position \fIrp\fR (fill only)
152 \fB\&.DL\fR [ \fIi\fR ] [ \fIs\fR ] - y start dash list
154 \fB\&.DS\fR [ \fIp\fR ] [ \fIf\fR ] [ \fIrp\fR ] \fIp\fR=\fBL\fR;\fIf\fR=\fBN\fR y T{
155 begin static display (see \fB\&.DF\fR for argument descriptions)
158 \fB\&.EC\fR \fIx\fR [ \fIn\fR ] \fIn\fR=\fB1\fR y equation title; equation \fIx\fR; number \fIn\fR
160 \fB\&.EF\fR \fIx\fR - n T{
161 even footer appears at the bottom of even-numbered pages; \fIx\fR="\fIl\fR\fB\&'\fR\fIc\fR\fB\&'\fR\fIr\fR" \fIl\fR=left; \fIc\fR=center; \fIr\fR=right
164 \fB\&.EH\fR \fIx\fR - n T{
165 even header appears at the top of even-numbered pages; \fIx\fR="\fIl\fR\fB\&'\fR\fIc\fR\fB\&'\fR\fIr\fR" \fIl\fR=left; \fIc\fR=center; \fIr\fR=right
168 \fB\&.EN\fR - y end displayed equation produced by \fBeqn\fR
170 \fB\&.EQ\fR - y break out equation produced by \fBeqn\fR
172 \fB\&.EX\fR \fIx\fR [ \fIn\fR ] \fIn\fR=\fB1\fR y exhibit title; exhibit \fIx\fR
176 \fB\&.FD\fR [ \fIf\fR ] [ \fIr\fR ] \fIf\fR=\fB10\fR;\fIr\fR=\fB1\fR n T{
177 set footnote style format \fIf\fR=[\fB0-11\fR]; renumber \fIr\fR=[\fB0\fR,\fB1\fR]
180 \fB\&.FE\fR - y end footnote
182 \fB\&.FG\fR \fIx\fR [ \fIn\fR ] \fIn\fR=\fB1\fR y figure title; figure \fIx\fR; number \fIn\fR
184 \fB\&.FS\fR - n start footnote
186 \fB\&.H\fR \fIl\fR [ \fIt\fR ] - y T{
187 produce numbered heading level \fIl\fR=[\fB1-7\fR]; title \fIt\fR
190 \fB\&.HU\fR \fIt\fR - y produce unnumbered heading; title \fIt\fR
192 \fB\&.I\fR \fIx\fR - n underline \fIx\fR
194 \fB\&.IB\fR \fIx\fR \fIy\fR - n underline \fIx\fR and embolden \fIy\fR
196 \fB\&.IR\fR \fIx\fR \fIy\fR - n underline \fIx\fR and use Roman font on \fIy\fR
198 \fB\&.LE\fR [ \fIs\fR ] \fIs\fR=\fB0\fR y end list; separation \fIs\fR
200 \fB\&.LI\fR [ \fIm\fR ] [ \fIp\fR ] - y start new list item; mark \fIm\fR
202 prefix \fIp\fR (mark only)
204 \fB\&.ML\fR \fIm\fR [ \fIi\fR ] [ \fIs\fR ] \fIs\fR=\fB0\fR y T{
205 start marked list; mark \fIm\fR indentation \fIi\fR; separation \fIs\fR=[\fB0\fR,\fB1\fR]
208 \fB\&.MT\fR \fIx\fR y memo title; title \fIx\fR
210 \fB\&.ND\fR \fIx\fR n T{
211 no date in page footer; \fIx\fR is date on cover
214 \fB\&.NE\fR - y end block text
216 \fB\&.NS\fR - y start block text
218 \fB\&.OF\fR \fIx\fR - n T{
219 odd footer appears at the bottom of odd-numbered pages; \fIx\fR="\fIl\fR\fB\&'\fR\fIc\fR\fB\&'\fR\fIr\fR" \fIl\fR=left; \fIc\fR=center; \fIr\fR=right
222 \fB\&.OF\fR \fIx\fR - n T{
223 odd header appears at the top of odd-numbered pages; \fIx\fR="\fIl\fR\fB\&'\fR\fIc\fR\fB\&'\fR\fIr\fR" \fIl\fR=left; \fIc\fR=center; \fIr\fR=right
226 \fB\&.OP\fR - y skip to the top of an odd-number page
228 \fB\&.P\fR [ \fIt\fR ] \fIt\fR=\fB0\fR y,y T{
229 begin paragraph; \fIt\fR=[\fB0\fR,\fB1\fR] \fB0\fR=justified; \fB1\fR=indented
232 \fB\&.PF\fR \fIx\fR - n T{
233 page footer appears at the bottom of every page; \fIx\fR="\fIl\fR\fB\&'\fR\fIc\fR\fB\&'\fR\fIr\fR" \fIl\fR=left; \fIc\fR=center; \fIr\fR=right
236 \fB\&.PH\fR \fIx\fR - n T{
237 page header appears at the top of every page; \fIx\fR="\fIl\fR\fB\&'\fR\fIc\fR\fB\&'\fR\fIr\fR" \fIl\fR=left; \fIc\fR=center; \fIr\fR=right
240 \fB\&.R\fR on n return to Roman font
242 \fB\&.RB\fR \fIx\fR \fIy\fR - n use Roman on \fIx\fR and embolden \fIy\fR
244 \fB\&.RI\fR \fIx\fR \fIy\fR - n use Roman on \fIx\fR and underline \fIy\fR
246 \fB\&.RP\fR \fIx\fR - y,y T{
247 released paper format ? \fIx\fR=no stops title on first
250 \fB\&.RS\fR 5n y,y T{
251 right shift: start level of relative indentation
254 \fB\&.S\fR \fIm\fR \fIn\fR - n T{
255 set character point size & vertical space character point size \fIm\fR; vertical space \fIn\fR
258 \fB\&.SA\fR \fIx\fR \fIx\fR=\fB1\fR n justification; \fIx\fR=[\fB0\fR,\fB1\fR]
260 \fB\&.SK\fR \fIx\fR - y skip \fIx\fR pages
262 \fB\&.SM\fR - n smaller; decrease point size by 2
264 \fB\&.SP\fR [ \fIx\fR ] - y leave \fIx\fR blank lines
266 \fB\&.TB\fR \fIx\fR [ \fIn\fR ] \fIn\fR=\fB1\fR y table title; table \fIx\fR; number \fIn\fR
269 print table of contents (put at end of input file)
273 \fB\&.TH\fR - Y "multi-page end, header"
275 \fB\&.TL\fR - n title in boldface and two points larger
277 \fB\&.TM\fR - n UC Berkeley thesis mode
279 \fB\&.TP\fR \fIi\fR y y T{
280 \fIi\fR=p.i. Begin indented paragraph, with the tag given on the next text line. Set prevailing indent to \fIi\fR.
283 \fB\&.TE\fR - y end of table processed by tbl
284 \fB\&.TS\fR \fIx\fR - y,y T{
285 begin table; if \fIx\fR=\fBH\fR table has multi-page header
288 \fB\&.TY\fR - y display centered title \fBCONTENTS\fR
290 \fB\&.VL\fR \fIi\fR [ \fIm\fR ] [ \fIs\fR ] \fIm\fR=\fB0\fR;\fIs\fR=\fB0\fR y T{
291 start variable-item list; indentation \fIi\fR mark-indentation \fIm\fR; separation \fIs\fR
298 Formatting distances can be controlled in \fB-mm\fR by means of built-in number
299 registers. For example, this sets the line length to 6.5 inches:
309 Here is a table of number registers and their default values:
316 Name Register Controls Takes Effect Default
318 \fBCl\fR contents level table of contents 2
320 \fBDe\fR display eject display 0
322 \fBDf\fR display floating display 5
324 \fBDs\fR display spacing display 1v
326 \fBHb\fR heading break heading 2
328 \fBHc\fR heading centering heading 0
330 \fBHi\fR heading indent heading 1
332 \fBHi\fR heading spacing heading 1
334 \fBHu\fR heading unnumbered heading 2
336 \fBLi\fR list indentation list \fB6 (\fR\fBnroff\fR\fB) 5 (\fR\fBtroff\fR\fB)\fR
338 \fBLs\fR list spacing list 6
340 \fBPi\fR paragraph indent paragraph 5
342 \fBPt\fR paragraph type paragraph 1
344 \fBSi\fR static indent display \fB5 (\fR\fBnroff\fR\fB) 3 (\fR\fBtroff\fR\fB)\fR
349 When resetting these values, make sure to specify the appropriate units.
350 Setting the line length to 7, for example, will result in output with one
351 character per line. Setting \fBPi\fR to 0 suppresses paragraph indentation
354 Here is a list of string registers available in \fB-mm\fR; they may be used
355 anywhere in the text:
362 Name String's Function
364 \fB\e*Q\fR quote (\fB"\fR in \fBnroff,\fR\| \fB``\fR in \fBtroff\fR )
366 \fB\e*U\fR unquote (\fB"\fR in \fBnroff,\fR\| \fB\&''\fR in \fBtroff\fR )
368 \fB\e*-\fR dash (\fB--\fR in \fBnroff,\fR \(em in \fBtroff\fR )
370 \fB\e*(MO\fR month (month of the year)
372 \fB\e*(DY\fR day (current date)
374 \fB\e**\fR automatically numbered footnote
376 \fB\e*'\fR acute accent (before letter)
378 \fB\e*`\fR grave accent (before letter)
380 \fB\e*^\fR circumflex (before letter)
382 \fB\e*,\fR cedilla (before letter)
384 \fB\e*:\fR umlaut (before letter)
386 \fB\e*~\fR tilde (before letter)
388 \fB\e(BU\fR bullet item
390 \fB\e(DT\fR date (\fImonth day\fR, \fIyr\fR)
394 \fB\e(Lf\fR \fBLIST OF FIGURES\fR title
396 \fB\e(Lt\fR \fBLIST OF TABLES\fR title
398 \fB\e(Lx\fR \fBLIST OF EXHIBITS\fR title
400 \fB\e(Le\fR \fBLIST OF EQUATIONS\fR title
402 \fB\e(Rp\fR \fBREFERENCES\fR title
404 \fB\e(Tm\fR trademark character (TM)
409 When using the extended accent mark definitions available with \fB\&.AM\fR,
410 these strings should come after, rather than before, the letter to be accented.
415 \fB\fB/usr/share/lib/tmac/m\fR\fR
425 \fB\fB/usr/share/lib/tmac/mm.[nt]\fR\fR
429 \fBnroff\fR and \fBtroff\fR definitions of \fBmm\fR.
435 \fBcol\fR(1), \fBeqn\fR(1), \fBnroff\fR(1), \fBrefer\fR(1), \fBtbl\fR(1),
436 \fBtroff\fR(1), \fBattributes\fR(5)
440 Floating keeps and regular keeps are diverted to the same space, so they cannot
441 be mixed together with predictable results.