Formats text for printing on typesetting devices.
troff [ -a ] [ -i ] [ -q ] [ -z ] [ -F Directory ] [ -n Number ] [ -o List ] [ -r ANumber ] [ -s Number ] [ -T Name ] [ -mm | -me | -mptx | -ms | -man | -mv ] [ -M Media ] [ File ... | - ]
The troff command reads one or more files and formats the text for printing on a phototypesetter or comparable device. A postprocessor is then required to post process the output of the troff command to the target device. See the accompanying example.
If no file is specified or the - (minus) flag is not the last parameter, standard input is read by default.
For the 3812, 3816, and Hewlett-Packard LaserJet Series II printer, the default fonts are the native fonts for the printer. Additional fonts also are available for these printers, which may be loaded through the use of the troff .fp directive. These fonts are stored on the host in the directory /usr/lib/font/devPrinter/bitmaps, and downloaded to the printer as necessary.
Three different typefaces are provided in four styles. The following chart shows the relationship between typeface, style, and the name that the troff command uses to access the font.
Note: The fonts in this set are based on the Computer Modern letter forms developed by Donald E Knuth. (Refer to Knuth, Donald: Computer Modern Typefaces. Addison-Wesley, 1986.)
Typeface Regular Italic Bold Italic
Roman cr cR Cr CR
Sans Serif cs cS Cs CS
Typewriter ct cT Ct CT
troff special sp
These fonts are all provided in the standard 15 troff sizes: 6, 7, 8, 9, 10, 11, 12, 14, 16, 28, 20, 22, 24, 28, and 36 points.
For example, .fp 1 Cr loads the Roman bold font into position 1.
Note: The .tl request cannot be used before the first break-producing request in the input to the troff command.
| -a | Sends a printable ASCII approximation of the results to standard output. |
| -FDirectory | Accesses font information from the Directory/devName directory instead of the default /usr/lib/font/devName directory (where Name is specified by the -T flag). |
| -i | Reads standard input after there are no more files. |
| -M Media | Specifies a paper size in order to determine the amount of imageable area
on the paper. Valid values for the Media variable are:
Note: The Media variable is not case-sensitive. |
| -nNumber | Numbers the first printed page with the value specified by the Number variable. |
| -oList | Prints only pages specified by the List variable, which
consists of a comma-separated list of page numbers and ranges:
|
| -q | Calls the simultaneous input and output mode of the .rd request. |
| -rANumber | Sets the register specified by the A variable to the specified number. The A variable value must have a one-character ASCII name. |
| -sNumber | Generates output to make the typesetter stop every specified number of pages. |
| -TName | Prepares the output for the specified printing device.
Phototypesetters or comparable printing devices use the following
Name variables for operating system international extended
characters. The default is ibm3816.
Note: You get a message that reads bad point sizeif your device does not support the point size that you specified. The troff command uses the closest valid point size to continue formatting.
Note: You also can set the TYPESETTER environment variable to one of the preceding values instead of using the -TName flag of the troff command. |
| -man | Selects the man macro processing package. |
| -me | Selects the me macro processing package. |
| -mm | Selects the mm macro processing package. |
| -mptx | Selects the mptx macro processing package. |
| -ms | Selects the ms macro processing package. |
| -mv | Selects the mv macro processing package. |
Note: See Macro Packages for Formatting Tools for more information on the macros.
| -z | Prints only messages generated by .tm (workstation message) requests. |
| - | Forces input to be read from standard input. |
| TYPESETTER | Contains information about a particular printing device. |
The following is an example of the troff command:
troff -Tibm3812 File | ibm3812 | qprt
The following macro packages are
part of the Formatting Tools in the Text Formatting System and are described
in more detail on the next pages:
| man | Enables you to create your own manual pages from online manual pages. |
| me | Provides macros for formatting papers. |
| mm | Formats documents with nroff and troff formatters. |
| mptx | Formats a permuted index. |
| ms | Provides a formatting facility for various styles of articles, theses, and books. |
| mv | Typesets English-language view graphs and slides by using the troffcommand. |
The man macro package is provided to enable users to create their own manual pages from online manual pages that have been processed with either the nroff command or troff command. The man macro package is used with either the nroff command or the troff command.
Note: The man macro package cannot be used to process the InfoExplorer information bases into manual pages.
Special macros, strings, and number registers exist, internal to the man macro package, in addition to the following lists of format macros, strings, and registers. Except for the names predefined by the troff command and the d, m, and y number registers, all such internal names are of the form SymbolAlpha, where Symbol is one of ), ], or }, and Alphais any alphanumeric character.
The man macro package uses only the Roman font. If the input text of an entry contains requests for other fonts (for example, the .I format macro, .RB request, or \fI request) the corresponding fonts must be mounted.
The following macros are used to alter the characteristics of manual pages that are formatted using the manmacro package.
Type font and size are reset to default values before each paragraph and after processing font- and size-setting macros (for example, the .I format macro, .SM format macro, and .B format macro).
Tab stops are neither used nor set by any of the format macros except the .DT format macro and the .TH format macro.
The Text variable represent up to six words; use " " (double quotation marks) to include character spaces in a word. If the variable is empty, this treatment is applied to the next input text line that contains text to be printed. For example, use the .I format macro to italicize an entire line, or use the .SM and .B format macros to produce an entire line of small-bold text. By default, hyphenation is turned off for the nroff command, but remains on for the troff command.
If the Indent variable is omitted, the previous Indent value is used. This value is set to its default (5 ens for the nroff command and 7.2 ens for the troff command) by the .TH format macro, .P format macro, and .RS format macro, and restored by the .RE format macro. The default unit for Indent is ens.
The Text variable represent up to six words; use " " (double quotation marks) to include character spaces in a word. If the variable is empty, this treatment is applied to the next input text line that contains text to be printed. For example, use the .I format macro to italicize an entire line, or use the .SM and .B format macros to produce an entire line of small-bold text. By default, hyphenation is turned off for the nroff command, but remains on for the troff command.
If the Indent variable is omitted, the previous Indent value is used. This value is set to its default (5 ens for the nroff command and 7.2 ens for the troff command) by the .TH format macro, .P format macro, and .RS format macro, and restored by the .RE format macro. The default unit for Indent is ens.
| Indicator | Marking |
| P | PRIVATE |
| N | NOTICE |
| No Indicator specified | Turns off proprietary marking. |
If the Indent variable is omitted, the previous Indent value is used. This value is set to its default (5 ens for the nroff command and 7.2 ens for the troff command) by the .TH format macro, .P format macro, and .RS format macro, and restored by the .RE format macro. The default unit for Indent is ens.
The Text variable represent up to six words; use " " (double quotation marks) to include character spaces in a word. If the variable is empty, this treatment is applied to the next input text line that contains text to be printed. For example, use the .I format macro to italicize an entire line, or use the .SM and .B format macros to produce an entire line of small-bold text. By default, hyphenation is turned off for the nroff command, but remains on for the troff command.
The Text variable represent up to six words; use " " (double quotation marks) to include character spaces in a word. If the variable is empty, this treatment is applied to the next input text line that contains text to be printed. For example, use the .I format macro to italicize an entire line, or use the .SM and .B format macros to produce an entire line of small-bold text. By default, hyphenation is turned off for the nroff command, but remains on for the troff command.
The Text variable represent up to six words; use " " (double quotation marks) to include character spaces in a word. If the variable is empty, this treatment is applied to the next input text line that contains text to be printed. For example, use the .I format macro to italicize an entire line, or use the .SM and .B format macros to produce an entire line of small-bold text. By default, hyphenation is turned off for the nroff command, but remains on for the troff command.
| Variable | Marking |
| Title | Title |
| Section | Section number |
| Commentary | Extra commentary |
| Name | New manual name. |
Note: If the .TH format macro values contain character spaces that are not enclosed in " " (double quotation marks), irregular dots are displayed on the output.
If the Indent variable is omitted, the previous Indent value is used. This value is set to its default (5 ens for the nroff command and 7.2 ens for the troff command) by the .TH format macro, .P format macro, and .RS format macro, and restored by the .RE format macro. The default unit for Indent is ens.
| \*R | Adds trademark, (Reg.) for the nroff command and the registered trademark symbol for the troff command. |
| \*S | Changes to default type size. |
| \*(Tm | Adds trademark indicator. |
nroff -Tlp -man your.book | qprt -dp
tbl my.book dept.book | nroff -Tlp -man | col -Tlp | qprt -dp
Note: Before the output is sent to qprt, it is first filtered through the col command to process reverse linefeeds used by the tbl command.
grap group | pic | tbl | troff -Tibm3816 -man \ | ibm3816 | qprt -dp
Notes:
- If manual pages created with the man macro package are intended for an online facility, components requiring the troff command, such as the grap or pic command, should be avoided.
- The grap command precedes the piccommand since it is a preprocessor to the pic command; the reverse does not format correctly.
- The col command is not required as a filter to the tbl command; typeset documents do not require reverse linefeeds.
The me package of the nroff and troff command macro definitions provides a formatting facility for technical papers in various formats. The col command may be required to postprocess nroff output in certain cases.
The macro requests are defined in
the following section, in me
Requests. Many nroff/troff requests can
have unpredictable results in conjunction with this package. However,
the following requests can be used after the first .pp
request:
| .bp | Begins new page. |
| .br | Breaks output line here. |
| .ce [Number] | Centers next specified number of lines. Default is 1 (one). |
| .ls [Number] | Sets line spacing. Text is single-spaced if Number is set to 1 (one); double-spaced if the value is set to 2. |
| .na | Leaves right margin unjustified. |
| .sp [Number] | Inserts the specified number of spacing lines. |
| .sz [+]Number | Adds the specified number to point size. |
| .ul [Number] | Underlines next specified number of lines. Default is 1 (one). |
Output of the eqn, neqn, refer, and tbl commands preprocessors for equations and tables can be used as input.
The following list contains all
macros, strings, and number registers available in the me
macros. Selected troff commands, registers, and functions
are included.
| \(space) | Defines unpaddable space (troff command built-in function). |
| \" | Comments to end of line (troff command built-in function). |
| \*# | Indicates optional delayed text tag string. |
| \$Number | Interpolates the value specified by the Number variable (troff command built-in function). |
| \n($0 | Defines section depth (number register). |
| .$0 | Started after section title printed (user-definable macro). |
| \n($1 | Defines first section number (number register). |
| .$1 | Started before printing depth 1 (one) section (user-definable macro). |
| \n($2 | Defines second section number (number register). |
| .$2 | Started before printing depth 2 section (user-definable macro). |
| \n($3 | Defines third section number (number register). |
| .$3 | Started before printing depth 3 section (user-definable macro). |
| \n($4 | Defines fourth section number (number register). |
| .$4 | Started before printing depth 4 section (user-definable macro). |
| \n($5 | Defines fifth section number (number register). |
| .$5 | Started before printing depth 5 section (user-definable macro). |
| \n($6 | Defines sixth section number (number register). |
| .$6 | Started before printing depth 6 section (user-definable macro). |
| .$C | Called at beginning of chapter (user-definable macro). |
| .$H | Indicates text header (user-definable macro). |
| \n($R | Defines relative vertical spacing in displays (number register defined by default; changing is not recommended). |
| \n($c | Defines current column header (number register). |
| .$c | Prints chapter title (macro defined by default; changing is not recommended). |
| \n($d | Indicates delayed text number (number register). |
| \n($f | Indicates footnote number (number register). |
| .$f | Prints footer (macro defined by default; changing is not recommended). |
| .$h | Prints header (macro defined by default; changing is not recommended). |
| \n($i | Defines paragraph base indent (number register). |
| \n($l | Defines column width (number register). |
| \n($m | Indicates number of columns in effect (number register). |
| \*($n | Indicates section name (string). |
| \n($p | Defines numbered paragraph number (number register). |
| .$p | Prints section heading (macro defined by default; changing is not recommended). |
| \n($r | Defines relative vertical spacing in text (number register defined by default; changing is not recommended). |
| \n($s | Defines column indent (number register). |
| .$s | Separates footnotes from text (macro defined by default; changing is not recommended). |
| \n% | Defines current page number (number register defined by default; changing is not recommended). |
| \& | Indicates zero-width character; useful for hiding controls (troff command built-in function). |
| \(XX | Interpolates special character specified by the XX variable (troff command built-in function). |
| .(b | Begins block (macro). |
| .(c | Begins centered block (macro). |
| .(d | Begins delayed text (macro). |
| .(f | Begins footnote (macro). |
| .(l | Begins list (macro). |
| .(q | Begins quote (macro). |
| .(xIndex | Begins indexed item in the specified index (macro). |
| .(z | Begins floating keep (macro). |
| .)b | Ends block (macro). |
| .)c | Ends centered block (macro). |
| .)d | Ends delayed text (macro). |
| .)f | Ends footnote (macro). |
| .)l | Ends list (macro). |
| .)q | Ends quote (macro). |
| .)x | Ends index entry (macro). |
| .)z | Ends floating keep (macro). |
| \*String | Interpolates the value specified by the String variable (troff command built-in function). |
| \*String1String2 | Interpolates the value specified by the String1String2 variable (troff command built-in function). |
| \** | Indicates optional footnote tag string. |
| .++mH | Macro to define paper section. The value specified by the
m variable defines the part of the paper. The m
variable can have the following values:
The H parameter defines the new header. If there are any spaces in it, the entire header must be quoted. If you want the header to have the chapter number in it, use the string \\\n(ch. For example, to number appendixes A.1, A.2, ..., type: .++ RA '''\\\n(ch.%'. Each section (such as chapters and appendixes) should be preceded by the .+c request. |
| .+cTitle | Begins chapter (or appendix, for instance, as set by the .++macro). The value specified by the Title variable is the chapter title (macro). |
| \*, | Indicates cedilla (string). |
| \- | Indicates minus sign (troff command built-in function). |
| \*- | Indicates 3/4 em dash (string). |
| \0 | Defines unpaddable digit-width space (troff command built-in function). |
| .1c | Reverts to single-column output (macro). |
| .2c | Begins two-column output (macro). |
| \*: | Indicates umlaut (string). |
| \*< | Begins subscript (string). |
| \*> | Ends subscript (string). |
| .EN | Ends equation. Space after equation produced by the eqn command or neqn command (macro). |
| .EQXY | Begins equation; breaks out and adds space. The value
specified by the Y variable is the equation number. The
optional X variable value may be any of the following:
|
| \L'Distance' | Indicates vertical line-drawing function for the specified distance (troff command built-in function). |
| .PE | Ends pic picture (macro). |
| .PF | Ends pic picture with flyback (macro). |
| .PS | Starts pic picture (macro). |
| .TE | Ends table (macro). |
| .TH | Ends header of table (macro). |
| .TS X | Begins table. If the value of the X variable is H, the table has a repeated heading (macro). |
| \*[ | Begins superscript (string). |
| \n(.$ | Defines number of options to macro (number register defined by default; changing is not recommended). |
| \n(.i | Indicates current indent (number register defined by default; changing is not recommended). |
| \n(.l | Indicates current line length (number register defined by default; changing is not recommended). |
| \n(.s | Indicates current point size (number register defined by default; changing is not recommended). |
| \*(4 | Indicates acute accent (string). |
| \*(` | Indicates grave accent (string). |
| \(4 | Indicates acute accent (troff command built-in function). |
| \(` | Indicates grave accent (troff command built-in function). |
| \*] | Ends superscript (string). |
| \^ | Indicates 1/12 em narrow space (troff command built-in function). |
| \*^ | Indicates caret (string). |
| .acAuthorNumber | Sets up for ACM-style output. The Author variable specifies the author name or names. The Number variable specifies the total number of pages. Must be used before the first initialization (macro). |
| .ad | Sets text adjustment (macro). |
| .af | Assigns format to register (macro). |
| .am | Appends to macro (macro). |
| .ar | Sets page numbers in Arabic (macro). |
| .as | Appends to string (macro). |
| .b X | Prints in boldface the value specified by the X variable. If the X variable is omitted, boldface text follows (macro). |
| .ba +Number | Augments the base indent by the specified Number value. Sets the indent on regular text such as paragraphs (macro). |
| .bc | Begins new column (macro). |
| .bi X | Prints in bold italic the value specified by the X parameter, in no-fill mode only. If the X parameter is not used, bold italic text follows (macro). |
| \n(bi | Displays block indent (number register). |
| .bl | Requests blank lines, even at top of page (macro). |
| \n(bm | Sets bottom title margin (number register). |
| .bp | Begins page (macro). |
| .br | Sets break; starts new line (macro). |
| \n(bs | Displays block pre- or post-spacing (number register). |
| \n(bt | Blocks keep threshold (number register). |
| .bu | Begins bulleted paragraph (macro). |
| .bx X | Prints in no-fill mode only the value specified by the X variable in box (macro). |
| \c | Continues input (troff command built-in function). |
| .ce | Centers lines (macro). |
| \n(ch | Defines current chapter number (number register). |
| .de | Defines macro (macro). |
| \n(df | Displays font (number register). |
| .ds | Defines string (macro). |
| \n(dw | Defines current day of week (number register). |
| \*(dw | Defines current day of week (string). |
| \n(dy | Defines current day of month (number register). |
| \e | Indicates printable version of \ (backslash) (troff command built-in function). |
| .ef'X'Y'Z' | Sets even-page footer to the values specified by the XYZ variables (macro). |
| .eh'X'Y'Z' | Sets even-page header to the values specified by the XYZ variables (macro). |
| .el | Specifies the else part of an if/else conditional (macro). |
| .ep | Ends page (macro). |
| \n(es | Indicates equation pre- or post-space (number register). |
| \fFont | Sets inline font change to the specified Font variable value (troff command built-in function). |
| \f(Fontf | Sets inline font change to the specified Fontf variable value (troff command built-in function). |
| .fc | Sets field characters (macro). |
| \n(ff | Sets footnote font (number register). |
| .fi | Fills output lines (macro). |
| \n(fi | Indicates footnote indent, first line only (number register). |
| \n(fm | Sets footer margin (number register). |
| .fo 'X'Y'Z' | Sets footer to the values specified by the XYZ variables (macro). |
| \n(fp | Sets footnote point size (number register). |
| \n(fs | Sets footnote pre-space (number register). |
| \n(fu | Sets footnote indent from right margin (number register). |
| \h'Distance' | Sets local horizontal motion for the specified distance (troff command built-in function). |
| .hc | Sets hyphenation character (macro). |
| .he 'X'Y'Z' | Sets header to the values specified by the XYZ variables (macro). |
| .hl | Draws horizontal line (macro). |
| \n(hm | Sets header margin (number register). |
| .hx | Suppresses headers and footers on next page (macro). |
| .hy | Sets hyphenation mode (macro). |
| .i X | Italicizes the value specified by the X variable. If the Xvariable is omitted, italic text follows (macro). |
| .ie | Specifies the else part of an if/else conditional (macro). |
| .if | Designates a conditional (macro). |
| \n(ii | Sets indented paragraph indent (number register). |
| .in | Indents (transient); use the .ba macro if pervasive (macro). |
| .ip X Y | Starts indented paragraph, with hanging tag specified by the X variable. Indentation is the en value specified by the Y variable. Default is 5 (macro). |
| .ix | Indents, no break (macro). |
| \l'Distance' | Starts horizontal line-drawing function for the specified distance (troff command built-in function). |
| .lc | Sets leader repetition character (macro). |
| .lh | Interpolates local letterhead (macro). |
| .ll | Sets line length (macro). |
| .lo | Reads in a file of local macros of the form .*x. Must be used before initialization (macro). |
| .lp | Begins left-justified paragraph (macro). |
| \*(lq | Designates left quotation marks (string). |
| .ls | Sets multi-line spacing (macro). |
| .m1 | Sets space from top of page to header (macro). |
| .m2 | Sets space from header to text (macro). |
| .m3 | Sets space from text to footer (macro). |
| .m4 | Sets space from footer to bottom of page (macro). |
| .mc | Inserts margin character (macro). |
| .mk | Marks vertical position (macro). |
| \n(mo | Defines month of year (number register). |
| \*(mo | Defines current month (string). |
| \nX | Interpolates number register specified by the X variable value (number register). |
| \n(XX | Interpolates number register specified by the XX variable (number register). |
| .n1 | Sets number lines in margin (macro). |
| .n2 | Sets number lines in margin (macro). |
| .na | Turns off text adjustment (macro). |
| .neNumber | Sets the specified number of lines of vertical space (macro). |
| .nf | Leaves output lines unfilled (macro). |
| .nh | Turns off hyphenation (macro). |
| .np | Begins numbered paragraph (macro). |
| .nr | Sets number register (macro). |
| .ns | Indicates no-space mode (macro). |
| \*o | Indicates superscript circle (such as for Norse A; string). |
| .of'X'Y'Z' | Sets odd footer to the values specified by the XYZ variables (macro). |
| .oh'X'Y'Z' | Sets odd header to the values specified by the XYZ variables (macro). |
| .pa | Begins page (macro). |
| .pd | Prints delayed text (macro). |
| \n(pf | Indicates paragraph font (number register). |
| \n(pi | Indicates paragraph indent (number register). |
| .pl | Sets page length (macro). |
| .pn | Sets next page number (macro). |
| .po | Sets page offset (macro). |
| \n(po | Simulates page offset (number register). |
| .pp | Begins paragraph, first line indented (macro). |
| \n(pp | Sets paragraph point size (number register). |
| \n(ps | Sets paragraph pre-space (number register). |
| .q | Indicates quoted (macro). |
| \*(qa | For all (string). |
| \*qe | There exists (string). |
| \n(qi | Sets quotation indent; also shortens line (number register). |
| \n(qp | Sets quotation point size (number register). |
| \n(qs | Sets quotation pre- or post-space (number register). |
| .r | Sets Roman text to follow (macro). |
| .rb | Sets real bold font (macro). |
| .re | Resets tabs to default values (macro). |
| .rm | Removes macro or string (macro). |
| .rn | Renames macro or string (macro). |
| .ro | Sets page numbers in Roman (macro). |
| \*(rq | Indicates right quotation marks (string). |
| .rr | Removes register (macro). |
| .rs | Restores register (macro). |
| .rt | Returns to vertical position (macro). |
| \sSize | Changes inline size to specified size (troff command built-in function). |
| .sc | Reads in a file of special characters and diacritical marks. Must be used before initialization (macro). |
| \n(sf | Sets section title font (number register). |
| .shLevelTitle | Indicates section head to follow; font automatically bold. The Level variable specifies the level of section. The Title variable specifies the title of section (macro). |
| \n(si | Sets relative base indent-per-section depth (number register). |
| .sk | Leaves the next page blank. Only one page is remembered ahead (macro). |
| .smX | Sets, in a smaller point size, the value specified by the X variable (macro). |
| .so | Indicates source input file (macro). |
| \n(so | Sets additional section title offset (number register). |
| .sp | Indicates vertical space (macro). |
| \n(sp | Indicates section title point size (number register). |
| \n(ss | Indicates section prespace (number register). |
| .sx | Changes section depth (macro). |
| .sz +Number | Augments point size by the specified number of points (macro). |
| .ta | Sets tab stops (macro). |
| .tc | Sets tab repetition character (macro). |
| \*(td | Sets today's date (string). |
| n(tf | Indicates title font (number register). |
| .th | Produces paper in thesis format. Must be used before initialization (macro). |
| .ti | Indicates temporary indent, next line only (macro). |
| .tl | Indicates 3-part title (macro). |
| \n(tm | Sets top title margin (number register). |
| .tp | Begins title page (macro). |
| \n(tp | Sets title point size (number register). |
| .tr | Translates (macro). |
| .u X | Underlines the value specified by the X variable, even in the troff command. No-fill mode only (macro). |
| .uh | Sets section head to follow; font automatically bold. Similar to the .sh macro, but unnumbered (macro). |
| .ul | Underlines next line (macro). |
| \v'Distance' | Local vertical motion for the specified distance (troff command built-in function). |
| \*v | Inverts v for Czech e (string). |
| \w'String' | Returns width of the specified string (troff command built-in function). |
| .xl | Sets local line length (macro). |
| .xpIndex | Prints the specified index (macro). |
| \n(xs | Sets index entry prespace (number register). |
| \n(xu | Sets index indent, from right margin (number register). |
| \n(yr | Indicates year, last two digits only (number register). |
| \n(zs | Sets floating keep pre- or post-space (number register). |
| \{ | Begins conditional group (troff command built-in function). |
| \| | 1/6 em, narrow space (troff command built-in function). |
| \} | Ends conditional group (troff command built-in function). |
| \*~ | Indicates tilde (string). |
For further information, see the -ME Reference Manual by E. P. Allman.
The mm macro package provides macros to format text in a wide variety of document forms, such as memos, letters, and reports. The manner in which you type and edit a document is essentially independent of whether the document is later formatted at a terminal or phototypeset.
The col command may be required to postprocess nroff output. See the colcommand for specific requirements.
The mm macros and additional information are summarized under the following headings:
| .ND Date | Sets new date. |
| .TL [ChgNumber] [FileNumber] | Sets title information. Text on the following line is used as the title of the document. |
| .AF [CompanyName] | Specifies author's company name. |
| .AU Name [Initials] [Loc] [Dept] [Ext] [Room] [Option...] | Sets author information. |
| .AT AuthorTitle [...] | Specifies title to follow signer's name (up to nine options). |
| .TM [Number] | Sets technical memorandum number. |
| .AS [ 0 | 1 | 2 ] [Indent] | Starts abstract, for technical memorandum and released paper only:
|
| .AE | Ends abstract. |
| .NS | Starts notation, allowed on memorandum for file cover sheets following an .AS 2/.AE macro pair (see "Ending Macros"). |
| .NE | Ends notation, allowed on memorandum for file cover sheets following an .AS 2/.AE macro pair (see "Ending Macros"). |
| .OK [Keyword ...] | Specifies other keywords (up to nine options). |
| .MT [type] [title] | Sets document type:
|
| Title | User-supplied text prefixed to page number |
| .P [ {0 1 2} ] | Starts paragraph: |
If the last option [1]
is present in the list-start macros, there is no space between items.
.DS [{0 1 2 3 }] [{0 1}] [Number]
.DF [{0 1 2 3 }] [{0 1}] [Number]
Set up formatting style for footnote text. Default is 0 for mmt command. Default is 10 for mm command. See the following table for the value.
Reset footnote counter on
first-level heading.
| .FD Arg. | Hyphens | Adjusted | Text Indented | Label Justified |
| 0 | .nh | .ad | Yes | Left |
| 1 | .hy | .ad | Yes | Left |
| 2 | .nh | .na | Yes | Left |
| 3 | .hy | .na | Yes | Left |
| 4 | .nh | .ad | No | Left |
| 5 | .hy | .ad | No | Left |
| 6 | .nh | .na | No | Left |
| 7 | .hy | .na | No | Left |
| 8 | .nh | .ad | Yes | Right |
| 9 | .hy | .ad | Yes | Right |
| 10 | .nh | .na | Yes | Right |
| 11 | .hy | .na | Yes | Right |
The following macros are for
alternating fonts and all take one to six options:
If an * (asterisk) follows a
register name, that register can be set one of two ways: from the
command line (see the example in the mm
command) or before the formatter reads mm macro definitions.
In the following list, the number shown in parentheses is the default
value.