mansun - macros to format Reference Manual pages
nroff -mansun filename...
troff -mansun filename...
These macros are used to lay out the reference pages in this manual. Note: if filename contains format input for a preprocessor, the commands shown above must be piped through the appropriate preprocessor. This is handled automatically by man(1). See the ``Conventions'' section.
Any text argument t may be zero to six words. Quotes may be used to include SPACE characters in a "word". If text is empty, the special treatment is applied to the next input line with text to be printed. In this way .I may be used to italicize a whole line, or .SB may be used to make small bold letters.
A prevailing indent distance is remembered between successive indented paragraphs, and is reset to default value upon reaching a non-indented paragraph. Default units for indents i are ens.
Type font and size are reset to default values before each paragraph, and after processing font and size setting macros.
These strings are predefined by -mansun:
\*R
\*S
* n.t.l. = next text line; p.i. = prevailing indent
Request | Cause | If no | Explanation |
Break | Argument | ||
.B t | |||
.BI t | |||
.BR t | |||
.DT | |||
.HP i | |||
.I t | |||
.IB t | |||
.IP x i | |||
.IR t | |||
.IX t | |||
.LP | |||
.P | |||
.PD d | |||
.PP | |||
.RE | |||
.RB t | |||
.RI t | |||
.RS i | |||
.SB t | |||
.SH t | |||
.SM t | |||
.SS t | |||
.TH n s d f m | |||
.TP i | |||
.TX t p |
When formatting a manual page, mansun examines the first line to determine whether it requires special processing. For example a first line consisting of:
'\" t
indicates that the manual page must be run through the tbl(1) preprocessor.
A typical manual page for a command or function is laid out as follows:
.TH title [1-8]
.SH NAME
.SH SYNOPSIS
Commands:
Syntactic symbols appear in Roman face:
[ ]
|
...
Functions:
.SH DESCRIPTION
Literal text from the synopsis appears in constant width, as do literal filenames and references to items that appear elsewhere in the reference manuals. Arguments are italicized.
If a command interprets either subcommands or an input grammar, its command interface or input grammar is normally described in a USAGE section, which follows the OPTIONS section. The DESCRIPTION section only describes the behavior of the command itself, not that of subcommands.
.SH OPTIONS
.SH FILES
.SH SEE ALSO
.SH DIAGNOSTICS
.SH BUGS
/usr/share/lib/tmac/ansun
/usr/share/man/windex
man(1), nroff(1), troff(1), whatis(1)
Dale Dougherty and Tim O'Reilly, Unix Text Processing
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |