.AMturns on "new-style" accent marks, which are those you want (see below for a list). If present, it must be the first command in the file. (This probably bears qualification.)
.DA [date]Makes troff print the date as the center page footer. (The current date if date is omitted, otherwise whatever the arguments are.)
.ND [date]If date is present, it is printed once on a cover sheet in .RP format and nowhere else. If .ND is invoked without arguments, no date is printed.
.TMPuts page numbers in the upper right corner, numbers the first page, suppresses the date, and sets everything double-spaced except quotes, displays, and keeps. Defines .CT.
.RPCauses the title sheet to be printed separately; if present, it immediately precedes the .TL.
.TLAll these fields can contain more than one line, and continue until the next request.
Title
.AUWhen formatting for multiple authors, repeat as many pairs of .AU and .AI as necessary.
Authors
.AI
Authors' institution(s)
.AB [no]The main text must be preceded by either a paragraph start or a section heading. If you want a title, but no abstract, use .AB no.
Abstract as it appears on the cover
.AE
.PP
Lorem ipsum dolor sit amet, consectetuer
.LPThere are default values for the vertical spacing before paragraphs and for their indentation.
Lorem ipsum dolor sit amet, consectetuer
.IP [tag [indent-in-ens]]Indented paragraphs are ended by starting another kind of paragraph.
Lorem ipsum dolor sit amet, consectetuer
.IP
This text is indented one step.
.RS
.IP
This text is indented two steps.
.RE
.QPIn contrast to .IP, .QP indents the right margin as well as the left.
Lorem ipsum dolor sit amet, consectetuer
.XPIndents everything but the first line of the paragraph. The number register PI says how much.
Lorem ipsum dolor sit amet, consectetuer
.I [word [trailer]]If word is omitted, the request simply turns on italic font; if the argument is present, only that word is set in intalics. If there is a trailer after the word, that trailer is set in the original font without intervening white space.
.B [word [trailer]]Similar for boldface.
.RRestores the previous font.
.UL wordUnderline word. There's no way to turn on underlining for good, in the way that omitting the argument does it for bold or italics.
.LGmake the font larger, smaller, and normal again, respectively; two points by default. They can be iterated. They don't affect the line spacing.
.SM
.NL
.SHSection headings are ended by starting a paragraph or another section heading.
Lorem ipsum dolor sit amet, consectetuer
.NH depth-levelThe depth ranges from 1 to 5. The default is 1. A depth of 0 resets the counters and produces a section heading numbered 1.
Lorem ipsum dolor sit amet, consectetuer
.CTOnly defined in thesis mode. Starts a new page.
Lorem ipsum dolor sit amet, consectetuer
.ds LH left headerThe default values for these registers are, for troff,
.ds CH center header
.ds RH right header
.ds LF left footer
.ds CF center footer
.ds RF right footer
CH page numberfor nroff,
CH - page number -In nroff string definitions, % refers to the current page number. To clear a string register, just assign the null string to it.
CF current date
If the assignments should take effect before the first page, they have to precede the title macros.
.de PTThere are separate macros for odd and even pages:
code that is executed at the top of each page
..
.de FT
code is executed at the bottom of each page.
..
.de OHThese macros get passed the string registers as three arguments, in the order left, center, right, separated by a single apostrophe. (Or whatever else the first character of the string is.) If the separator should appear in the string, it has to be escaped with a backslash.
odd page header macro
..
.de OF
odd page footer macro
...de EH
even page header macro
..
.de EF
even page footer macro
..
.P1Prints a header on page one. I reckon that it has to be used before that, then, but I don't have time to test it.
.af PN iMakes PN (the ms page number) appear as lower case roman characters. (.af is the troff assign format request.)
.2CStart two-column output.
.MC [column-width [gutter-width]]Start multicolumn output. The ``gutter'' is the space between the columns. The width can have units, but if they don't, the default unit is ens.
.1CReturns to single-column format.
.FS [mark]In the text that invokes the footnote, you produce the mark separately, as one of
Incidentally, lorem ipsum dolor sit amet ...
.FE
If you use anythin except \**, you can either repeat the mark as an argument to the .FS macro, or simply write it in the text.
- \**
- automatic counter, incremented each time it is used
- \(dg
- dagger
- \(dd
- double dagger
- *
- simple asterisk
The number register FL contains the footnote line's length.
.DS [code [indent]]The code determines how the display is placed on its containing page.
Lorem ipsum dolor sit amet, consectetuer
.DE
An extra indent argument (in ens) is taken as the amount to indent. There's no way to right-adjust a display.
- I
- indented (default)
- C
- centered
- L
- flush left
- B
- flushed left, then centered as a whole
.DS codeuse
..
.DE
.codeDfor codes I, C, L, or B if you want page breaks in the display.
..
.DE
.KSIf the text between .KS and .KE doesn't fit on the rest of the page, a new page is started.
Lorem ipsum dolor sit amet, consectetuer
.KE
.KFLike regular keeps, but the text is moved past the following text.
Lorem ipsum dolor sit amet, consectetuer
.KE
.BX textprints a box around the text.
.B1enclose the text between them in a box.
Lorem ipsum dolor sit amet, consectetuer
.B2
.XS [page-number]If the page numbers are omitted from the XS or XA macros, the page number of the current page is used.
Lorem ipsum dolor sit amet, consectetuer
.XA [page-number]
Lorem ipsum dolor sit amet, consectetuer
...
.XE
.PX
- e\*'
- e-acute (é)
- e\*'
- e-grave (è)
- o\*^
- o-circumflex (ô)
- c\*,
- c-cedilla
- n\*~
- n-tilde
- \*?
- inverted question mark
- \*!
- inverted exclamation mark
- u\*:
- umlaut-u
- \*8
- sharp s
- c\*v
- hacek (c with v on top)
- a\*_
- macron (dash over)
- o\*/
- o-slash
- \*3
- yogh
- a\*o
- angstrom (circle on top)
- \*(Th
- upper case thorn
- \*(th
- lower case thorn
- \*(D-
- upper case eth
- \*(d-
- lower case eth
- \*q
- hooked o
- \*(Ae
- upper case ae ligature
- \*(ae
- lower case ae ligature
- \*(Oe
- upper case oe ligature
- \*(oe
- lower case oe ligature
MS uses more than just those, but those are the ones the user can change.
- PS
- point size (10)
- VS
- line spacing (12p)
- LL
- line length (6i)
- LT
- title length (6i)
- PD
- paragraph spacing (0.3v)
- PI
- paragraph indent (5n)
- FL
- footnote length (11/12 LL)
- CW
- column width (7/15 LL)
- GW
- gutter width (1/15 LL)
- PO
- page offset (26/27i)
- HM
- top margin (1i)
- FM
- bottom margin (1i)
.EQ [code] [equation-number]By default, equations are centered and surrounded by a small amount of vertical space. The optional code can be one of C, I, or L to print the equation centered, indented, or flushed left, respectively. Any argument that is not a code is an equation number and is printed on the right margin, near the equation.
eqn commands
.EN
.TS [HSimilar to the case for equations. If the H option is present, the table header is separated from the body by a .TH. If the table is broken up over multiple pages, the code between .TS and .TH is repeated on the top of each page.
tbl header comands
.TH]
tbl commands
.TE
.nr NN valueSets the number register NN to value value.
- p
- point, 1/72 inch, 1/28 cm
- P
- pica, 1/6 inch, 4.23 mm
- m
- em, width of an m
- n
- en, width of an n
- v
- vertical space, baseline-to-baseline distance
- i
- inch
- c
- centimeter
- u
- machine unit, varying (but very small)
.ds SS valuedefines the string register SS as value.
.ad bAdjust both margins, the default.
.naTurn off adjustment of right margins, producing a "ragged right" look.
.ce [number-of-lines]centers the next number-of-lines lines of text, default 1.
Lorem ipsum dolor sit amet, consectetuer
.bpBegin a new page.
.brBegin a new line.
.sp number-of-linesInsert number-of-lines blank lines into the output.
: #T 1T CW DW EF FC FL FM FP GW H1 H2 H3 H4 H5 HM HT IF IK IM IP IQ IR IT KI L1 LE LL LT MF MM MN MO NA NC ND NF NS OI OJ PD PE PF PI PN PO PQ PS PX RO ST T. TB TC TD TN TQ TV VS WF YE YY ZN
' ` ^ ~ : , 1C 2C A1 A2 A3 A4 A5 AB AE AI AU B BG BT C C1 C2 CA CB CC CD CF CH CM CS CT D DA DE DS DW DY E1 E2 E3 E4 E5 EE EL EM EN EQ EZ FA FE FJ FK FN FO FQ FS FV FY HO I I1 I2 I3 I4 I5 ID IE IM IP IZ KE KF KQ KS LB LD LG LP ME MF MH MN MO MR ND NH NL NP OD OK PP PT PY QF R R1 R2 R3 R4 R5 RC RE RF RP RQ RS RT S0 S1 S2 SG SH SM SN SY TA TE TH TL TM TQ TS TT UL WB WH WT XD XF XK