This chapter presents the following topics:
Alphabetical summary of ms macros
Number registers for page layout
Reserved macro and string names
Reserved number register names
Return to single-column format after .2C or .MC. The .1C macro causes a page break.
Start two-column format. Return to single-column with .1C.
Begin abstract in cover sheet. End abstract with .AE.
End abstract begun with .AB.
Print name, address, etc. of author's institution. Generally follows .AU in a cover sheet sequence; may be repeated up to nine times for multiple author/institution pairs.
Print author's name. Generally follows .TL and precedes .AI in a cover sheet sequence; may be repeated up to nine times for multiple authors.
.B [text] [text2]
Print text in boldface. If text2 is provided, concatenate it with text, but in the previous font. If no arguments are supplied, equivalent to .ft 3 or .ft B.
Enclose following text in a box. End box with .B2.
End boxed text (started with .B1).
Start block display. Text is output exactly as it appears in the source file, centered around the longest line. Same as .DS B. End with .DE.
Surround word in a box. Usually doesn't work for more than one word at a time, due to problems with filling. To box more than one word, separate each with an unpaddable space (\space).
Start centered display. Each line in the display is individually centered. Same as .DS C. End with .DE.
Print today's date as the center footer of each page.
End displayed text started with .DS.
Start displayed text. End with .DE.
End equation display started with .EQ.
Start equation display to be processed by eqn. End with .EN. See Chapter 17, for more information on eqn.
Start footnote. Text of footnote follows on succeeding lines. End with .FE.
End footnote started with .FS.
.I [text] [text2]
Print text in italics. If text2 is provided, concatenate it with text, but in the previous font. If no arguments are supplied, equivalent to .ft 2 or .ft I.
Start indented display. Text is output exactly as it is in the source file, but indented 8 ens. Same as .DS I. End with .DE.
.IP label n
Indent paragraph n spaces with hanging label. .RS and .RE can be used for nested indents.
End static keep started with .KS or floating keep started with .KF.
Begin floating keep. End with .KE. That is, if the amount of space required to output the text exceeds the space remaining on the current page, the keep is saved for the next page, while text following the display is used to fill the current page.
Start keep. End with .KE. Enclosed text stays on same page. If text won't fit on current page, a page break occurs.
Start left-justified display. Block is centered, but individual lines are left justified in the block. Same as .DS L. End with .DE.
Increase type size by two points (troff only). Restore normal type with .NL.
Start block paragraph. Interparagraph spacing is determined by register PD. Default is .5v in troff and 1 line in nroff.
.MC cw gw
Start multicolumn mode, with column-width cw and gutter width gw. The macro generates as many columns as can fit in the current line length. Return to single-column mode with .1C.
Supply the date, instead of using the current date. See also .DA.
Numbered section heading; level n of the section number is automatically incremented.
Restore default type size (troff only). Used after .LG or .SM.
Start standard indented paragraph. Size of paragraph indent is stored in register PI (default is 5 ens).
End quoted paragraph started by .QS. .QS/.QE is similar to .QP.
Begin quoted paragraph: indented on both sides, with blank lines above and below, and (in troff) with the type size reduced by 1 point.
Begin quoted paragraph, retaining current point size and vertical spacing. End with .QE.
Return to the roman font; essentially equivalent to .ft R.
End one level of relative indent started with .RS.
Initiate title page for a “released paper.”
Right shift. Increase relative indent one level. End with .RE. Often used with .IP.
Print a signature line.
Unnumbered section heading. See also .NH.
Change to smaller type size (troff only). Restore normal type with .NL.
End table to be processed by tbl. See .TS.
End of table header. Must be used with a preceding .TS H.
Title line(s) for cover sheet. A multiline title can be specified, ended by the next macro (usually .AU in the cover sheet sequence).
Start table to be processed by tbl. Use H to put a table header on all pages (end table header with .TH). End table with .TE. See Chapter 17 for more information on tbl.
Underline following text, even in troff.
Copyright © 2003 O'Reilly & Associates. All rights reserved.