Use Groff versions of man(7) and mdoc(7) manpages.
mdoc.samples(7) is superseded by mdoc(7).
This commit is contained in:
parent
e692e5c472
commit
a3089261bc
@ -3,7 +3,7 @@
|
||||
|
||||
#MISSING: eqnchar.7 ms.7 term.7
|
||||
MAN= ascii.7 build.7 clocks.7 environ.7 hier.7 hostname.7 intro.7 mailaddr.7 \
|
||||
man.7 mdoc.7 mdoc.samples.7 operator.7 ports.7 security.7 \
|
||||
operator.7 ports.7 security.7 \
|
||||
style.perl.7
|
||||
MLINKS= intro.7 miscellaneous.7
|
||||
|
||||
|
@ -1,344 +0,0 @@
|
||||
.\" Copyright (c) 1998.
|
||||
.\" The FreeBSD Project. All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 3. All advertising materials mentioning features or use of this software
|
||||
.\" must display the following acknowledgement:
|
||||
.\" This product includes software developed by the University of
|
||||
.\" California, Berkeley and its contributors.
|
||||
.\" 4. Neither the name of the University nor the names of its contributors
|
||||
.\" may be used to endorse or promote products derived from this software
|
||||
.\" without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd November 30, 1998
|
||||
.Os
|
||||
.Dt MAN 7
|
||||
.Sh NAME
|
||||
.Nm man
|
||||
.Nd quick reference guide for the
|
||||
.Nm \-man
|
||||
macro package
|
||||
.Sh SYNOPSIS
|
||||
.Nm groff
|
||||
.Fl m Ns Ar an
|
||||
.Ar
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm \-man
|
||||
package is a set of macros used to format
|
||||
.Ux
|
||||
manual pages. On
|
||||
.Bx
|
||||
systems, the use of
|
||||
.Nm
|
||||
is deprecated and the more expressive
|
||||
.Nm mdoc
|
||||
package is recommended in its place.
|
||||
.Sh USAGE
|
||||
.Ss Conventions
|
||||
.Nm
|
||||
macros are named using one or two upper case alphabetic characters.
|
||||
Following regular
|
||||
.Xr troff 1
|
||||
convention, each macro request starts with a
|
||||
.Li "."
|
||||
as the first character of a line. Arguments to macro requests
|
||||
expecting printable text may consist of zero to six words. Some macros will
|
||||
process the next input line if no arguments are supplied. For
|
||||
example, a
|
||||
.Li ".I"
|
||||
request on a line by itself will cause the next input line to be set
|
||||
in italics.
|
||||
Whitespace characters may be embedded in an argument by enclosing
|
||||
it in quotes. Type font and size are reset to their defaults before
|
||||
each paragraph and after processing font size and face changing macros.
|
||||
.Ss Indentation
|
||||
The prevailing indent distance is remembered between successive
|
||||
indented paragraphs and is reset to the default on reaching a
|
||||
non-indented paragraph. Default units for indents are
|
||||
.Dq ens .
|
||||
.Ss Preprocessing
|
||||
The
|
||||
.Xr man 1
|
||||
program is conventionally used to format and display manual pages. If
|
||||
the first line of the manual page source starts with the literal string
|
||||
.Li \&\'\e"
|
||||
.\" " bring emacs's font-lock mode back in sync ...
|
||||
then the remaining letters on the line indicate preprocessors that
|
||||
need to be run prior to formatting with
|
||||
.Xr troff 1 .
|
||||
Supported preprocessing directives are:
|
||||
.Bl -column "Letter" "Preprocessor" -offset indent
|
||||
.It Em Letter Ta Em Preprocessor
|
||||
.It e Ta Xr eqn 1
|
||||
.It g Ta Xr grap 1
|
||||
.It p Ta Xr pic 1
|
||||
.It r Ta Xr refer 1
|
||||
.It t Ta Xr tbl 1
|
||||
.It v Ta Xr vgrind 1
|
||||
.El
|
||||
.Ss Available Strings
|
||||
The
|
||||
.Nm
|
||||
package has the following predefined strings:
|
||||
.Bl -column "String" "XXXXXXXXXXXXXXXXXXXXXXXXXXXX" -offset indent
|
||||
.It Em String Ta Em Description
|
||||
.It "\e*R" Ta "registration symbol"
|
||||
.It "\e*S" Ta "change to default font size"
|
||||
.It "\e*(Tm" Ta "trademark symbol"
|
||||
.It "\e*(lq" Ta "left quote"
|
||||
.It "\e*(rq" Ta "right quote"
|
||||
.El
|
||||
.Pp
|
||||
.Ss Available Macros
|
||||
The available macros are presented in alphabetical order.
|
||||
.Bl -tag -width "XXX XX"
|
||||
.It ".B" Op Ar words
|
||||
typeset
|
||||
.Ar words
|
||||
using a bold face. Does not cause a line break. If no
|
||||
arguments are given the next text line is processed.
|
||||
.It ".BI" Op Ar words
|
||||
join
|
||||
.Ar words
|
||||
alternating bold and italic faces. Does not cause a line break. If
|
||||
no arguments are given the next text line is processed.
|
||||
.It ".BR" Op Ar words
|
||||
join
|
||||
.Ar words
|
||||
alternating bold and roman faces. Does not cause a line break. If no
|
||||
arguments are given the next text line is processed.
|
||||
.It ".DT"
|
||||
restore the default tab spacing of 0.5 inches. Does not cause a line
|
||||
break.
|
||||
.It ".HP" Op Ar indent
|
||||
Begin a paragraph with a hanging indent and sets the prevailing indent
|
||||
to
|
||||
.Ar indent .
|
||||
This request forces a line break. If
|
||||
.Ar indent
|
||||
is not specified, the value of the prevailing indent is used.
|
||||
.It ".I" Op Ar words
|
||||
typeset
|
||||
.Ar words
|
||||
using an italic face. Does not cause a line break. If no
|
||||
arguments are given the next text line is processed.
|
||||
.It ".IB" Op Ar words
|
||||
join
|
||||
.Ar words
|
||||
alternating italic and bold faces. Does not cause a line break. If no
|
||||
arguments are given the next text line is processed.
|
||||
.It ".IP" Op Ar tag Op Ar indent
|
||||
Begin an indented paragraph with tag
|
||||
.Ar tag
|
||||
and prevailing indent set to
|
||||
.Ar indent .
|
||||
If
|
||||
.Ar tag
|
||||
is not specified it is taken to be the null string
|
||||
.Qq "" .
|
||||
If
|
||||
.Ar indent
|
||||
is not specified it is taken to be the prevailing indent.
|
||||
.It ".IR" Op Ar words
|
||||
join
|
||||
.Ar words
|
||||
alternating italic and roman faces.
|
||||
Does not cause a line break. If no
|
||||
arguments are given the next text line is processed.
|
||||
.It ".LP"
|
||||
begin a left-aligned paragraph. The prevailing indent is set to the
|
||||
default. This request forces a line break.
|
||||
.It "\&.P"
|
||||
aliased to \&.LP.
|
||||
.It ".PD" Op Ar distance
|
||||
set the vertical distance between paragraphs to
|
||||
.Ar distance .
|
||||
If argument
|
||||
.Ar distance
|
||||
is not specified a value of 0.4v is used.
|
||||
.It ".PP"
|
||||
aliased to \&.LP.
|
||||
.It ".RE"
|
||||
end of a relative indent (see \&.RS below). This request forces a
|
||||
line break and restores the prevailing indent to its previous value.
|
||||
.It ".RB" Op Ar words
|
||||
join
|
||||
.Ar words
|
||||
alternating roman and bold faces. Does not cause a line break. If no
|
||||
arguments are given the next text line is processed.
|
||||
.It ".RI" Op Ar words
|
||||
join
|
||||
.Ar words
|
||||
alternating roman and italic faces. Does not cause a line break. If no
|
||||
arguments are given the next text line is processed.
|
||||
.It ".RS" Op Ar indent
|
||||
start a relative indent, increasing the indentation by
|
||||
.Ar indent .
|
||||
If argument
|
||||
.Ar indent
|
||||
is not specified, the value of the prevailing indent is used.
|
||||
.It ".SB" Op Ar words
|
||||
typeset
|
||||
.Ar words
|
||||
using a bold face after reducing the font size by 1 point.
|
||||
Does not cause a line break. If no arguments are given the next text
|
||||
line is processed.
|
||||
.It ".SH" Op Ar words
|
||||
specifies a section heading. This request forces a line break.
|
||||
It resets the prevailing indent and margins to their defaults.
|
||||
.It ".SM" Op Ar words
|
||||
typeset
|
||||
.Ar words
|
||||
after reducing the font size by 1 point. Does not cause a line break.
|
||||
If no arguments are given the next text line is processed.
|
||||
.It ".SS" Op Ar words
|
||||
specifies a section subheading. This request forces a line
|
||||
break. If no arguments are given the next text line is processed.
|
||||
It resets the prevailing indent and margins to their defaults.
|
||||
.It ".TH" Ar name Ar section Ar date Xo
|
||||
.Op Ar footer Op Ar center
|
||||
.Xc
|
||||
Begin reference page
|
||||
.Ar name
|
||||
belonging to section
|
||||
.Ar section .
|
||||
The third argument
|
||||
.Ar date ,
|
||||
is the date of the most recent change. If present,
|
||||
.Ar footer
|
||||
specifies the left page footer text and
|
||||
.Ar center
|
||||
specifies the center header text. This request must the very first
|
||||
request in the manual page.
|
||||
.It ".TP" Op Ar indent
|
||||
begin an indented paragraph with the tag specified in the next text
|
||||
line. If argument
|
||||
.Ar indent
|
||||
is given, it specifies the new value of the prevailing indent.
|
||||
This request forces a line break.
|
||||
.El
|
||||
.Sh PAGE STRUCTURE
|
||||
Most manual pages follow the general structure outlined below:
|
||||
.Bl -tag -width ".SH NAME"
|
||||
.It ".TH" Ar title Op Ar section-number
|
||||
The very first macro request in a manual page has to be the \&.TH
|
||||
request which establishes the name and title of the manual page. The
|
||||
\&.TH request also establishes the number of the manual page section.
|
||||
.It ".SH NAME"
|
||||
The name, or list of names, by which the command is called, followed
|
||||
by a dash and a one-line summary of the action performed. This
|
||||
section should not contain any
|
||||
.Nm troff
|
||||
commands or escapes, or any macro requests. This section is used to
|
||||
generate the database used by the
|
||||
.Xr whatis 1
|
||||
command.
|
||||
.It ".SH SYNOPSIS"
|
||||
A brief summary of the usage of the command or function being
|
||||
described.
|
||||
.Bl -tag -width "Commands"
|
||||
.It Commands
|
||||
The syntax of the command and its arguments as would be typed on the
|
||||
command line. Words that have to be typed exactly as printed are to
|
||||
be presented in bold face. Arguments are indicated by the use of an
|
||||
italic face. Arguments and command names so indicated should not be
|
||||
capitalized, even when starting a sentence.
|
||||
.Pp
|
||||
Syntactic symbols used should appear in roman face:
|
||||
.Bl -tag -width "XXX"
|
||||
.It "[]"
|
||||
square brackets are used to indicate optional arguments.
|
||||
.It "|"
|
||||
vertical bars are used to indicate a one of many exclusive choice.
|
||||
Only one item from a list separated by vertical bars is to be selected.
|
||||
.It "..."
|
||||
an ellipsis following an argument is used to indicate that the
|
||||
arguments can be repeated. When an ellipsis follows a bracketed set,
|
||||
the expression within the brackets can be repeated.
|
||||
.El
|
||||
.It Functions
|
||||
Required data declarations or
|
||||
.Li "#include"
|
||||
directives are to be shown first, followed by the function declaration.
|
||||
.El
|
||||
.It ".SH DESCRIPTION"
|
||||
An overview of the command or functions external behavior, including
|
||||
its interactions with files or data, how standard input, standard
|
||||
output and standard error are handled. Internals and implementation
|
||||
details are not normally specified. The question answered by this
|
||||
section is "what does it do?" or "what is it for?".
|
||||
.Pp
|
||||
Literal text, filenames and references to items that appear elsewhere
|
||||
in the reference manuals should be presented using a constant width
|
||||
face.
|
||||
Arguments should be presented using an italic face.
|
||||
.It ".SH OPTIONS"
|
||||
The list of options together with a description of how each affects
|
||||
the commands operation.
|
||||
.It ".SH USAGE"
|
||||
This section is optional and contains a detailed description of the
|
||||
subcommands and input grammar understood by the command.
|
||||
.It ".SH RETURN VALUES"
|
||||
The list of return values a library routine could return to the caller,
|
||||
with the conditions that cause these values to be returned.
|
||||
.It ".SH EXIT STATUS"
|
||||
The list of values returned as the exit status of the command, with
|
||||
the conditions that cause these values to be returned.
|
||||
.It ".SH FILES"
|
||||
The list of files associated with the command or function.
|
||||
.It ".SH SEE ALSO"
|
||||
A comma separated list of related manual pages followed by references
|
||||
to other published documentation.
|
||||
.It ".SH DIAGNOSTICS"
|
||||
A list of diagnostic messages with corresponding explanations.
|
||||
.It ".SH BUGS"
|
||||
Known defects and limitations, if any.
|
||||
.El
|
||||
.Sh FILES
|
||||
.Bl -tag -width "/usr/share/tmac/tmac.groff_an"
|
||||
.It "/usr/share/tmac/tmac.an"
|
||||
Initial file defining the
|
||||
.Nm
|
||||
package.
|
||||
.It "/usr/share/tmac/tmac.groff_an"
|
||||
.Nm groff
|
||||
source for macro definitions.
|
||||
.It "/usr/share/tmac/man.local"
|
||||
local modifications to the
|
||||
.Nm
|
||||
package.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr apropos 1 ,
|
||||
.Xr groff 1 ,
|
||||
.Xr man 1 ,
|
||||
.Xr nroff 1 ,
|
||||
.Xr troff 1 ,
|
||||
.Xr whatis 1 ,
|
||||
.Xr mdoc 7 ,
|
||||
.Xr mdoc.samples 7
|
||||
.Sh HISTORY
|
||||
This manual page was written by
|
||||
.An Joseph Koshy Aq jkoshy@FreeBSD.org .
|
@ -1,426 +0,0 @@
|
||||
.\" Copyright (c) 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 3. All advertising materials mentioning features or use of this software
|
||||
.\" must display the following acknowledgement:
|
||||
.\" This product includes software developed by the University of
|
||||
.\" California, Berkeley and its contributors.
|
||||
.\" 4. Neither the name of the University nor the names of its contributors
|
||||
.\" may be used to endorse or promote products derived from this software
|
||||
.\" without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)mdoc.7 8.2 (Berkeley) 12/30/93
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd December 30, 1993
|
||||
.Os
|
||||
.Dt MDOC 7
|
||||
.Sh NAME
|
||||
.Nm mdoc
|
||||
.Nd quick reference guide for the
|
||||
.Nm \-mdoc
|
||||
macro package
|
||||
.Sh SYNOPSIS
|
||||
.Nm groff
|
||||
.Fl m Ns Ar doc
|
||||
.Ar files ...
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm \-mdoc
|
||||
package is a set of content-based and domain-based macros
|
||||
used to format the
|
||||
.Bx
|
||||
man pages.
|
||||
The macro names and their meanings are
|
||||
listed below for quick reference; for
|
||||
a detailed explanation on using the package,
|
||||
see the tutorial sampler
|
||||
.Xr mdoc.samples 7 .
|
||||
.Pp
|
||||
The macros are described in two groups, the first
|
||||
includes the structural and physical page layout macros.
|
||||
The second contains the manual and general text domain
|
||||
macros which differentiate the
|
||||
.Nm -\mdoc
|
||||
package from other
|
||||
.Xr troff
|
||||
formatting packages.
|
||||
.Sh PAGE STRUCTURE DOMAIN
|
||||
.Ss Title Macros
|
||||
To create a valid manual page, these three macros, in this order,
|
||||
are required:
|
||||
.Bl -tag -width "xxxx.Os OPERATINGxSYSTEM [version/release]" -compact
|
||||
.It Li "\&.Dd " Ar "Month day, year"
|
||||
Document date.
|
||||
.It Li "\&.Dt " Ar "DOCUMENT_TITLE [section] [volume]"
|
||||
Title, in upper case.
|
||||
.It Li "\&.Os " Ar "OPERATING_SYSTEM [version/release]"
|
||||
Operating system
|
||||
.Pq Tn BSD .
|
||||
.El
|
||||
.Ss Page Layout Macros
|
||||
Section headers, paragraph breaks, lists and displays.
|
||||
.Bl -tag -width flag -compact
|
||||
.It Li \&.Sh
|
||||
Section Headers.
|
||||
Valid headers, in the order of presentation:
|
||||
.Bl -tag -width "IMPLEMENTATION NOTES" -compact
|
||||
.It Ar NAME
|
||||
Name section, should include the
|
||||
.Ql \&.Nm
|
||||
or
|
||||
.Ql \&.Fn
|
||||
and the
|
||||
.Ql \&.Nd
|
||||
macros.
|
||||
.It Ar LIBRARY
|
||||
Library where that function is compiled in.
|
||||
Should include
|
||||
.Ql \&.Lb
|
||||
macro only.
|
||||
.It Ar SYNOPSIS
|
||||
Usage.
|
||||
.It Ar DESCRIPTION
|
||||
General description, should include
|
||||
options and parameters.
|
||||
.It Ar IMPLEMENTATION NOTES
|
||||
Implementation specific information.
|
||||
.It Ar RETURN VALUES
|
||||
Sections two and three function calls.
|
||||
.It Ar ENVIRONMENT
|
||||
Describe environment variables.
|
||||
.It Ar FILES
|
||||
Files associated with the subject.
|
||||
.It Ar EXAMPLES
|
||||
Examples and suggestions.
|
||||
.It Ar DIAGNOSTICS
|
||||
Normally used for section four device interface diagnostics.
|
||||
.It Ar COMPATIBILITY
|
||||
Known compatibility issues.
|
||||
.It Ar ERRORS
|
||||
Sections two and three error and signal
|
||||
handling.
|
||||
.It Ar SEE ALSO
|
||||
Cross references and citations.
|
||||
.It Ar STANDARDS
|
||||
Conformance to standards if applicable.
|
||||
.It Ar HISTORY
|
||||
If a standard is not applicable, the history
|
||||
of the subject should be given.
|
||||
.It Ar AUTHORS
|
||||
Credits, if need be, should be placed here.
|
||||
.It Ar BUGS
|
||||
Gotchas and caveats.
|
||||
.It Ar other
|
||||
Customized headers may be added at
|
||||
the authors discretion.
|
||||
.El
|
||||
.It Li \&.Ss
|
||||
Subsection Headers.
|
||||
.It Li \&.Pp
|
||||
Paragraph Break.
|
||||
Vertical space (one line).
|
||||
.It Li \&.D1
|
||||
(D-one) Display-one
|
||||
Indent and display one text line.
|
||||
.It Li \&.Dl
|
||||
(D-ell) Display-one literal.
|
||||
Indent and display one line of literal text.
|
||||
.It Li \&.Bd
|
||||
Begin-display block.
|
||||
Display options:
|
||||
.Bl -tag -width "xoffset string " -compact
|
||||
.It Fl ragged
|
||||
Unjustified (ragged edges).
|
||||
.It Fl filled
|
||||
Justified.
|
||||
.It Fl literal
|
||||
Literal text or code.
|
||||
.It Fl file Ar name
|
||||
Read in named
|
||||
.Ar file
|
||||
and display.
|
||||
.It Fl offset Ar string
|
||||
Offset display.
|
||||
Acceptable
|
||||
.Ar string
|
||||
values:
|
||||
.Bl -tag -width indent-two -compact
|
||||
.It Ar left
|
||||
Align block on left (default).
|
||||
.It Ar center
|
||||
Approximate center margin.
|
||||
.It Ar indent
|
||||
Six constant width spaces (a tab).
|
||||
.It Ar indent-two
|
||||
Two tabs.
|
||||
.It Ar right
|
||||
Left aligns block 2 inches from
|
||||
right.
|
||||
.It Ar xx Ns Cm n
|
||||
Where
|
||||
.Ar xx
|
||||
is a number from
|
||||
.No \&4 Ns Cm n
|
||||
to
|
||||
.No \&9\&9 Ns Cm n .
|
||||
.It Ar Aa
|
||||
Where
|
||||
.Ar Aa
|
||||
is a callable macro name.
|
||||
.It Ar string
|
||||
The width of
|
||||
.Ar string
|
||||
is used.
|
||||
.El
|
||||
.El
|
||||
.It Li \&.Ed
|
||||
End-display (matches \&.Bd).
|
||||
.It Li \&.Bl
|
||||
Begin-list.
|
||||
Create lists or columns.
|
||||
Options:
|
||||
.Bl -tag -width flag -compact
|
||||
.It Ar List-types
|
||||
.Bl -column xbullet -compact
|
||||
.It Fl bullet Ta "Bullet Item List"
|
||||
.It Fl item Ta "Unlabeled List"
|
||||
.It Fl enum Ta "Enumerated List"
|
||||
.It Fl tag Ta "Tag Labeled List"
|
||||
.It Fl diag Ta "Diagnostic List"
|
||||
.It Fl hang Ta "Hanging Labeled List"
|
||||
.It Fl ohang Ta "Overhanging Labeled List"
|
||||
.It Fl inset Ta "Inset or Run-on Labeled List"
|
||||
.El
|
||||
.It List-parameters
|
||||
.Bl -tag -width "xcompact " -compact
|
||||
.It Fl offset
|
||||
(All lists.) See
|
||||
.Ql \&.Bd
|
||||
begin-display above.
|
||||
.It Fl width
|
||||
.Pf ( Fl tag
|
||||
and
|
||||
.Fl hang
|
||||
lists only.)
|
||||
See
|
||||
.Ql \&.Bd .
|
||||
.It Fl compact
|
||||
(All lists.)
|
||||
Suppresses blank lines.
|
||||
.El
|
||||
.El
|
||||
.It Li \&.El
|
||||
End-list.
|
||||
.It Li \&.It
|
||||
List item.
|
||||
.El
|
||||
.Sh MANUAL AND GENERAL TEXT DOMAIN MACROS
|
||||
The manual and general text domain macros are special in that
|
||||
most of them are parsed for callable macros
|
||||
for example:
|
||||
.Bl -tag -width ".Op Fl s Ar filex" -offset indent
|
||||
.It Li "\&.Op Fl s Ar file"
|
||||
Produces
|
||||
.Op Fl s Ar file
|
||||
.El
|
||||
.Pp
|
||||
In this example, the option enclosure macro
|
||||
.Ql \&.Op
|
||||
is parsed, and calls the callable content macro
|
||||
.Ql \&Fl
|
||||
which operates on the argument
|
||||
.Ql s
|
||||
and then calls the callable content macro
|
||||
.Ql \&Ar
|
||||
which operates on the argument
|
||||
.Ql file .
|
||||
Some macros may be callable, but are not parsed and vice versa.
|
||||
These macros are indicated in the
|
||||
.Em parsed
|
||||
and
|
||||
.Em callable
|
||||
columns below.
|
||||
.Pp
|
||||
Unless stated, manual domain macros share a common syntax:
|
||||
.Pp
|
||||
.Dl \&.Va argument [\ .\ ,\ ;\ :\ (\ )\ [\ ]\ argument \...\ ]
|
||||
.Pp
|
||||
.Sy Note :
|
||||
Opening and closing
|
||||
punctuation characters are only recognized as such if they are presented
|
||||
one at a time.
|
||||
The string
|
||||
.Ql "),"
|
||||
is not recognized as punctuation and will be output with a leading white
|
||||
space and in what ever font the calling macro uses.
|
||||
The
|
||||
argument list
|
||||
.Ql "] ) ,"
|
||||
is recognized as three sequential closing punctuation characters
|
||||
and a leading white space is not output between the characters
|
||||
and the previous argument (if any).
|
||||
The special meaning of a punctuation character may be escaped
|
||||
with the string
|
||||
.Ql \e& .
|
||||
For example the following string,
|
||||
.Bl -tag -width "&.Ar file1\ , file2\ , file3\ )\ ." -offset indent
|
||||
.It Li "\&.Ar file1\ , file2\ , file3\ )\ ."
|
||||
Produces
|
||||
.Ar file1 , file2 , file3 ) .
|
||||
.El
|
||||
.Ss Manual Domain Macros
|
||||
.Bl -column "Name" "Parsed" Callable" -compact
|
||||
.It Em Name Parsed Callable Description
|
||||
.It Li \&Ad Ta Yes Ta Yes Ta "Address. (This macro may be deprecated.)"
|
||||
.It Li \&An Ta Yes Ta Yes Ta "Author name."
|
||||
.It Li \&Ar Ta Yes Ta Yes Ta "Command line argument."
|
||||
.It Li \&Cd Ta \&No Ta \&No Ta "Configuration declaration (section four only)."
|
||||
.It Li \&Cm Ta Yes Ta Yes Ta "Command line argument modifier."
|
||||
.It Li \&Dv Ta Yes Ta Yes Ta "Defined variable (source code)."
|
||||
.It Li \&Er Ta Yes Ta Yes Ta "Error number (source code)."
|
||||
.It Li \&Ev Ta Yes Ta Yes Ta "Environment variable."
|
||||
.It Li \&Fa Ta Yes Ta Yes Ta "Function argument."
|
||||
.It Li \&Fd Ta Yes Ta Yes Ta "Function declaration."
|
||||
.It Li \&Fn Ta Yes Ta Yes Ta "Function call (also .Fo and .Fc)."
|
||||
.It Li \&Ic Ta Yes Ta Yes Ta "Interactive command."
|
||||
.It Li \&Lb Ta \&No Ta \&No Ta "Library name; see"
|
||||
.Xr mdoc.samples 7 ,
|
||||
.Sx Library Name
|
||||
section for complete list of known libraries.
|
||||
.It Li \&Li Ta Yes Ta Yes Ta "Literal text."
|
||||
.It Li \&Nm Ta Yes Ta Yes Ta "Command name."
|
||||
.It Li \&Op Ta Yes Ta Yes Ta "Option (also .Oo and .Oc)."
|
||||
.It Li \&Ot Ta Yes Ta Yes Ta "Old style function type (Fortran only)."
|
||||
.It Li \&Pa Ta Yes Ta Yes Ta "Pathname or file name."
|
||||
.It Li \&St Ta Yes Ta Yes Ta "Standard; see"
|
||||
.Xr mdoc.samples 7 ,
|
||||
.Sx Standards
|
||||
section for complete list of known standards.
|
||||
.It Li \&Ta Ta Yes Ta Yes Ta "Tab align next table column."
|
||||
.It Li \&Va Ta Yes Ta Yes Ta "Variable name."
|
||||
.It Li \&Vt Ta Yes Ta Yes Ta "Variable type (Fortran only)."
|
||||
.It Li \&Xr Ta Yes Ta Yes Ta "Manual Page Cross Reference."
|
||||
.El
|
||||
.Ss General Text Domain Macros
|
||||
.Bl -column "Name" "Parsed" Callable" -compact
|
||||
.It Em "Name Parsed Callable Description"
|
||||
.It Li \&%A Ta Yes Ta \&No Ta "Reference author."
|
||||
.It Li \&%B Ta Yes Ta Yes Ta "Reference book title."
|
||||
.It Li \&%\&C Ta \&No Ta \&No Ta "Reference place of publishing (city)."
|
||||
.It Li \&%\&D Ta \&No Ta \&No Ta "Reference date."
|
||||
.It Li \&%J Ta Yes Ta Yes Ta "Reference journal title."
|
||||
.It Li \&%N Ta \&No Ta \&No Ta "Reference issue number."
|
||||
.It Li \&%\&O Ta \&No Ta \&No Ta "Reference optional information."
|
||||
.It Li \&%P Ta \&No Ta \&No Ta "Reference page number(s)."
|
||||
.It Li \&%R Ta \&No Ta \&No Ta "Reference report Name."
|
||||
.It Li \&%T Ta Yes Ta Yes Ta "Reference article title."
|
||||
.It Li \&%V Ta \&No Ta \&No Ta "Reference volume."
|
||||
.It Li \&Ac Ta Yes Ta Yes Ta "Angle close quote."
|
||||
.It Li \&Ao Ta Yes Ta Yes Ta "Angle open quote."
|
||||
.It Li \&Ap Ta Yes Ta Yes Ta "Apostrophe."
|
||||
.It Li \&Aq Ta Yes Ta Yes Ta "Angle quote."
|
||||
.It Li \&At Ta \&No Ta \&No Ta Tn "AT&T UNIX"
|
||||
.It Li \&Bc Ta Yes Ta Yes Ta "Bracket close quote."
|
||||
.It Li \&Bf Ta \&No Ta \&No Ta "Begin font mode."
|
||||
.It Li \&Bo Ta Yes Ta Yes Ta "Bracket open quote."
|
||||
.It Li \&Bq Ta Yes Ta Yes Ta "Bracket quote."
|
||||
.It Li \&Bx Ta Yes Ta Yes Ta Bx .
|
||||
.It Li \&Db Ta \&No Ta \&No Ta "Debug (default is \\*qoff\\*q)"
|
||||
.It Li \&Dc Ta Yes Ta Yes Ta "Double close quote."
|
||||
.It Li \&Do Ta Yes Ta Yes Ta "Double open quote."
|
||||
.It Li \&Dq Ta Yes Ta Yes Ta "Double quote."
|
||||
.It Li \&Ec Ta Yes Ta Yes Ta "Enclose string close quote."
|
||||
.It Li \&Ef Ta \&No Ta \&No Ta "End font mode."
|
||||
.It Li \&Em Ta Yes Ta Yes Ta "Emphasis (traditional English)."
|
||||
.It Li \&Eo Ta Yes Ta Yes Ta "Enclose string open quote."
|
||||
.It Li \&Fx Ta Yes Ta Yes Ta Tn "FreeBSD operating system."
|
||||
.It Li \&No Ta Yes Ta Yes Ta "Normal text (no-op)."
|
||||
.It Li \&Ns Ta Yes Ta Yes Ta "No space."
|
||||
.It Li \&Nx Ta Yes Ta Yes Ta Tn "NetBSD operating system."
|
||||
.It Li \&Pc Ta Yes Ta Yes Ta "Parenthesis close quote."
|
||||
.It Li \&Pf Ta Yes Ta \&No Ta "Prefix string."
|
||||
.It Li \&Po Ta Yes Ta Yes Ta "Parenthesis open quote."
|
||||
.It Li \&Pq Ta Yes Ta Yes Ta "Parentheses quote."
|
||||
.It Li \&Qc Ta Yes Ta Yes Ta "Straight Double close quote."
|
||||
.It Li \&Ql Ta Yes Ta Yes Ta "Quoted literal."
|
||||
.It Li \&Qo Ta Yes Ta Yes Ta "Straight Double open quote."
|
||||
.It Li \&Qq Ta Yes Ta Yes Ta "Straight Double quote."
|
||||
.It Li \&Ox Ta Yes Ta Yes Ta Tn "OpenBSD operating system."
|
||||
.It Li \&Re Ta \&No Ta \&No Ta "Reference end."
|
||||
.It Li \&Rs Ta \&No Ta \&No Ta "Reference start."
|
||||
.It Li \&Rv Ta \&No Ta \&No Ta "Return values (sections two and three only)."
|
||||
.It Li \&Sc Ta Yes Ta Yes Ta "Single close quote."
|
||||
.It Li \&So Ta Yes Ta Yes Ta "Single open quote."
|
||||
.It Li \&Sq Ta Yes Ta Yes Ta "Single quote."
|
||||
.It Li \&Sm Ta \&No Ta \&No Ta "Space mode (default is \\*qon\\*q)"
|
||||
.It Li \&Sx Ta Yes Ta Yes Ta "Section Cross Reference."
|
||||
.It Li \&Sy Ta Yes Ta Yes Ta "Symbolic (traditional English)."
|
||||
.It Li \&Tn Ta Yes Ta Yes Ta "Trade or type name (small Caps)."
|
||||
.It Li \&Ux Ta Yes Ta Yes Ta Ux
|
||||
.It Li \&Xc Ta Yes Ta Yes Ta "Extend argument list close."
|
||||
.It Li \&Xo Ta Yes Ta Yes Ta "Extend argument list open."
|
||||
.El
|
||||
.\" .It Sy \&Hf Ta \&No Ta \&No Ta "Include file with header"
|
||||
.Pp
|
||||
Macro names ending in
|
||||
.Ql q
|
||||
quote remaining items on the argument list.
|
||||
Macro names ending in
|
||||
.Ql o
|
||||
begin a quote which may span more than one line of input and
|
||||
are close quoted with the matching macro name ending in
|
||||
.Ql c .
|
||||
Enclosure macros may be nested and are limited to
|
||||
eight arguments.
|
||||
.Pp
|
||||
Note: the extended argument list macros
|
||||
.Pf ( Ql \&.Xo ,
|
||||
.Ql \&.Xc )
|
||||
and the function enclosure macros
|
||||
.Pf ( Ql \&.Fo ,
|
||||
.Ql \&.Fc )
|
||||
are irregular.
|
||||
The extended list macros are used when the number of macro arguments
|
||||
would exceed the
|
||||
.Xr troff
|
||||
limitation of nine arguments.
|
||||
.Sh FILES
|
||||
.Bl -tag -width "tmac.doc-ditroff" -compact
|
||||
.It Pa tmac.doc
|
||||
Manual and general text domain macros.
|
||||
.It Pa doc-common
|
||||
Common structural macros and definitions.
|
||||
.It Pa doc-nroff
|
||||
Site dependent
|
||||
.Xr nroff
|
||||
style file.
|
||||
.It Pa doc-ditroff
|
||||
Site dependent
|
||||
.Xr troff
|
||||
style file.
|
||||
.It Pa doc-syms
|
||||
Special defines (such as the standards macro).
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr mdoc.samples 7
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user