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 can 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.
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.
-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 size if 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. |
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 troff command. |
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.
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. |
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
grap group | pic | tbl | troff -Tibm3816 -man \ | ibm3816 | qprt -dp
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 might 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 col command 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]
First option:
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.
Second option:
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.
Print special strings by using the following escape sequences:
\*x | For strings with single-character names (x) |
\*(xx | For strings with two-character names (xx). |
BU | Bullet. |
Ci | Indent of heading levels in the table of contents. |
DT | Current date. The locale-specific date format specified by the locale setting for the LC_TIME category is used as the default setting. This corresponds to the %x format specifier of the strftime subroutine. Use the .ND macro to change the current date. |
EM | Em dash. |
F | Footnote numbering. |
HF | Heading level font string: |
HP | Point sizes of the various heading levels. |
Le | Title of the list of equations. |
Lf | Title of the list of figures. |
Lt | Title of the list of tables. |
Lx | Title of the list of exhibits. |
RE | SCCS SID of mm macros. |
Rf | Reference numberer. |
Rp | Title of the reference page. |
Tm | Trademark. |
` | Grave accent. |
' | Acute accent. |
^ | Circumflex. |
~ | Tilde. |
: | Lowercase umlaut. |
; | Uppercase umlaut. |
, | Cedilla. |
If you define your own strings, macros, and registers, use only names that consist of either a single lowercase letter, or a lowercase letter followed by any character other than a lowercase letter. The names c2 and nP are exceptions to this; they are reserved.
The mptx macro package provides a definition for the .xx macro that is used for formatting a permuted index produced by the ptx command. The mptx macro package does not provide any other formatting capabilities, such as headers and footers. Use the mptx macro package in conjunction with the mm macro package if such capabilities are required. In this case, call the -mptx option after the -mm call, as follows:
nroff -mm -mptx File... | Printer
The ms macro package of nroff and troff command macro definitions provides a formatting facility for various styles of articles, theses, and books. In certain cases, the col command may be required to postprocess output.
The macro requests are defined in the ms Requests section. Many nroff and troff command requests can have unpredictable results in conjunction with this package. However, the first 4 requests in the following list can be used after initialization, and the last 2 requests can be used before initialization.
.bp | Begins new page. |
.br | Breaks output line. |
.ce [Number] | Centers the next specified number of lines. |
.ls [Number] | Sets line spacing. Set the value of the Number variable to 1 (one) to single-space text; and to 2 to double-space text. |
.na | Turns off alignment of right margin. |
.sp [Number] | Inserts the specified number of spacing lines. |
Font and point-size changes with the\f and \s macros are also allowed. For example, \fIword\fR italicizes word. Output of the tbl, eqn, and refer command preprocessors for equations, tables, and references is acceptable as input.
Formatting distances can be controlled in ms macros by means of built-in number registers. For example, the following number register sets the line length to 6.5 inches:
.nr LL 6.5i
For more information on ms macro registers, see ms Registers.
Following are external ms macro requests:
Following is a list of number registers and their default values:
PS | Sets point size. Takes effect for paragraph. Default is 10. |
VS | Sets vertical spacing. Takes effect for paragraph. Default is 12. |
LL | Sets line length. Takes effect for paragraph. Default is 6i. |
LT | Sets title length. Takes effect on next page. Defaults to the LL register value. |
FL | Sets footnote length. Takes effect at next .FS request. Default is 5.5i. |
PD | Sets paragraph distance. Takes effect for paragraph. Default is 1v (in nroff), .3v (in troff). |
DD | Sets display distance. Takes effect for displays. Default is 1v (in nroff), .5v (in troff). |
PI | Sets paragraph indent. Takes effect for paragraph. Default is 5n. |
QI | Sets quotation indent. Takes effect at next .QP request. Default is 5n. |
FI | Sets footnote indent. Takes effect at next .FS request. Default is 2n. |
PO | Sets page offset. Takes effect on next page. Default is 0 (zero) (in nroff), 1i (in troff). |
HM | Sets header margin. Takes effect on next page. Default is 1i. |
FM | Sets footer margin. Takes effect on next page. Default is 1i. |
FF | Sets footnote format. Takes effect at next .FS request. Default is 0 (zero) (1, 2, 3 available). |
When resetting number register values, make sure to specify the appropriate units. Set the line length to 7i instead of just 7, which would result in output with one character per line. Setting the FF register to 1 (one) suppresses footnote superscripting. Setting it to 2 also suppresses indentation of the first line. Setting the FF register to 3 produces a footnote paragraph like the .IP request.
Following is a list of string registers available in the ms macros. These string registers can be used anywhere in the text.
\*Q | Open quotation marks (" in nroff; ` ` in troff) |
\*U | Close quotation marks (" in nroff; ' ' introff) |
\*- | Dash (-- in nroff; - in troff) |
\*(MO | Month of year |
\*(DY | Day (current date) |
\** | Automatically numbered footnote |
\*' | Acute accent (before letter) |
\*` | Grave accent (before letter) |
\*^ | Circumflex accent (before letter) |
\*, | Cedilla (before letter) |
\*: | Umlaut (before letter) |
\*~ | Tilde (before letter). |
When using the extended accent mark definitions available with the .AM request, these strings should come after, rather than before, the letter to be accented.
This package simplifies the typesetting of view graphs and projection slides in a variety of sizes. Although a few macros accomplish most of the formatting tasks needed in making transparencies, the entire facilities of the troff, tbl, pic, and grap commands are available for more difficult tasks.
The output can be previewed on most terminals, in particular the Tektronix 4014. For this device, specify the -rX1 flag (which is automatically specified by the mvt command when that command is called with the -D4014 flag). To preview output on other terminals, specify the -a flag.
The mv macros are summarized under the following headings:
For the following nine macros, the first character of the name (V or S) distinguishes between view graphs and slides, respectively, while the second character indicates whether the foil is square (S), small wide (w), small high (h), big wide (W), or big high (H). Slides are narrower than the corresponding view graphs. The ratio of the longer dimension to the shorter one is larger for slides than for view graphs. As a result, slide foils can be used for view graphs, but view graphs cannot be used for slide foils. On the other hand, view graphs can accommodate a bit more text.
.VS [FoilNumber] [FoilID] [Date] | Starts a square view graph. Foil size is to be 7 inches by 7 inches. The foil-start macro resets all variables (such as indent and point size) to initial default values, except for the values of the FoilID and Date variables inherited from a previous foil-start macro. The .VSmacro also calls the .A macro. |
.Vw, .Vh,.VW, .VH, .Sw, .Sh, .SW, .SH | Same as the .VS macro, except
that these macros start view graphs (V) or slides (S) that are small wide (w), small
high (h), large wide (W), or large
high (H).
The following macros are recommended: |
.Vw [FoilNumber] [FoilID] [Date] | Same as the .VS macro, except that foil size is 7 inches wide by 5 inches high. |
.Vh [FoilNumber] [FoilID] [Date] | Same as the .VS macro, except that foil size is 5 inches wide by 7 inches high. |
.VW [FoilNumber] [FoilID] [Date] | Same as the .VS macro, except that foil size is 7 inches wide by 5.4 inches high. |
.VH [FoilNumber] [FoilID] [Date] | Same as the .VS macro, except that foil size is 7 inches wide by 9 inches high. |
.Sw [FoilNumber] [FoilID] [Date] | Same as the .VS macro, except that foil size is 7 inches wide by 5 inches high. |
.Sh [FoilNumber] [FoilID] [Date] | Same as the .VS macro, except that foil size is 5 inches wide by 7 inches high. |
.SW [FoilNumber] [FoilID] [Date] | Same as the .VS macro, except that foil size is 7 inches wide by 5.4 inches high. |
.SH [FoilNumber] [FoilID] [Date] | Same as the .VS macro, except that foil size is 7 inches wide by 9 inches high. |
The .S, .DF, .DV, and .U macros do not cause a break. The .I macro causes a break only if it is called with more than one variable. All the other macros cause a break.
The mv macro package also recognizes the following uppercase synonyms for the following corresponding lowercase troff command requests:
The Tm string produces the trademark symbol.
The following nroff and troff requests are included in a specified working file or in standard input. The nroff and troff requests control the characteristics of the formatted output when the file or standard input is processed with the nroff or troff commands. The nroff and troff requests are grouped by function, in the following sections:
For number variables written as +Number, the variable can be expressed as follows:
The notes at the end of this command are referenced in the specific requests where applicable.
Both nroff and troff requests accept numerical input with the appended scale indicators shown in the following table, where S is the current type size in points, V is the current vertical line spacing in basic units, and C is a nominal character width in basic units.
In the nroff request, both the em and the en are taken to be equal to the C, which is output-device dependent; frequent values are 1/10 and 1/12 inch. Actual character widths in the nroff request need not be all the same, and characters constructed with predefined strings such as - > are often extra wide.
Japanese Language Support: In the output from the nroff command, all double-width Japanese characters such as all kanji and some katakana characters have a fixed width equal to two Cs. All single-width Japanese characters such as some katakana characters have a fixed width equal to C.
The scaling for horizontally-oriented control characters, vertically-oriented control characters, and the requests .nr, .if, and .ie are as follows:
Orientation Default Request or Function Measure Horizontal Em (m) .ll, .in, .ta, .lt, .po, .mc, \h, \l Vertical Vertical line .pl, .wh, .ch, .dt, space (v) .sp, .sv, .ne, .rt, \v \x, \L Register-oriented Basic unit (u) .nr, .if. .ie or Conditional Miscellaneous Point (p) .ps, .vs, \H, \s
All other requests ignore scale indicators. When a number register containing an already appropriately scaled number is interpreted to provide numerical input, the unit scale indicator u might need to be appended to prevent an additional inappropriate default scaling. The Number might be specified in decimal-fraction form, but the parameter that is finally stored is rounded to an integer number of basic units.
.bp [+/-][Number] | Specifies a break page. The current page is ejected and a new page
is begun. If the +/-Number variable is specified,
its value becomes the new page number. Also refer to the .ns request.
This request usually causes a line break similar to the .br request. Calling this request with the control character " ' " (instead of ".") suppresses that break function. Initial Value: Number=1 If No Value Specified: - |
.mk Register | Marks the current vertical place (or a place in the current diversion)
in an internal register (associated with the current diversion level) or in
the specified register, if given. The Register variable
is the ASCII name of a number register. Mode or relevant values are associated
with the current diversion level. For more information, refer to the .rt request.
Initial Value: None If No Value Specified: Internal |
.ne Number D | Indicates a need for the specified vertical space. If the page space
needed (Number) is greater than the distance to the
next trap (D), a forward vertical space of size D occurs, which springs the trap. If there are no remaining
traps on the page, the size specified by the D variable
is the distance to the bottom of the page. If the distance to the next trap
(D) is less than one vertical line space (v), another line could still be output before the trap is sprung. In
a diversion, the size specified by D is the distance
to the diversion trap, if any, or is very large.
The value of D is also usually contained in the .t Number register. Mode or relevant values are associated with the current diversion level. Initial Value: Number=1V If No Value Specified: - |
.pl [+/-][Number] | Sets page length to the +/-Number variable
value. The internal limitation is approximately 136 inches in the nroff command, but varies with the device type in the troff command. A good working maximum for the troff command is 75 inches. The current page length is available in the .p register.
Initial Value: 11 inches If No Value Specified: 11 inches |
.pn [+/-][Number] | Specifies that the next page (when it occurs) has the page number specified
by the +/-Number variable. A .pn request must occur either before text is initially printed or before
a break occurs to affect the page number of the first page. The current page
number is in the % register.
Initial Value: Number=1 If No Value Specified: Ignored |
.po [+/-][Number] | Specifies a page offset. The current left margin is set to the +/-Numbervariable value. The initial troff command value provides 1 inch of left margin. For more information,
refer to "Line Length and Indenting".
The current page offset is available in the .o register.
Initial Value: 0 for the nroff command; 1 for the troff command. If No Value Specified: Previous |
.rt [+/-][Number] | Returns upward only to a marked vertical place in the current diversion.
If the +/-Number variable value (relative to the current
place) is given, the place is the value specified by the +/-Number variable from the top of the page or diversion. If the Number variable is not specified, the place is marked by a previous .mk request. Mode or relevant values are associated with
the current diversion level.
The .sp request can be used in all cases, instead of the .rt request, by spacing to the absolute place stored in an explicit register as, for example, when using the sequence .mk Register . . . .sp|\nRu. Initial Value: None If No Value Specified: Internal |
Japanese Language Support:
Blank text line | Causes a break and outputs a blank line exactly like an .sp 1 request. |
.ls Number | Sets line spacing to the value specified by the +/-Number variable. The Number -1 Vs (blank lines) variable
values are appended to each output-text line. Appended blank lines are omitted
if the text or previous appended blank line reached a trap position. Relevant
values are part of the current environment.
Initial Value: 1 If No Value Specified: Previous |
.ns | Turns on no-space mode. When on, the no-space mode inhibits .sp and .bp requests without a next page number.
The no-space mode is turned off when a line of output occurs or with the .rs request. This request usually causes a break.
Initial Value: Space If No Value Specified: - |
.os | Outputs saved vertical space. The no-space mode has no effect. Used
to output a block of vertical space requested by the previous .sv request.
Initial Value: - If No Value Specified: - |
.rs | Restores spacing. The no-space mode is turned off. This request usually
causes a break.
Initial Value: None If No Value Specified: - |
.sp Number | Spaces vertically in either direction. If the Number variable value is negative, the motion is backward (upward) and is limited
to the distance to the top of the page. Forward (downward) motion is truncated
to the distance to the nearest trap. If the no-space mode is on, no spacing
occurs. Refer to the .ns and .rs requests. This request
usually causes a line break similar to the .br request.
Calling this request with the control character "'" (instead of ".")
suppresses that break function.
Initial Value: - If No Value Specified: 1V |
.sv Number | Saves a contiguous vertical block of the specified size. If the distance
to the next trap is greater than the Number variable
value, the specified vertical space is output. The no-space mode has no effect.
If this distance is less than the specified vertical space, no vertical space
is immediately output, but is remembered for later output (refer to the .os request). Subsequent .sv requests overwrite any still-remembered Number variable value.
Initial Value: - If No Value Specified: Number=1V |
.vs Number | Sets vertical base-line spacing size V to the Number variable. Transient extra vertical space can be
specified by \x N. Relevant
values are part of the current environment.
Initial Value: The Number variable equals 1/16 inch for the nroff command and 12 points for the troff command. If No Value Specified: Previous |
.am Macro1 [Macro2] | Appends to Macro 1; appends version of the .de request. Both the Macro1 and Macro2 variables must be either one
or two ASCII characters. Macro2 is a termination sequence
to end the diversion.
Initial Value: - If No Value Specified: .Macro2=.. |
.as StringName String | Appends the specified string to the value specified by the StringName variable; appended version of the .ds request. The StringName variable value
must be one or two ASCII characters.
Initial Value: - If No Value Specified: Ignored |
.ch Macro [Number] | Changes the trap position for the specified macro to the value specified
by the Number variable. In the absence of the Number variable, the trap, if any, is removed. The Macro variable value must be one or two ASCII characters.
Initial Value: - If No Value Specified: - |
.da [Macro] | Diverts, appending to the specified macro and appends version of the .di request. The Macro variable must be one or two ASCII characters. Mode or relevant
values are associated with the current diversion level.
Initial Value: - If No Value Specified: End current diversion |
.de Macro1 [Macro2] | Defines or redefines the value specified by the Macro1 variable. The contents of the macro begins on the next input line.
Input lines are copied in copy mode until the definition is stopped by a line
beginning with .Macro2. In the absence of the Macro2 variable, the definition is stopped by a line beginning
with "..". A macro can contain .de requests, provided the stopping macros differ or the contained definition
terminator is concealed. The ".." can be concealed
as "\\ .", which copies as "\..." and is reread as "..". The Macro1 and Macro2variables must
each be one or two ASCII characters.
Initial Value: - If No Value Specified: .Macro2=.. |
.di [Macro] | Diverts output to the specified macro. Normal text processing occurs
during diversion except that page offsetting is not performed. The diversion
ends when the .di or .da request
is encountered without a variable. Extraneous requests of this type should
not be displayed when nested diversions are being used. The Macro variable must be one or two ASCII characters. Mode or relevant
values are associated with the current diversion level.
Initial Value: - If No Value Specified: End |
.ds StringName String | Defines a string specified by the StringName variable to contain the value specified by the String variable. Any initial double-quote in String is stripped off to permit initial blanks. The StringName variable must be one or two ASCII characters. |
.ds StringName ^A <SetNumber> <MessageNumber> [^A"<DefaultMessage> "] [^A<Argument> ^B<Argument> ^B <Argument>...] | Provides an alternate .ds syntax
that allows the use of a message catalog for language-independent string definitions.
Based on the message SetNumber and the MessageNumber within the locale-specific catalog, the message catalog is read in copy mode and the corresponding message is placed into the StringName variable. The initial sequence specifying the message set and message number can be omitted for backward compatibility. The ASCII code Control-A (^A) delimits message identification, default message and optional argument list. The ASCII code Control-B (^B) delimits an individual optional argument list. In the following example, .ds {c ^A2 41^A"ERROR: (%1$s) input line \ %2$s" ^A\n(.F^B\n(.c 2 is the message set number. 41 is the message number. text within quotes (". . .") is the default message. \n(.F is the name of the current input file. \n(.c is the number of lines read from the input file. If you assume the troff command runs with these conditions:
then the string {c would be defined as: ERROR: (paper.doc)input line 123 Other examples are: .ds {c ^A2 41 /* Without optional default message */ .ds {c ^A2 41^A"ERROR: (%1$s) input file \ %2$s" /* Without optional arguments */ |
If both the set number and the message number are set to zero, then the current date is returned in the current local's format. A user defined date format string can be defined in the default message field. The user defined format string must conform to the conversion specifications outlined by the strftime function in AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions. In the following examples: .ds DT^A0 0 If the current date were July 10, 1991, in an English U.S. locale, DT would be defined as 7/10/91. .ds DT^A0 0^A"Today is %B %d, %Y" If the current date were July 10, 1991, in an English U.S. locale, DT would be defined as Today is July 10, 1991. The second syntax method is not intended for general use. It is used in the nroff and troff macro files supplied with the system to facilitate internationalization of internally generated messages. Initial Value: - If No Value Specified: Ignored |
|
.dt Number Macro | Installs a diversion trap at the position specified by the Number variable in the current diversion to start the specified macro.
Another .dt request redefines the diversion trap. If
no variables are given, the diversion trap is removed. The Macro variable must be one or two ASCII characters. Mode or relevant
values are associated with the current diversion level.
Initial Value: - If No Value Specified: Off |
.em Macro | Calls the specified macro when all input has ended. The effect is the
same as if the contents of the specified macro had been at the end of the
last file processed. The specified macro must be one or two ASCII characters.
Initial Value: None If No Value Specified: None |
.it Number Macro | Sets an input-line-count trap to call the specified macro after the
number of lines of text input specified by the Number variable
have been read (control or request lines are not counted). The text can be
inline text or text provided by macros called explicitly (through inline calls)
or implicitly (through traps). The Macro variable
must be one or two ASCII characters. Relevant values are part of the current
environment.
Initial Value: - If No Value Specified: Off |
.rm Name | Removes the specified request, macro, or string. The Name variable value is removed from the name list and any related storage
space is freed. Subsequent references have no effect. The Name variable must be one or two ASCII characters.
Initial Value: - If No Value Specified: Ignored |
.rn Name1 Name2 | Renames the request, macro, or string value specified by the Name1variable to the value specified by the Name2 variable. The Name1and Name2 variable values must each be one or two ASCII characters.
Initial Value: Ignored If No Value Specified: - |
.wh Number Macro | Installs a trap to call the specified macro at the page position specified
by the Number variable. A negative Number variable value is interpreted with respect to the page bottom.
Any macro previously planted at the page position specified by the Number variable is replaced by the Macro variable
value. A Number variable value of 0 refers to the
top of a page. In the absence of the Macro variable,
the first trap found at the page position specified by the Number variable, if any, is removed. The Macro variable
must be one or two ASCII characters.
Initial Value: - If No Value Specified: - |
.cc Character | Sets the basic control character to the specified character, or resets
to ".". The Character variable
value must be an ASCII character. Relevant values are part of the current
environment.
Initial Value: . If No Value Specified: . |
.cu [Number] | A variant of the .ul request that causes every
character to be underlined and causes no line breaks to occur in the affected
input lines. That is, each output space following a .cu request
is similar to an unpaddable space. The .cu request is
identical to the .ul request in the troff command. Relevant values are part of the current environment.
Initial Value: Off If No Value Specified: Number=1 |
.c2 Character | Sets the no-break control character to the specified character or resets
to " ' ". The Character variable value must be an ASCII character. Relevant values are part
of the current environment.
Initial Value: ' If No Value Specified: ' |
.ec Character | Sets the escape character to \ (backslash) or
to the value specified by the Character variable,
if given. The Character variable value must be an
ASCII character.
Initial Value: \ If No Value Specified: \ |
.eo | Turns off the escape mechanism.
Initial Value: On If No Value Specified: - |
.lg [Number] | Turns on the ligature mode if the Number variable
value is absent or nonzero; turns off ligature mode if the Number variable value is 0. If the Number variable
value is 2, only the two-character ligatures are automatically called. The
ligature mode is inhibited for request, macro, string, register, or file names,
and in the copy mode. This request has no effect in the nroff command.
Initial Value: On, for the troff command If No Value Specified: On |
.tr Character1 Character2 Character3 Character4 | Translates, among other things, the character value
specified by the Character1 variable into the Character2 variable value, the character value specified
by the Character3 variable into the Character4variable value. If an odd number of characters is given, the
last one is mapped into the space character. To be consistent, a particular
translation must stay in effect from input to output time. All specified characters
must be ASCII characters. To reset the .tr request,
follow the request with previous variables given in duplicate.
For example, the following .tr request: .tr aAbBc<C,> can be reset by entering: .tr aabbcc It must stay in effect until logical output. Initial Value: None If No Value Specified: - |
.ul [Number] | Underlines in the nroff command (or italicizes
in the troffcommand) the number of input-text lines
specified by the Numbervariable. Actually switches
to underline font, saving the current font for later restoration. Other font
changes within the span of a .ul request take effect,
but the restoration undoes the last change. Output generated by the .tl request is affected by the font change, but does not decrement the Number variable value. For more information, refer to
the section "Three-Part Titles". If the
specified number is greater than 1, there is the risk that a trap-called macro
can provide text lines within the span; environment switching can prevent
this.
Relevant values are part of the current environment. Initial Value: Off If No Value Specified: Number=1 |
.uf Font | Underlines the font set to the value specified by the Font variable. In the nroff command, the Font variable cannot be on position 1 (initially Times Roman). The Font variable value must be an ASCII font name.
Initial Value: Italic If No Value Specified: Italic |
The Condition variable specifies one of the following one-character names:
.ab Text | Prints the value specified by the Text variable to the diagnostic output (usually the terminal) and ends without further processing. If text is missing, the message User Abort is printed and the output buffer is flushed. This request is used in interactive debugging to force output. |
.ab ^A<SetNumber> <MessageNumber> [^A"<Default> "] [^A<Argument> ^B<Argument> ^B<Argument>...] | Provides alternate syntax to allow use of a message
catalog for language-independent abort messages. Prints the appropriate message
specified by the parameter on the diagnostic output (usually the terminal)
and ends without further processing. If there are no parameters, the message
catalog equivalent to the following:
troff: User Abort, line no. file filename is output. The output buffer is flushed. This request is used in interactive debugging to force output. Based on the message SetNumber and the MessageNumber variables within the locale-specific catalog, the message catalog is read in copy mode and the corresponding message is written to the user's terminal. The initial sequence specifying the message set and message number can be omitted for backward compatibility. The ASCII code Control-A (^A) delimits message identification, default message, and optional argument list. The ASCII code Control-B (^B) delimits individual optional argument list. In the following example: .ab ^A2 42^A"Processing has been terminated \ at line %1$s."^A\n(c. 2 is the message set number. 42 is the message number. Text within quotes "..." is the default message. \n(c. is the number of lines read from the input file. If you assume the troff command runs with the following conditions:
then the following would be displayed on the user's terminal: Processing has been terminated at line 123. Initial Value: - If No Value Specified: User cancel |
.Dt Parameter | Defines the format for returning the date within the nroff or troff request. By default, without the
optional Parameter, the locale-specific date format
specified by the current locale setting for the LC_TIME category is used. This corresponds to the "%x" format specifier of strftime. Parameter is a format string identical to the format string
used with the strftime function in AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions.
Reference this function for a complete list of the format specifiers.
For example, .Dt "%A, %B %d, %Y (%T)" provides the following output for an English-speaking locale: Thursday, January 31, 1991 (10:40:00) The %A format is replaced by the locale-specific weekday name. The %B format is replaced by the locale-specific month name. The %d format is replaced by the day of the month in a two-digit format. The %Y format is replaced by the year with the century as a decimal number. The %T format is replaced by the time in hours (24-hour clock), minutes, and seconds in decimal numbers. This format provides for leap seconds and double leap seconds. |
.fl | Flushes output buffer. This request usually causes a line break similar
to the .br request. Calling this request with the control
character " ' " (instead of ".") suppresses that break function.
Initial Value: - If No Value Specified: - |
.ig Macro | Ignores input lines. The .ig request works exactly
like the .de request, except that the input is discarded.
For more information, refer to "Macros, Strings,
Diversions, and Position Traps". The input is read in copy mode, and
any auto-incremented registers are affected. The Macro variable must be one or two ASCII characters.
Initial Value: - If No Value Specified: .Macro=.. |
.mc [Character] [N] | Uses the specified character as the margin character to display the
specified distance (N) to the right of the margin
after each non-empty text line (except those produced by the .tl request). If the output line is too long (as can happen in no-fill
mode), the character is appended to the line. If the N variable is not given, the previous N variable
is used. The first N variable is 0.2 inches in the nroff command and 1 em in the troff command.
Relevant values are part of the current environment. Initial Value: .2 inches in nroff; 1 em in troff If No Value Specified: Off |
.pm [Character] | Prints macros. The names and sizes of all of the defined macros and
strings are printed on the user's terminal. If any ASCII alphanumeric character
is given as a variable, only the total of the sizes is printed. The size is
given in blocks of 128 characters.
Initial Value: - If No Value Specified: All |
.sy Command [Flags] | The specified command is run but its output is not captured at this
point. The standard input for the specified command is closed. Output must
be explicitly saved in an output file for later processing. Often the .sy directive is followed by a subsequent .so directive to include the results of the previous command.
For example: .sy date > /tmp/today Today is .so /tmp/today Initial Value: - If No Value Specified: - |
.tm String | The specified string is written to the user's terminal. |
.tm ^A<SetNumber> <MessageNumber> [^A"<DefaultMessage> "] [^A<Argument> ^B <Argument> ^B<Argument> ...] | Based on the message set number and the message number
within the locale-specific catalog, the message catalog is read in copy mode
and the corresponding message is written to the user's terminal. The initial
sequence specifying the message set and message number can be omitted for
backward compatibility. The ASCII code Control-A ^A delimits message identification, default message, and optional argument
list. The ASCII code Control-B ^B delimits individual
optional argument list.
In the following example: .tm ^A2 23^A"The typesetter is %1$s.On line %2$s."^A\*(.T^B\n(c. 2 is the message set number. 23 is the message number. Text within quotes "..." is the default message. \*(.T is the first argument in troff for value of -T. \n(c. is the number of lines read from the input file. If you assume the troff command runs with the following conditions:
Then the following would be displayed on the user's terminal: The typesetter is psc. On line 538. The locale-specific message catalog is found in /usr/lib/nls/msg/$LANG/macros.cat. Initial Value: - If No Value Specified: Newline |
The following notes apply to the nroff and troff requests. They are referenced by number in the requests where they apply.
.sy echo .ds z $TED >x .so x .sy rm x
set the z string register to contain the value of $TED.
LC_ALL | Specifies the locale to be used for all the locale categories. It overrides any setting of the other locale environment variables. |
LC_MESSAGES | Specifies the locale value for the LC_MESSAGES category. This is used if the LC_ALL environment variable is not set. |
LC_TIME | Specifies the locale value for the LC_TIME category. This is used if the LC_ALL environment variable is not set. |
LANG | Specifies the locale value to be used for all the locale categories. This is used if none of the above environment variables are set. This is the most often used environment variable to specify the locale. |
/usr/share/lib/tmac/tmac.* | Contains the pointers to standard macro files. |
/usr/share/lib/macros/* | Denotes standard macro files. |
/usr/share/lib/tmac/tmac.an | Contains the pointer to the man macro package. |
/usr/share/lib/macros/an | Contains the man macro package. |
/usr/share/lib/tmac/tmac.e file | Contains the me macro definition file. |
/usr/share/lib/me directory | Contains the macro definition files. |
/usr/share/lib/tmac/tmac.m | Contains the pointer to the mm macro package. |
/usr/share/lib/macros/mmn | Contains the mm macro package. |
/usr/share/lib/macros/mmt | Contains the mm macro package. |
/usr/share/lib/tmac/tmac.ptx | Points to the macro package. |
/usr/share/lib/macros/ptx | Contains the macro package. |
/usr/share/lib/tmac/tmac.x | Contains the macro definition files. |
/usr/share/lib/ms | Contains the ms macro definitions. |
/usr/share/lib/tmac/tmac.v | Contains macro definitions. |
/usr/share/lib/macros/vmca | Contains macro definitions. |
/usr/lib/nls/msg/$LANG/macros.cat | Contains locale-specific message catalog for the mm, me, ms, and mv macro packages. |
/usr/lib/font/dev*/* | Contains the font width tables. |
/var/tmp/trtmp* | Denotes a temporary file. |
The col command, eqn command, grap command, hplj command, ibm3812 command, ibm3816 command, mm command, mmt command, mvt command, neqn command, nroff command, pic command, ptx command, refer command, tbl command, tc command, xpreview command.
The nroff and troff Input file format, troff file format, troff font file format.
The setlocale function, strftime function.
Message Facility in in AIX 5L Version 5.2 National Language Support Guide and Reference.
National Language Support Overview in AIX 5L Version 5.2 National Language Support Guide and Reference.