2021-11-15 15:35:39 +00:00
|
|
|
.\" $Id: mdoc.7,v 1.287 2021/07/29 17:32:01 schwarze Exp $
|
2012-10-18 09:55:16 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
|
2021-11-15 15:35:39 +00:00
|
|
|
.\" Copyright (c) 2010, 2011, 2013-2020 Ingo Schwarze <schwarze@openbsd.org>
|
2012-10-18 09:55:16 +00:00
|
|
|
.\"
|
|
|
|
.\" Permission to use, copy, modify, and distribute this software for any
|
|
|
|
.\" purpose with or without fee is hereby granted, provided that the above
|
|
|
|
.\" copyright notice and this permission notice appear in all copies.
|
|
|
|
.\"
|
|
|
|
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
.\"
|
2021-11-15 15:35:39 +00:00
|
|
|
.Dd $Mdocdate: July 29 2021 $
|
2012-10-18 09:55:16 +00:00
|
|
|
.Dt MDOC 7
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mdoc
|
|
|
|
.Nd semantic markup language for formatting manual pages
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm mdoc
|
|
|
|
language supports authoring of manual pages for the
|
|
|
|
.Xr man 1
|
|
|
|
utility by allowing semantic annotations of words, phrases,
|
|
|
|
page sections and complete manual pages.
|
|
|
|
Such annotations are used by formatting tools to achieve a uniform
|
|
|
|
presentation across all manuals written in
|
|
|
|
.Nm ,
|
|
|
|
and to support hyperlinking if supported by the output medium.
|
|
|
|
.Pp
|
|
|
|
This reference document describes the structure of manual pages
|
|
|
|
and the syntax and usage of the
|
|
|
|
.Nm
|
|
|
|
language.
|
|
|
|
The reference implementation of a parsing and formatting tool is
|
|
|
|
.Xr mandoc 1 ;
|
|
|
|
the
|
|
|
|
.Sx COMPATIBILITY
|
|
|
|
section describes compatibility with other implementations.
|
|
|
|
.Pp
|
|
|
|
In an
|
|
|
|
.Nm
|
|
|
|
document, lines beginning with the control character
|
|
|
|
.Sq \&.
|
|
|
|
are called
|
|
|
|
.Dq macro lines .
|
|
|
|
The first word is the macro name.
|
|
|
|
It consists of two or three letters.
|
|
|
|
Most macro names begin with a capital letter.
|
|
|
|
For a list of available macros, see
|
|
|
|
.Sx MACRO OVERVIEW .
|
|
|
|
The words following the macro name are arguments to the macro, optionally
|
|
|
|
including the names of other, callable macros; see
|
|
|
|
.Sx MACRO SYNTAX
|
|
|
|
for details.
|
|
|
|
.Pp
|
|
|
|
Lines not beginning with the control character are called
|
|
|
|
.Dq text lines .
|
|
|
|
They provide free-form text to be printed; the formatting of the text
|
|
|
|
depends on the respective processing context:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Sh Macro lines change control state.
|
|
|
|
Text lines are interpreted within the current state.
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Many aspects of the basic syntax of the
|
|
|
|
.Nm
|
|
|
|
language are based on the
|
|
|
|
.Xr roff 7
|
|
|
|
language; see the
|
|
|
|
.Em LANGUAGE SYNTAX
|
|
|
|
and
|
|
|
|
.Em MACRO SYNTAX
|
|
|
|
sections in the
|
|
|
|
.Xr roff 7
|
|
|
|
manual for details, in particular regarding
|
|
|
|
comments, escape sequences, whitespace, and quoting.
|
|
|
|
However, using
|
|
|
|
.Xr roff 7
|
|
|
|
requests in
|
|
|
|
.Nm
|
|
|
|
documents is discouraged;
|
|
|
|
.Xr mandoc 1
|
|
|
|
supports some of them merely for backward compatibility.
|
|
|
|
.Sh MANUAL STRUCTURE
|
|
|
|
A well-formed
|
|
|
|
.Nm
|
|
|
|
document consists of a document prologue followed by one or more
|
|
|
|
sections.
|
|
|
|
.Pp
|
|
|
|
The prologue, which consists of the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dd ,
|
|
|
|
.Ic \&Dt ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Os
|
2012-10-18 09:55:16 +00:00
|
|
|
macros in that order, is required for every document.
|
|
|
|
.Pp
|
|
|
|
The first section (sections are denoted by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sh )
|
2012-10-18 09:55:16 +00:00
|
|
|
must be the NAME section, consisting of at least one
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
followed by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nd .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Following that, convention dictates specifying at least the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
and
|
|
|
|
.Em DESCRIPTION
|
|
|
|
sections, although this varies between manual sections.
|
|
|
|
.Pp
|
|
|
|
The following is a well-formed skeleton
|
|
|
|
.Nm
|
|
|
|
file for a utility
|
|
|
|
.Qq progname :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Dd $\&Mdocdate$
|
|
|
|
\&.Dt PROGNAME section
|
|
|
|
\&.Os
|
|
|
|
\&.Sh NAME
|
|
|
|
\&.Nm progname
|
|
|
|
\&.Nd one line about what it does
|
|
|
|
\&.\e\(dq .Sh LIBRARY
|
2014-11-22 18:08:25 +00:00
|
|
|
\&.\e\(dq For sections 2, 3, and 9 only.
|
2012-10-18 09:55:16 +00:00
|
|
|
\&.\e\(dq Not used in OpenBSD.
|
|
|
|
\&.Sh SYNOPSIS
|
|
|
|
\&.Nm progname
|
|
|
|
\&.Op Fl options
|
|
|
|
\&.Ar
|
|
|
|
\&.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
\&.Nm
|
|
|
|
utility processes files ...
|
2014-11-22 18:08:25 +00:00
|
|
|
\&.\e\(dq .Sh CONTEXT
|
|
|
|
\&.\e\(dq For section 9 functions only.
|
2012-10-18 09:55:16 +00:00
|
|
|
\&.\e\(dq .Sh IMPLEMENTATION NOTES
|
|
|
|
\&.\e\(dq Not used in OpenBSD.
|
|
|
|
\&.\e\(dq .Sh RETURN VALUES
|
2014-11-22 18:08:25 +00:00
|
|
|
\&.\e\(dq For sections 2, 3, and 9 function return values only.
|
2012-10-18 09:55:16 +00:00
|
|
|
\&.\e\(dq .Sh ENVIRONMENT
|
2014-11-22 18:08:25 +00:00
|
|
|
\&.\e\(dq For sections 1, 6, 7, and 8 only.
|
2012-10-18 09:55:16 +00:00
|
|
|
\&.\e\(dq .Sh FILES
|
|
|
|
\&.\e\(dq .Sh EXIT STATUS
|
2014-11-22 18:08:25 +00:00
|
|
|
\&.\e\(dq For sections 1, 6, and 8 only.
|
2012-10-18 09:55:16 +00:00
|
|
|
\&.\e\(dq .Sh EXAMPLES
|
|
|
|
\&.\e\(dq .Sh DIAGNOSTICS
|
2014-11-22 18:08:25 +00:00
|
|
|
\&.\e\(dq For sections 1, 4, 6, 7, 8, and 9 printf/stderr messages only.
|
2012-10-18 09:55:16 +00:00
|
|
|
\&.\e\(dq .Sh ERRORS
|
2014-11-22 18:08:25 +00:00
|
|
|
\&.\e\(dq For sections 2, 3, 4, and 9 errno settings only.
|
2012-10-18 09:55:16 +00:00
|
|
|
\&.\e\(dq .Sh SEE ALSO
|
|
|
|
\&.\e\(dq .Xr foobar 1
|
|
|
|
\&.\e\(dq .Sh STANDARDS
|
|
|
|
\&.\e\(dq .Sh HISTORY
|
|
|
|
\&.\e\(dq .Sh AUTHORS
|
|
|
|
\&.\e\(dq .Sh CAVEATS
|
|
|
|
\&.\e\(dq .Sh BUGS
|
|
|
|
\&.\e\(dq .Sh SECURITY CONSIDERATIONS
|
|
|
|
\&.\e\(dq Not used in OpenBSD.
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
The sections in an
|
|
|
|
.Nm
|
|
|
|
document are conventionally ordered as they appear above.
|
|
|
|
Sections should be composed as follows:
|
|
|
|
.Bl -ohang -offset Ds
|
|
|
|
.It Em NAME
|
|
|
|
The name(s) and a one line description of the documented material.
|
|
|
|
The syntax for this as follows:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Nm name0 ,
|
|
|
|
\&.Nm name1 ,
|
|
|
|
\&.Nm name2
|
|
|
|
\&.Nd a one line description
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Multiple
|
|
|
|
.Sq \&Nm
|
|
|
|
names should be separated by commas.
|
|
|
|
.Pp
|
|
|
|
The
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
macro(s) must precede the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nd
|
2012-10-18 09:55:16 +00:00
|
|
|
macro.
|
|
|
|
.Pp
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nd .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Em LIBRARY
|
|
|
|
The name of the library containing the documented material, which is
|
|
|
|
assumed to be a function in a section 2, 3, or 9 manual.
|
|
|
|
The syntax for this is as follows:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Lb libarm
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Lb .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Em SYNOPSIS
|
|
|
|
Documents the utility invocation syntax, function call syntax, or device
|
|
|
|
configuration.
|
|
|
|
.Pp
|
|
|
|
For the first, utilities (sections 1, 6, and 8), this is
|
|
|
|
generally structured as follows:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Nm bar
|
|
|
|
\&.Op Fl v
|
|
|
|
\&.Op Fl o Ar file
|
|
|
|
\&.Op Ar
|
|
|
|
\&.Nm foo
|
|
|
|
\&.Op Fl v
|
|
|
|
\&.Op Fl o Ar file
|
|
|
|
\&.Op Ar
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Commands should be ordered alphabetically.
|
|
|
|
.Pp
|
|
|
|
For the second, function calls (sections 2, 3, 9):
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.In header.h
|
|
|
|
\&.Vt extern const char *global;
|
|
|
|
\&.Ft "char *"
|
|
|
|
\&.Fn foo "const char *src"
|
|
|
|
\&.Ft "char *"
|
|
|
|
\&.Fn bar "const char *src"
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Ordering of
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&In ,
|
|
|
|
.Ic \&Vt ,
|
|
|
|
.Ic \&Fn ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fo
|
2012-10-18 09:55:16 +00:00
|
|
|
macros should follow C header-file conventions.
|
|
|
|
.Pp
|
|
|
|
And for the third, configurations (section 4):
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Cd \(dqit* at isa? port 0x2e\(dq
|
|
|
|
\&.Cd \(dqit* at isa? port 0x4e\(dq
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Manuals not in these sections generally don't need a
|
|
|
|
.Em SYNOPSIS .
|
|
|
|
.Pp
|
|
|
|
Some macros are displayed differently in the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section, particularly
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm ,
|
|
|
|
.Ic \&Cd ,
|
|
|
|
.Ic \&Fd ,
|
|
|
|
.Ic \&Fn ,
|
|
|
|
.Ic \&Fo ,
|
|
|
|
.Ic \&In ,
|
|
|
|
.Ic \&Vt ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ft .
|
2012-10-18 09:55:16 +00:00
|
|
|
All of these macros are output on their own line.
|
|
|
|
If two such dissimilar macros are pairwise invoked (except for
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ft
|
2012-10-18 09:55:16 +00:00
|
|
|
before
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fo
|
2012-10-18 09:55:16 +00:00
|
|
|
or
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fn ) ,
|
2012-10-18 09:55:16 +00:00
|
|
|
they are separated by a vertical space, unless in the case of
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fo ,
|
|
|
|
.Ic \&Fn ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ft ,
|
2012-10-18 09:55:16 +00:00
|
|
|
which are always separated by vertical space.
|
|
|
|
.Pp
|
|
|
|
When text and macros following an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
macro starting an input line span multiple output lines,
|
|
|
|
all output lines but the first will be indented to align
|
|
|
|
with the text immediately following the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
macro, up to the next
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm ,
|
|
|
|
.Ic \&Sh ,
|
2012-10-18 09:55:16 +00:00
|
|
|
or
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ss
|
2012-10-18 09:55:16 +00:00
|
|
|
macro or the end of an enclosing block, whichever comes first.
|
|
|
|
.It Em DESCRIPTION
|
|
|
|
This begins with an expansion of the brief, one line description in
|
|
|
|
.Em NAME :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
The
|
|
|
|
\&.Nm
|
|
|
|
utility does this, that, and the other.
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
It usually follows with a breakdown of the options (if documenting a
|
|
|
|
command), such as:
|
|
|
|
.Bd -literal -offset indent
|
2021-11-15 15:35:39 +00:00
|
|
|
The options are as follows:
|
2012-10-18 09:55:16 +00:00
|
|
|
\&.Bl \-tag \-width Ds
|
|
|
|
\&.It Fl v
|
|
|
|
Print verbose information.
|
|
|
|
\&.El
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2016-01-15 23:08:59 +00:00
|
|
|
List the options in alphabetical order,
|
|
|
|
uppercase before lowercase for each letter and
|
|
|
|
with no regard to whether an option takes an argument.
|
|
|
|
Put digits in ascending order before all letter options.
|
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
Manuals not documenting a command won't include the above fragment.
|
|
|
|
.Pp
|
|
|
|
Since the
|
|
|
|
.Em DESCRIPTION
|
|
|
|
section usually contains most of the text of a manual, longer manuals
|
|
|
|
often use the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ss
|
2012-10-18 09:55:16 +00:00
|
|
|
macro to form subsections.
|
|
|
|
In very long manuals, the
|
|
|
|
.Em DESCRIPTION
|
|
|
|
may be split into multiple sections, each started by an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sh
|
2012-10-18 09:55:16 +00:00
|
|
|
macro followed by a non-standard section name, and each having
|
|
|
|
several subsections, like in the present
|
|
|
|
.Nm
|
|
|
|
manual.
|
2014-11-22 18:08:25 +00:00
|
|
|
.It Em CONTEXT
|
|
|
|
This section lists the contexts in which functions can be called in section 9.
|
|
|
|
The contexts are autoconf, process, or interrupt.
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Em IMPLEMENTATION NOTES
|
|
|
|
Implementation-specific notes should be kept here.
|
|
|
|
This is useful when implementing standard functions that may have side
|
|
|
|
effects or notable algorithmic implications.
|
|
|
|
.It Em RETURN VALUES
|
|
|
|
This section documents the
|
|
|
|
return values of functions in sections 2, 3, and 9.
|
|
|
|
.Pp
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rv .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Em ENVIRONMENT
|
|
|
|
Lists the environment variables used by the utility,
|
|
|
|
and explains the syntax and semantics of their values.
|
|
|
|
The
|
|
|
|
.Xr environ 7
|
|
|
|
manual provides examples of typical content and formatting.
|
|
|
|
.Pp
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ev .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Em FILES
|
|
|
|
Documents files used.
|
|
|
|
It's helpful to document both the file name and a short description of how
|
|
|
|
the file is used (created, modified, etc.).
|
|
|
|
.Pp
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Pa .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Em EXIT STATUS
|
|
|
|
This section documents the
|
|
|
|
command exit status for section 1, 6, and 8 utilities.
|
|
|
|
Historically, this information was described in
|
|
|
|
.Em DIAGNOSTICS ,
|
|
|
|
a practise that is now discouraged.
|
|
|
|
.Pp
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ex .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Em EXAMPLES
|
|
|
|
Example usages.
|
|
|
|
This often contains snippets of well-formed, well-tested invocations.
|
|
|
|
Make sure that examples work properly!
|
|
|
|
.It Em DIAGNOSTICS
|
2014-11-22 18:08:25 +00:00
|
|
|
Documents error messages.
|
|
|
|
In section 4 and 9 manuals, these are usually messages printed by the
|
|
|
|
kernel to the console and to the kernel log.
|
|
|
|
In section 1, 6, 7, and 8, these are usually messages printed by
|
|
|
|
userland programs to the standard error output.
|
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
Historically, this section was used in place of
|
|
|
|
.Em EXIT STATUS
|
|
|
|
for manuals in sections 1, 6, and 8; however, this practise is
|
|
|
|
discouraged.
|
|
|
|
.Pp
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bl
|
2012-10-18 09:55:16 +00:00
|
|
|
.Fl diag .
|
|
|
|
.It Em ERRORS
|
2014-11-22 18:08:25 +00:00
|
|
|
Documents
|
|
|
|
.Xr errno 2
|
|
|
|
settings in sections 2, 3, 4, and 9.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Er .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Em SEE ALSO
|
|
|
|
References other manuals with related topics.
|
|
|
|
This section should exist for most manuals.
|
|
|
|
Cross-references should conventionally be ordered first by section, then
|
2014-12-02 07:34:06 +00:00
|
|
|
alphabetically (ignoring case).
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
References to other documentation concerning the topic of the manual page,
|
|
|
|
for example authoritative books or journal articles, may also be
|
|
|
|
provided in this section.
|
|
|
|
.Pp
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Xr .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Em STANDARDS
|
|
|
|
References any standards implemented or used.
|
|
|
|
If not adhering to any standards, the
|
|
|
|
.Em HISTORY
|
|
|
|
section should be used instead.
|
|
|
|
.Pp
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&St .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Em HISTORY
|
|
|
|
A brief history of the subject, including where it was first implemented,
|
|
|
|
and when it was ported to or reimplemented for the operating system at hand.
|
|
|
|
.It Em AUTHORS
|
|
|
|
Credits to the person or persons who wrote the code and/or documentation.
|
|
|
|
Authors should generally be noted by both name and email address.
|
|
|
|
.Pp
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&An .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Em CAVEATS
|
|
|
|
Common misuses and misunderstandings should be explained
|
|
|
|
in this section.
|
|
|
|
.It Em BUGS
|
|
|
|
Known bugs, limitations, and work-arounds should be described
|
|
|
|
in this section.
|
|
|
|
.It Em SECURITY CONSIDERATIONS
|
|
|
|
Documents any security precautions that operators should consider.
|
|
|
|
.El
|
|
|
|
.Sh MACRO OVERVIEW
|
|
|
|
This overview is sorted such that macros of similar purpose are listed
|
|
|
|
together, to help find the best macro for any given purpose.
|
|
|
|
Deprecated macros are not included in the overview, but can be found below
|
|
|
|
in the alphabetical
|
|
|
|
.Sx MACRO REFERENCE .
|
|
|
|
.Ss Document preamble and NAME section macros
|
|
|
|
.Bl -column "Brq, Bro, Brc" description
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Dd Ta document date: Cm $\&Mdocdate$ | Ar month day , year
|
|
|
|
.It Ic \&Dt Ta document title: Ar TITLE section Op Ar arch
|
|
|
|
.It Ic \&Os Ta operating system version: Op Ar system Op Ar version
|
|
|
|
.It Ic \&Nm Ta document name (one argument)
|
|
|
|
.It Ic \&Nd Ta document description (one line)
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Ss Sections and cross references
|
|
|
|
.Bl -column "Brq, Bro, Brc" description
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Sh Ta section header (one line)
|
|
|
|
.It Ic \&Ss Ta subsection header (one line)
|
|
|
|
.It Ic \&Sx Ta internal cross reference to a section or subsection
|
|
|
|
.It Ic \&Xr Ta cross reference to another manual page: Ar name section
|
2021-11-15 15:35:39 +00:00
|
|
|
.It Ic \&Tg Ta tag the definition of a Ar term Pq <= 1 arguments
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Pp Ta start a text paragraph (no arguments)
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Ss Displays and lists
|
|
|
|
.Bl -column "Brq, Bro, Brc" description
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Bd , \&Ed Ta display block:
|
2012-10-18 09:55:16 +00:00
|
|
|
.Fl Ar type
|
|
|
|
.Op Fl offset Ar width
|
|
|
|
.Op Fl compact
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&D1 Ta indented display (one line)
|
|
|
|
.It Ic \&Dl Ta indented literal display (one line)
|
|
|
|
.It Ic \&Ql Ta in-line literal display: Ql text
|
|
|
|
.It Ic \&Bl , \&El Ta list block:
|
2012-10-18 09:55:16 +00:00
|
|
|
.Fl Ar type
|
|
|
|
.Op Fl width Ar val
|
|
|
|
.Op Fl offset Ar val
|
|
|
|
.Op Fl compact
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&It Ta list item (syntax depends on Fl Ar type )
|
|
|
|
.It Ic \&Ta Ta table cell separator in Ic \&Bl Fl column No lists
|
|
|
|
.It Ic \&Rs , \&%* , \&Re Ta bibliographic block (references)
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Ss Spacing control
|
|
|
|
.Bl -column "Brq, Bro, Brc" description
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Pf Ta prefix, no following horizontal space (one argument)
|
|
|
|
.It Ic \&Ns Ta roman font, no preceding horizontal space (no arguments)
|
|
|
|
.It Ic \&Ap Ta apostrophe without surrounding whitespace (no arguments)
|
|
|
|
.It Ic \&Sm Ta switch horizontal spacing mode: Op Cm on | off
|
|
|
|
.It Ic \&Bk , \&Ek Ta keep block: Fl words
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
2017-07-31 19:17:54 +00:00
|
|
|
.Ss Semantic markup for command line utilities
|
2012-10-18 09:55:16 +00:00
|
|
|
.Bl -column "Brq, Bro, Brc" description
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Nm Ta start a SYNOPSIS block with the name of a utility
|
|
|
|
.It Ic \&Fl Ta command line options (flags) (>=0 arguments)
|
|
|
|
.It Ic \&Cm Ta command modifier (>0 arguments)
|
|
|
|
.It Ic \&Ar Ta command arguments (>=0 arguments)
|
|
|
|
.It Ic \&Op , \&Oo , \&Oc Ta optional syntax elements (enclosure)
|
|
|
|
.It Ic \&Ic Ta internal or interactive command (>0 arguments)
|
|
|
|
.It Ic \&Ev Ta environmental variable (>0 arguments)
|
|
|
|
.It Ic \&Pa Ta file system path (>=0 arguments)
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
2017-07-31 19:17:54 +00:00
|
|
|
.Ss Semantic markup for function libraries
|
2012-10-18 09:55:16 +00:00
|
|
|
.Bl -column "Brq, Bro, Brc" description
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Lb Ta function library (one argument)
|
|
|
|
.It Ic \&In Ta include file (one argument)
|
|
|
|
.It Ic \&Fd Ta other preprocessor directive (>0 arguments)
|
|
|
|
.It Ic \&Ft Ta function type (>0 arguments)
|
|
|
|
.It Ic \&Fo , \&Fc Ta function block: Ar funcname
|
|
|
|
.It Ic \&Fn Ta function name: Ar funcname Op Ar argument ...
|
|
|
|
.It Ic \&Fa Ta function argument (>0 arguments)
|
|
|
|
.It Ic \&Vt Ta variable type (>0 arguments)
|
|
|
|
.It Ic \&Va Ta variable name (>0 arguments)
|
|
|
|
.It Ic \&Dv Ta defined variable or preprocessor constant (>0 arguments)
|
|
|
|
.It Ic \&Er Ta error constant (>0 arguments)
|
|
|
|
.It Ic \&Ev Ta environmental variable (>0 arguments)
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
2017-07-31 19:17:54 +00:00
|
|
|
.Ss Various semantic markup
|
2012-10-18 09:55:16 +00:00
|
|
|
.Bl -column "Brq, Bro, Brc" description
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&An Ta author name (>0 arguments)
|
|
|
|
.It Ic \&Lk Ta hyperlink: Ar uri Op Ar display_name
|
|
|
|
.It Ic \&Mt Ta Do mailto Dc hyperlink: Ar localpart Ns @ Ns Ar domain
|
|
|
|
.It Ic \&Cd Ta kernel configuration declaration (>0 arguments)
|
|
|
|
.It Ic \&Ad Ta memory address (>0 arguments)
|
|
|
|
.It Ic \&Ms Ta mathematical symbol (>0 arguments)
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Ss Physical markup
|
|
|
|
.Bl -column "Brq, Bro, Brc" description
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Em Ta italic font or underline (emphasis) (>0 arguments)
|
|
|
|
.It Ic \&Sy Ta boldface font (symbolic) (>0 arguments)
|
|
|
|
.It Ic \&No Ta return to roman font (normal) (>0 arguments)
|
|
|
|
.It Ic \&Bf , \&Ef Ta font block: Fl Ar type | Cm \&Em | \&Li | \&Sy
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Ss Physical enclosures
|
|
|
|
.Bl -column "Brq, Bro, Brc" description
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Dq , \&Do , \&Dc Ta enclose in typographic double quotes: Dq text
|
|
|
|
.It Ic \&Qq , \&Qo , \&Qc Ta enclose in typewriter double quotes: Qq text
|
|
|
|
.It Ic \&Sq , \&So , \&Sc Ta enclose in single quotes: Sq text
|
|
|
|
.It Ic \&Pq , \&Po , \&Pc Ta enclose in parentheses: Pq text
|
|
|
|
.It Ic \&Bq , \&Bo , \&Bc Ta enclose in square brackets: Bq text
|
|
|
|
.It Ic \&Brq , \&Bro , \&Brc Ta enclose in curly braces: Brq text
|
|
|
|
.It Ic \&Aq , \&Ao , \&Ac Ta enclose in angle brackets: Aq text
|
|
|
|
.It Ic \&Eo , \&Ec Ta generic enclosure
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Ss Text production
|
|
|
|
.Bl -column "Brq, Bro, Brc" description
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ex Fl std Ta standard command exit values: Op Ar utility ...
|
|
|
|
.It Ic \&Rv Fl std Ta standard function return values: Op Ar function ...
|
|
|
|
.It Ic \&St Ta reference to a standards document (one argument)
|
|
|
|
.It Ic \&At Ta At
|
|
|
|
.It Ic \&Bx Ta Bx
|
|
|
|
.It Ic \&Bsx Ta Bsx
|
|
|
|
.It Ic \&Nx Ta Nx
|
|
|
|
.It Ic \&Fx Ta Fx
|
|
|
|
.It Ic \&Ox Ta Ox
|
|
|
|
.It Ic \&Dx Ta Dx
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Sh MACRO REFERENCE
|
|
|
|
This section is a canonical reference of all macros, arranged
|
|
|
|
alphabetically.
|
|
|
|
For the scoping of individual macros, see
|
|
|
|
.Sx MACRO SYNTAX .
|
2019-03-29 13:13:30 +00:00
|
|
|
.Bl -tag -width 3n
|
|
|
|
.It Ic \&%A Ar first_name ... last_name
|
2012-10-18 09:55:16 +00:00
|
|
|
Author name of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
|
|
|
Multiple authors should each be accorded their own
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \%%A
|
2012-10-18 09:55:16 +00:00
|
|
|
line.
|
|
|
|
Author names should be ordered with full or abbreviated forename(s)
|
|
|
|
first, then full surname.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%B Ar title
|
2012-10-18 09:55:16 +00:00
|
|
|
Book title of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
|
|
|
This macro may also be used in a non-bibliographic context when
|
|
|
|
referring to book titles.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%C Ar location
|
2012-10-18 09:55:16 +00:00
|
|
|
Publication city or location of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%D Oo Ar month day , Oc Ar year
|
2012-10-18 09:55:16 +00:00
|
|
|
Publication date of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
2019-03-29 13:13:30 +00:00
|
|
|
Provide the full English name of the
|
|
|
|
.Ar month
|
|
|
|
and all four digits of the
|
2012-10-18 09:55:16 +00:00
|
|
|
.Ar year .
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%I Ar name
|
2012-10-18 09:55:16 +00:00
|
|
|
Publisher or issuer name of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%J Ar name
|
2012-10-18 09:55:16 +00:00
|
|
|
Journal name of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%N Ar number
|
2012-10-18 09:55:16 +00:00
|
|
|
Issue number (usually for journals) of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%O Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
Optional information of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%P Ar number
|
2012-10-18 09:55:16 +00:00
|
|
|
Book or journal page number of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
2019-07-26 09:51:35 +00:00
|
|
|
Conventionally, the argument starts with
|
|
|
|
.Ql p.\&
|
|
|
|
for a single page or
|
|
|
|
.Ql pp.\&
|
|
|
|
for a range of pages, for example:
|
|
|
|
.Pp
|
|
|
|
.Dl .%P pp. 42\e(en47
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%Q Ar name
|
2012-10-18 09:55:16 +00:00
|
|
|
Institutional author (school, government, etc.) of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
|
|
|
Multiple institutional authors should each be accorded their own
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&%Q
|
2012-10-18 09:55:16 +00:00
|
|
|
line.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%R Ar name
|
2012-10-18 09:55:16 +00:00
|
|
|
Technical report name of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%T Ar title
|
2012-10-18 09:55:16 +00:00
|
|
|
Article title of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
|
|
|
This macro may also be used in a non-bibliographical context when
|
|
|
|
referring to article titles.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%U Ar protocol Ns :// Ns Ar path
|
2012-10-18 09:55:16 +00:00
|
|
|
URI of reference document.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%V Ar number
|
2012-10-18 09:55:16 +00:00
|
|
|
Volume number of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ac
|
2012-10-18 09:55:16 +00:00
|
|
|
Close an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ao
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
|
|
|
Does not have any tail arguments.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ad
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ad Ar address
|
2012-10-18 09:55:16 +00:00
|
|
|
Memory address.
|
|
|
|
Do not use this for postal addresses.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Ad [0,$]
|
|
|
|
.Dl \&.Ad 0x00000000
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg An
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&An Fl split | nosplit | Ar first_name ... last_name
|
2012-10-18 09:55:16 +00:00
|
|
|
Author name.
|
|
|
|
Can be used both for the authors of the program, function, or driver
|
|
|
|
documented in the manual, or for the authors of the manual itself.
|
|
|
|
Requires either the name of an author or one of the following arguments:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "-nosplitX" -offset indent -compact
|
|
|
|
.It Fl split
|
|
|
|
Start a new output line before each subsequent invocation of
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&An .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Fl nosplit
|
|
|
|
The opposite of
|
|
|
|
.Fl split .
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The default is
|
|
|
|
.Fl nosplit .
|
|
|
|
The effect of selecting either of the
|
|
|
|
.Fl split
|
|
|
|
modes ends at the beginning of the
|
|
|
|
.Em AUTHORS
|
|
|
|
section.
|
|
|
|
In the
|
|
|
|
.Em AUTHORS
|
|
|
|
section, the default is
|
|
|
|
.Fl nosplit
|
|
|
|
for the first author listing and
|
|
|
|
.Fl split
|
|
|
|
for all other author listings.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.An -nosplit
|
2014-01-31 19:59:03 +00:00
|
|
|
.Dl \&.An Kristaps Dzonsons \&Aq \&Mt kristaps@bsd.lv
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ao Ar block
|
2012-10-18 09:55:16 +00:00
|
|
|
Begin a block enclosed by angle brackets.
|
|
|
|
Does not have any head arguments.
|
2018-09-20 07:33:14 +00:00
|
|
|
This macro is almost never useful.
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Aq
|
2018-09-20 07:33:14 +00:00
|
|
|
for more details.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ap
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ap
|
2012-10-18 09:55:16 +00:00
|
|
|
Inserts an apostrophe without any surrounding whitespace.
|
|
|
|
This is generally used as a grammatical device when referring to the verb
|
|
|
|
form of a function.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Fn execve \&Ap d
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Aq
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Aq Ar line
|
|
|
|
Enclose the rest of the input line in angle brackets.
|
2018-09-20 07:33:14 +00:00
|
|
|
The only important use case is for email addresses.
|
|
|
|
See
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Mt
|
2018-09-20 07:33:14 +00:00
|
|
|
for an example.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
2018-09-20 07:33:14 +00:00
|
|
|
Occasionally, it is used for names of characters and keys, for example:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
Press the
|
|
|
|
\&.Aq escape
|
|
|
|
key to ...
|
|
|
|
.Ed
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
2018-09-20 07:33:14 +00:00
|
|
|
For URIs, use
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Lk
|
2018-09-20 07:33:14 +00:00
|
|
|
instead, and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&In
|
2018-09-20 07:33:14 +00:00
|
|
|
for
|
|
|
|
.Dq #include
|
|
|
|
directives.
|
|
|
|
Never wrap
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ar
|
2018-09-20 07:33:14 +00:00
|
|
|
in
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Aq .
|
2018-09-20 07:33:14 +00:00
|
|
|
.Pp
|
|
|
|
Since
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Aq
|
2018-09-20 07:33:14 +00:00
|
|
|
usually renders with non-ASCII characters in non-ASCII output modes,
|
|
|
|
do not use it where the ASCII characters
|
|
|
|
.Sq <
|
|
|
|
and
|
|
|
|
.Sq >
|
|
|
|
are required as syntax elements.
|
|
|
|
Instead, use these characters directly in such cases, combining them
|
|
|
|
with the macros
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Pf ,
|
|
|
|
.Ic \&Ns ,
|
2012-10-18 09:55:16 +00:00
|
|
|
or
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Eo
|
2018-09-20 07:33:14 +00:00
|
|
|
as needed.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ao .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ar
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ar Op Ar placeholder ...
|
2012-10-18 09:55:16 +00:00
|
|
|
Command arguments.
|
|
|
|
If an argument is not provided, the string
|
|
|
|
.Dq file ...\&
|
|
|
|
is used as a default.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl ".Fl o Ar file"
|
|
|
|
.Dl ".Ar"
|
|
|
|
.Dl ".Ar arg1 , arg2 ."
|
|
|
|
.Pp
|
|
|
|
The arguments to the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ar
|
2012-10-18 09:55:16 +00:00
|
|
|
macro are names and placeholders for command arguments;
|
|
|
|
for fixed strings to be passed verbatim as arguments, use
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fl
|
2012-10-18 09:55:16 +00:00
|
|
|
or
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Cm .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg At
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&At Op Ar version
|
2014-01-31 19:59:03 +00:00
|
|
|
Formats an
|
|
|
|
.At
|
|
|
|
version.
|
2012-10-18 09:55:16 +00:00
|
|
|
Accepts one optional argument:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "v[1-7] | 32vX" -offset indent -compact
|
|
|
|
.It Cm v[1-7] | 32v
|
|
|
|
A version of
|
|
|
|
.At .
|
|
|
|
.It Cm III
|
|
|
|
.At III .
|
2017-07-31 19:17:54 +00:00
|
|
|
.It Cm V | V.[1-4]
|
2012-10-18 09:55:16 +00:00
|
|
|
A version of
|
|
|
|
.At V .
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Note that these arguments do not begin with a hyphen.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.At
|
|
|
|
.Dl \&.At III
|
|
|
|
.Dl \&.At V.1
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bsx ,
|
|
|
|
.Ic \&Bx ,
|
|
|
|
.Ic \&Dx ,
|
|
|
|
.Ic \&Fx ,
|
|
|
|
.Ic \&Nx ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ox .
|
|
|
|
.It Ic \&Bc
|
2012-10-18 09:55:16 +00:00
|
|
|
Close a
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bo
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
|
|
|
Does not have any tail arguments.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Bd
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Bd Fl Ns Ar type Oo Fl offset Ar width Oc Op Fl compact
|
2012-10-18 09:55:16 +00:00
|
|
|
Begin a display block.
|
|
|
|
Display blocks are used to select a different indentation and
|
|
|
|
justification than the one used by the surrounding text.
|
|
|
|
They may contain both macro lines and text lines.
|
|
|
|
By default, a display block is preceded by a vertical space.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar type
|
|
|
|
must be one of the following:
|
|
|
|
.Bl -tag -width 13n -offset indent
|
|
|
|
.It Fl centered
|
2015-03-02 16:45:41 +00:00
|
|
|
Produce one output line from each input line, and center-justify each line.
|
2012-10-18 09:55:16 +00:00
|
|
|
Using this display type is not recommended; many
|
|
|
|
.Nm
|
|
|
|
implementations render it poorly.
|
|
|
|
.It Fl filled
|
|
|
|
Change the positions of line breaks to fill each line, and left- and
|
|
|
|
right-justify the resulting block.
|
|
|
|
.It Fl literal
|
|
|
|
Produce one output line from each input line,
|
|
|
|
and do not justify the block at all.
|
|
|
|
Preserve white space as it appears in the input.
|
|
|
|
Always use a constant-width font.
|
|
|
|
Use this for displaying source code.
|
|
|
|
.It Fl ragged
|
|
|
|
Change the positions of line breaks to fill each line, and left-justify
|
|
|
|
the resulting block.
|
|
|
|
.It Fl unfilled
|
|
|
|
The same as
|
|
|
|
.Fl literal ,
|
|
|
|
but using the same font as for normal text, which is a variable width font
|
|
|
|
if supported by the output device.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar type
|
|
|
|
must be provided first.
|
|
|
|
Additional arguments may follow:
|
|
|
|
.Bl -tag -width 13n -offset indent
|
|
|
|
.It Fl offset Ar width
|
|
|
|
Indent the display by the
|
|
|
|
.Ar width ,
|
|
|
|
which may be one of the following:
|
|
|
|
.Bl -item
|
|
|
|
.It
|
|
|
|
One of the pre-defined strings
|
|
|
|
.Cm indent ,
|
|
|
|
the width of a standard indentation (six constant width characters);
|
|
|
|
.Cm indent-two ,
|
|
|
|
twice
|
|
|
|
.Cm indent ;
|
|
|
|
.Cm left ,
|
|
|
|
which has no effect;
|
|
|
|
.Cm right ,
|
|
|
|
which justifies to the right margin; or
|
|
|
|
.Cm center ,
|
2015-03-02 16:45:41 +00:00
|
|
|
which aligns around an imagined center axis.
|
2012-10-18 09:55:16 +00:00
|
|
|
.It
|
|
|
|
A macro invocation, which selects a predefined width
|
|
|
|
associated with that macro.
|
|
|
|
The most popular is the imaginary macro
|
|
|
|
.Ar \&Ds ,
|
|
|
|
which resolves to
|
|
|
|
.Sy 6n .
|
|
|
|
.It
|
2014-01-31 19:59:03 +00:00
|
|
|
A scaling width as described in
|
|
|
|
.Xr roff 7 .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It
|
|
|
|
An arbitrary string, which indents by the length of this string.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
When the argument is missing,
|
|
|
|
.Fl offset
|
|
|
|
is ignored.
|
|
|
|
.It Fl compact
|
|
|
|
Do not assert vertical space before the display.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Bd \-literal \-offset indent \-compact
|
|
|
|
Hello world.
|
|
|
|
\&.Ed
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&D1
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dl .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Bf
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Bf Fl emphasis | literal | symbolic | Cm \&Em | \&Li | \&Sy
|
2012-10-18 09:55:16 +00:00
|
|
|
Change the font mode for a scoped block of text.
|
|
|
|
The
|
|
|
|
.Fl emphasis
|
|
|
|
and
|
|
|
|
.Cm \&Em
|
|
|
|
argument are equivalent, as are
|
|
|
|
.Fl symbolic
|
|
|
|
and
|
|
|
|
.Cm \&Sy ,
|
|
|
|
and
|
|
|
|
.Fl literal
|
|
|
|
and
|
|
|
|
.Cm \&Li .
|
|
|
|
Without an argument, this macro does nothing.
|
|
|
|
The font mode continues until broken by a new font mode in a nested
|
|
|
|
scope or
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ef
|
2012-10-18 09:55:16 +00:00
|
|
|
is encountered.
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Li ,
|
|
|
|
.Ic \&Ef ,
|
|
|
|
.Ic \&Em ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sy .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Bk
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Bk Fl words
|
2012-10-18 09:55:16 +00:00
|
|
|
For each macro, keep its output together on the same output line,
|
|
|
|
until the end of the macro or the end of the input line is reached,
|
|
|
|
whichever comes first.
|
|
|
|
Line breaks in text lines are unaffected.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Fl words
|
|
|
|
argument is required; additional arguments are ignored.
|
|
|
|
.Pp
|
|
|
|
The following example will not break within each
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Op
|
2012-10-18 09:55:16 +00:00
|
|
|
macro line:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Bk \-words
|
|
|
|
\&.Op Fl f Ar flags
|
|
|
|
\&.Op Fl o Ar output
|
|
|
|
\&.Ek
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Be careful in using over-long lines within a keep block!
|
|
|
|
Doing so will clobber the right margin.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Bl
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Xo
|
|
|
|
.Ic \&Bl
|
2012-10-18 09:55:16 +00:00
|
|
|
.Fl Ns Ar type
|
|
|
|
.Op Fl width Ar val
|
|
|
|
.Op Fl offset Ar val
|
|
|
|
.Op Fl compact
|
2019-03-29 13:13:30 +00:00
|
|
|
.Op Ar col ...
|
|
|
|
.Xc
|
|
|
|
Begin a list.
|
|
|
|
Lists consist of items specified using the
|
|
|
|
.Ic \&It
|
|
|
|
macro, containing a head or a body or both.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
The list
|
|
|
|
.Ar type
|
|
|
|
is mandatory and must be specified first.
|
|
|
|
The
|
|
|
|
.Fl width
|
|
|
|
and
|
|
|
|
.Fl offset
|
2014-12-02 07:34:06 +00:00
|
|
|
arguments accept macro names as described for
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bd
|
2014-12-02 07:34:06 +00:00
|
|
|
.Fl offset ,
|
|
|
|
scaling widths as described in
|
|
|
|
.Xr roff 7 ,
|
2012-10-18 09:55:16 +00:00
|
|
|
or use the length of the given string.
|
|
|
|
The
|
|
|
|
.Fl offset
|
|
|
|
is a global indentation for the whole list, affecting both item heads
|
|
|
|
and bodies.
|
|
|
|
For those list types supporting it, the
|
|
|
|
.Fl width
|
|
|
|
argument requests an additional indentation of item bodies,
|
|
|
|
to be added to the
|
|
|
|
.Fl offset .
|
|
|
|
Unless the
|
|
|
|
.Fl compact
|
|
|
|
argument is specified, list entries are separated by vertical space.
|
|
|
|
.Pp
|
|
|
|
A list must specify one of the following list types:
|
|
|
|
.Bl -tag -width 12n -offset indent
|
|
|
|
.It Fl bullet
|
|
|
|
No item heads can be specified, but a bullet will be printed at the head
|
|
|
|
of each item.
|
|
|
|
Item bodies start on the same output line as the bullet
|
|
|
|
and are indented according to the
|
|
|
|
.Fl width
|
|
|
|
argument.
|
|
|
|
.It Fl column
|
|
|
|
A columnated list.
|
|
|
|
The
|
|
|
|
.Fl width
|
2017-02-19 17:41:20 +00:00
|
|
|
argument has no effect; instead, the string length of each argument
|
|
|
|
specifies the width of one column.
|
2012-10-18 09:55:16 +00:00
|
|
|
If the first line of the body of a
|
|
|
|
.Fl column
|
|
|
|
list is not an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
macro line,
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
contexts spanning one input line each are implied until an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
macro line is encountered, at which point items start being interpreted as
|
|
|
|
described in the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
documentation.
|
|
|
|
.It Fl dash
|
|
|
|
Like
|
|
|
|
.Fl bullet ,
|
|
|
|
except that dashes are used in place of bullets.
|
|
|
|
.It Fl diag
|
|
|
|
Like
|
|
|
|
.Fl inset ,
|
|
|
|
except that item heads are not parsed for macro invocations.
|
|
|
|
Most often used in the
|
|
|
|
.Em DIAGNOSTICS
|
|
|
|
section with error constants in the item heads.
|
|
|
|
.It Fl enum
|
|
|
|
A numbered list.
|
|
|
|
No item heads can be specified.
|
|
|
|
Formatted like
|
|
|
|
.Fl bullet ,
|
|
|
|
except that cardinal numbers are used in place of bullets,
|
|
|
|
starting at 1.
|
|
|
|
.It Fl hang
|
|
|
|
Like
|
|
|
|
.Fl tag ,
|
|
|
|
except that the first lines of item bodies are not indented, but follow
|
|
|
|
the item heads like in
|
|
|
|
.Fl inset
|
|
|
|
lists.
|
|
|
|
.It Fl hyphen
|
|
|
|
Synonym for
|
|
|
|
.Fl dash .
|
|
|
|
.It Fl inset
|
|
|
|
Item bodies follow items heads on the same line, using normal inter-word
|
|
|
|
spacing.
|
|
|
|
Bodies are not indented, and the
|
|
|
|
.Fl width
|
|
|
|
argument is ignored.
|
|
|
|
.It Fl item
|
|
|
|
No item heads can be specified, and none are printed.
|
|
|
|
Bodies are not indented, and the
|
|
|
|
.Fl width
|
|
|
|
argument is ignored.
|
|
|
|
.It Fl ohang
|
|
|
|
Item bodies start on the line following item heads and are not indented.
|
|
|
|
The
|
|
|
|
.Fl width
|
|
|
|
argument is ignored.
|
|
|
|
.It Fl tag
|
|
|
|
Item bodies are indented according to the
|
|
|
|
.Fl width
|
|
|
|
argument.
|
|
|
|
When an item head fits inside the indentation, the item body follows
|
|
|
|
this head on the same output line.
|
|
|
|
Otherwise, the body starts on the output line following the head.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Lists may be nested within lists and displays.
|
|
|
|
Nesting of
|
|
|
|
.Fl column
|
|
|
|
and
|
|
|
|
.Fl enum
|
|
|
|
lists may not be portable.
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&El
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It .
|
|
|
|
.It Ic \&Bo Ar block
|
2012-10-18 09:55:16 +00:00
|
|
|
Begin a block enclosed by square brackets.
|
|
|
|
Does not have any head arguments.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Bd -literal -offset indent -compact
|
|
|
|
\&.Bo 1 ,
|
|
|
|
\&.Dv BUFSIZ \&Bc
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bq .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Bq
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Bq Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
Encloses its arguments in square brackets.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Bq 1 , \&Dv BUFSIZ
|
|
|
|
.Pp
|
|
|
|
.Em Remarks :
|
|
|
|
this macro is sometimes abused to emulate optional arguments for
|
|
|
|
commands; the correct macros to use for this purpose are
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Op ,
|
|
|
|
.Ic \&Oo ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Oc .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bo .
|
|
|
|
.It Ic \&Brc
|
2012-10-18 09:55:16 +00:00
|
|
|
Close a
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bro
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
|
|
|
Does not have any tail arguments.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Bro Ar block
|
2012-10-18 09:55:16 +00:00
|
|
|
Begin a block enclosed by curly braces.
|
|
|
|
Does not have any head arguments.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Bd -literal -offset indent -compact
|
|
|
|
\&.Bro 1 , ... ,
|
|
|
|
\&.Va n \&Brc
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Brq .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Brq
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Brq Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
Encloses its arguments in curly braces.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Brq 1 , ... , \&Va n
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bro .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Bsx
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Bsx Op Ar version
|
2014-01-31 19:59:03 +00:00
|
|
|
Format the
|
|
|
|
.Bsx
|
|
|
|
version provided as an argument, or a default value if
|
2012-10-18 09:55:16 +00:00
|
|
|
no argument is provided.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Bsx 1.0
|
|
|
|
.Dl \&.Bsx
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&At ,
|
|
|
|
.Ic \&Bx ,
|
|
|
|
.Ic \&Dx ,
|
|
|
|
.Ic \&Fx ,
|
|
|
|
.Ic \&Nx ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ox .
|
|
|
|
.It Ic \&Bt
|
2014-11-22 18:08:25 +00:00
|
|
|
Supported only for compatibility, do not use this in new manuals.
|
2012-10-18 09:55:16 +00:00
|
|
|
Prints
|
|
|
|
.Dq is currently in beta test.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Bx
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Bx Op Ar version Op Ar variant
|
2014-01-31 19:59:03 +00:00
|
|
|
Format the
|
|
|
|
.Bx
|
|
|
|
version provided as an argument, or a default value if no
|
2012-10-18 09:55:16 +00:00
|
|
|
argument is provided.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Bx 4.3 Tahoe
|
|
|
|
.Dl \&.Bx 4.4
|
|
|
|
.Dl \&.Bx
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&At ,
|
|
|
|
.Ic \&Bsx ,
|
|
|
|
.Ic \&Dx ,
|
|
|
|
.Ic \&Fx ,
|
|
|
|
.Ic \&Nx ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ox .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Cd
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Cd Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
Kernel configuration declaration.
|
|
|
|
This denotes strings accepted by
|
|
|
|
.Xr config 8 .
|
|
|
|
It is most often used in section 4 manual pages.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Cd device le0 at scode?
|
|
|
|
.Pp
|
|
|
|
.Em Remarks :
|
|
|
|
this macro is commonly abused by using quoted literals to retain
|
|
|
|
whitespace and align consecutive
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Cd
|
2012-10-18 09:55:16 +00:00
|
|
|
declarations.
|
|
|
|
This practise is discouraged.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Cm
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Cm Ar keyword ...
|
2012-10-18 09:55:16 +00:00
|
|
|
Command modifiers.
|
2019-07-26 09:51:35 +00:00
|
|
|
Typically used for fixed strings passed as arguments to interactive
|
|
|
|
commands, to commands in interpreted scripts, or to configuration
|
|
|
|
file directives, unless
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fl
|
2012-10-18 09:55:16 +00:00
|
|
|
is more appropriate.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl ".Nm mt Fl f Ar device Cm rewind"
|
|
|
|
.Dl ".Nm ps Fl o Cm pid , Ns Cm command"
|
|
|
|
.Dl ".Nm dd Cm if= Ns Ar file1 Cm of= Ns Ar file2"
|
2019-07-26 09:51:35 +00:00
|
|
|
.Dl ".Ic set Fl o Cm vi"
|
|
|
|
.Dl ".Ic lookup Cm file bind"
|
|
|
|
.Dl ".Ic permit Ar identity Op Cm as Ar target"
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg D1
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&D1 Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
One-line indented display.
|
|
|
|
This is formatted by the default rules and is useful for simple indented
|
|
|
|
statements.
|
|
|
|
It is followed by a newline.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.D1 \&Fl abcdefgh
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bd
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dl .
|
|
|
|
.It Ic \&Db
|
2014-12-02 07:34:06 +00:00
|
|
|
This macro is obsolete.
|
|
|
|
No replacement is needed.
|
|
|
|
It is ignored by
|
|
|
|
.Xr mandoc 1
|
|
|
|
and groff including its arguments.
|
|
|
|
It was formerly used to toggle a debugging mode.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Dc
|
2012-10-18 09:55:16 +00:00
|
|
|
Close a
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Do
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
|
|
|
Does not have any tail arguments.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Dd
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Dd Cm $\&Mdocdate$ | Ar month day , year
|
2021-11-15 15:35:39 +00:00
|
|
|
Document date for display in the page footer,
|
|
|
|
by convention the date of the last change.
|
2012-10-18 09:55:16 +00:00
|
|
|
This is the mandatory first macro of any
|
|
|
|
.Nm
|
|
|
|
manual.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar month
|
|
|
|
is the full English month name, the
|
|
|
|
.Ar day
|
2018-09-20 07:33:14 +00:00
|
|
|
is an integer number, and the
|
2012-10-18 09:55:16 +00:00
|
|
|
.Ar year
|
|
|
|
is the full four-digit year.
|
|
|
|
.Pp
|
|
|
|
Other arguments are not portable; the
|
|
|
|
.Xr mandoc 1
|
|
|
|
utility handles them as follows:
|
|
|
|
.Bl -dash -offset 3n -compact
|
|
|
|
.It
|
|
|
|
To have the date automatically filled in by the
|
|
|
|
.Ox
|
|
|
|
version of
|
|
|
|
.Xr cvs 1 ,
|
|
|
|
the special string
|
|
|
|
.Dq $\&Mdocdate$
|
|
|
|
can be given as an argument.
|
|
|
|
.It
|
2014-11-22 18:08:25 +00:00
|
|
|
The traditional, purely numeric
|
|
|
|
.Xr man 7
|
|
|
|
format
|
|
|
|
.Ar year Ns \(en Ns Ar month Ns \(en Ns Ar day
|
|
|
|
is accepted, too.
|
2012-10-18 09:55:16 +00:00
|
|
|
.It
|
|
|
|
If a date string cannot be parsed, it is used verbatim.
|
|
|
|
.It
|
|
|
|
If no date string is given, the current date is used.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Dd $\&Mdocdate$
|
2018-09-20 07:33:14 +00:00
|
|
|
.Dl \&.Dd $\&Mdocdate: July 2 2018$
|
|
|
|
.Dl \&.Dd July 2, 2018
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dt
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Os .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Dl
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Dl Ar line
|
2014-12-02 07:34:06 +00:00
|
|
|
One-line indented display.
|
2012-10-18 09:55:16 +00:00
|
|
|
This is formatted as literal text and is useful for commands and
|
|
|
|
invocations.
|
|
|
|
It is followed by a newline.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Dl % mandoc mdoc.7 \e(ba less
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ql ,
|
|
|
|
.Ic \&Bd Fl literal ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&D1 .
|
|
|
|
.It Ic \&Do Ar block
|
2012-10-18 09:55:16 +00:00
|
|
|
Begin a block enclosed by double quotes.
|
|
|
|
Does not have any head arguments.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Bd -literal -offset indent -compact
|
|
|
|
\&.Do
|
|
|
|
April is the cruellest month
|
|
|
|
\&.Dc
|
|
|
|
\e(em T.S. Eliot
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dq .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Dq
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Dq Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
Encloses its arguments in
|
|
|
|
.Dq typographic
|
|
|
|
double-quotes.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Bd -literal -offset indent -compact
|
|
|
|
\&.Dq April is the cruellest month
|
|
|
|
\e(em T.S. Eliot
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Qq ,
|
|
|
|
.Ic \&Sq ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Do .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Dt
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Dt Ar TITLE section Op Ar arch
|
2014-11-22 18:08:25 +00:00
|
|
|
Document title for display in the page header.
|
2012-10-18 09:55:16 +00:00
|
|
|
This is the mandatory second macro of any
|
|
|
|
.Nm
|
|
|
|
file.
|
|
|
|
.Pp
|
|
|
|
Its arguments are as follows:
|
2014-11-22 18:08:25 +00:00
|
|
|
.Bl -tag -width section -offset 2n
|
|
|
|
.It Ar TITLE
|
2012-10-18 09:55:16 +00:00
|
|
|
The document's title (name), defaulting to
|
2014-11-22 18:08:25 +00:00
|
|
|
.Dq UNTITLED
|
2012-10-18 09:55:16 +00:00
|
|
|
if unspecified.
|
2014-11-22 18:08:25 +00:00
|
|
|
To achieve a uniform appearance of page header lines,
|
|
|
|
it should by convention be all caps.
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Ar section
|
|
|
|
The manual section.
|
|
|
|
This may be one of
|
2014-11-22 18:08:25 +00:00
|
|
|
.Cm 1
|
2015-03-02 16:45:41 +00:00
|
|
|
.Pq General Commands ,
|
2014-11-22 18:08:25 +00:00
|
|
|
.Cm 2
|
2015-03-02 16:45:41 +00:00
|
|
|
.Pq System Calls ,
|
2014-11-22 18:08:25 +00:00
|
|
|
.Cm 3
|
2015-03-02 16:45:41 +00:00
|
|
|
.Pq Library Functions ,
|
2014-11-22 18:08:25 +00:00
|
|
|
.Cm 3p
|
2015-03-02 16:45:41 +00:00
|
|
|
.Pq Perl Library ,
|
2014-11-22 18:08:25 +00:00
|
|
|
.Cm 4
|
2015-03-02 16:45:41 +00:00
|
|
|
.Pq Device Drivers ,
|
2014-11-22 18:08:25 +00:00
|
|
|
.Cm 5
|
2015-03-02 16:45:41 +00:00
|
|
|
.Pq File Formats ,
|
2014-11-22 18:08:25 +00:00
|
|
|
.Cm 6
|
2015-03-02 16:45:41 +00:00
|
|
|
.Pq Games ,
|
2014-11-22 18:08:25 +00:00
|
|
|
.Cm 7
|
2015-03-02 16:45:41 +00:00
|
|
|
.Pq Miscellaneous Information ,
|
2014-11-22 18:08:25 +00:00
|
|
|
.Cm 8
|
2015-03-02 16:45:41 +00:00
|
|
|
.Pq System Manager's Manual ,
|
2012-10-18 09:55:16 +00:00
|
|
|
or
|
2015-03-02 16:45:41 +00:00
|
|
|
.Cm 9
|
|
|
|
.Pq Kernel Developer's Manual .
|
2012-10-18 09:55:16 +00:00
|
|
|
It should correspond to the manual's filename suffix and defaults to
|
2014-11-22 18:08:25 +00:00
|
|
|
the empty string if unspecified.
|
2012-10-18 09:55:16 +00:00
|
|
|
.It Ar arch
|
|
|
|
This specifies the machine architecture a manual page applies to,
|
|
|
|
where relevant, for example
|
|
|
|
.Cm alpha ,
|
|
|
|
.Cm amd64 ,
|
|
|
|
.Cm i386 ,
|
|
|
|
or
|
|
|
|
.Cm sparc64 .
|
2014-12-02 07:34:06 +00:00
|
|
|
The list of valid architectures varies by operating system.
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Dt FOO 1
|
|
|
|
.Dl \&.Dt FOO 9 i386
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dd
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Os .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Dv
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Dv Ar identifier ...
|
2012-10-18 09:55:16 +00:00
|
|
|
Defined variables such as preprocessor constants, constant symbols,
|
|
|
|
enumeration values, and so on.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Dv NULL
|
|
|
|
.Dl \&.Dv BUFSIZ
|
|
|
|
.Dl \&.Dv STDOUT_FILENO
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Er
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ev
|
2014-01-31 19:59:03 +00:00
|
|
|
for special-purpose constants,
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Va
|
2014-01-31 19:59:03 +00:00
|
|
|
for variable symbols, and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fd
|
2014-01-31 19:59:03 +00:00
|
|
|
for listing preprocessor variable definitions in the
|
|
|
|
.Em SYNOPSIS .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Dx
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Dx Op Ar version
|
2014-01-31 19:59:03 +00:00
|
|
|
Format the
|
|
|
|
.Dx
|
|
|
|
version provided as an argument, or a default
|
2012-10-18 09:55:16 +00:00
|
|
|
value if no argument is provided.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Dx 2.4.1
|
|
|
|
.Dl \&.Dx
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&At ,
|
|
|
|
.Ic \&Bsx ,
|
|
|
|
.Ic \&Bx ,
|
|
|
|
.Ic \&Fx ,
|
|
|
|
.Ic \&Nx ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ox .
|
|
|
|
.It Ic \&Ec Op Ar closing_delimiter
|
2012-10-18 09:55:16 +00:00
|
|
|
Close a scope started by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Eo .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
The
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ar closing_delimiter
|
2012-10-18 09:55:16 +00:00
|
|
|
argument is used as the enclosure tail, for example, specifying \e(rq
|
|
|
|
will emulate
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dc .
|
|
|
|
.It Ic \&Ed
|
2012-10-18 09:55:16 +00:00
|
|
|
End a display context started by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bd .
|
|
|
|
.It Ic \&Ef
|
2012-10-18 09:55:16 +00:00
|
|
|
End a font mode context started by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bf .
|
|
|
|
.It Ic \&Ek
|
2012-10-18 09:55:16 +00:00
|
|
|
End a keep context started by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bk .
|
|
|
|
.It Ic \&El
|
2012-10-18 09:55:16 +00:00
|
|
|
End a list context started by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bl .
|
2012-10-18 09:55:16 +00:00
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Em
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Em Ar word ...
|
2014-12-02 07:34:06 +00:00
|
|
|
Request an italic font.
|
|
|
|
If the output device does not provide that, underline.
|
|
|
|
.Pp
|
|
|
|
This is most often used for stress emphasis (not to be confused with
|
|
|
|
importance, see
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sy ) .
|
2014-12-02 07:34:06 +00:00
|
|
|
In the rare cases where none of the semantic markup macros fit,
|
|
|
|
it can also be used for technical terms and placeholders, except
|
|
|
|
that for syntax elements,
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sy
|
2014-12-02 07:34:06 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ar
|
2014-12-02 07:34:06 +00:00
|
|
|
are preferred, respectively.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Examples:
|
2014-12-02 07:34:06 +00:00
|
|
|
.Bd -literal -compact -offset indent
|
|
|
|
Selected lines are those
|
|
|
|
\&.Em not
|
|
|
|
matching any of the specified patterns.
|
|
|
|
Some of the functions use a
|
|
|
|
\&.Em hold space
|
|
|
|
to save the pattern space for subsequent retrieval.
|
|
|
|
.Ed
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&No ,
|
|
|
|
.Ic \&Ql ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sy .
|
|
|
|
.It Ic \&En Ar word ...
|
2014-11-22 18:08:25 +00:00
|
|
|
This macro is obsolete.
|
|
|
|
Use
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Eo
|
2014-11-22 18:08:25 +00:00
|
|
|
or any of the other enclosure macros.
|
|
|
|
.Pp
|
|
|
|
It encloses its argument in the delimiters specified by the last
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Es
|
2014-11-22 18:08:25 +00:00
|
|
|
macro.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Eo
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Eo Op Ar opening_delimiter
|
2012-10-18 09:55:16 +00:00
|
|
|
An arbitrary enclosure.
|
|
|
|
The
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ar opening_delimiter
|
2012-10-18 09:55:16 +00:00
|
|
|
argument is used as the enclosure head, for example, specifying \e(lq
|
|
|
|
will emulate
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Do .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Er
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Er Ar identifier ...
|
2012-10-18 09:55:16 +00:00
|
|
|
Error constants for definitions of the
|
|
|
|
.Va errno
|
|
|
|
libc global variable.
|
|
|
|
This is most often used in section 2 and 3 manual pages.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Er EPERM
|
|
|
|
.Dl \&.Er ENOENT
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dv
|
2012-10-18 09:55:16 +00:00
|
|
|
for general constants.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Es Ar opening_delimiter closing_delimiter
|
2014-11-22 18:08:25 +00:00
|
|
|
This macro is obsolete.
|
|
|
|
Use
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Eo
|
2014-11-22 18:08:25 +00:00
|
|
|
or any of the other enclosure macros.
|
|
|
|
.Pp
|
|
|
|
It takes two arguments, defining the delimiters to be used by subsequent
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&En
|
2014-11-22 18:08:25 +00:00
|
|
|
macros.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ev
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ev Ar identifier ...
|
2012-10-18 09:55:16 +00:00
|
|
|
Environmental variables such as those specified in
|
|
|
|
.Xr environ 7 .
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Ev DISPLAY
|
|
|
|
.Dl \&.Ev PATH
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dv
|
2012-10-18 09:55:16 +00:00
|
|
|
for general constants.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ex
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ex Fl std Op Ar utility ...
|
2012-10-18 09:55:16 +00:00
|
|
|
Insert a standard sentence regarding command exit values of 0 on success
|
|
|
|
and >0 on failure.
|
|
|
|
This is most often used in section 1, 6, and 8 manual pages.
|
|
|
|
.Pp
|
|
|
|
If
|
|
|
|
.Ar utility
|
|
|
|
is not specified, the document's name set by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
is used.
|
|
|
|
Multiple
|
|
|
|
.Ar utility
|
|
|
|
arguments are treated as separate utilities.
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rv .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Fa
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Fa Ar argument ...
|
2014-12-02 07:34:06 +00:00
|
|
|
Function argument or parameter.
|
2014-11-22 18:08:25 +00:00
|
|
|
Each argument may be a name and a type (recommended for the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section), a name alone (for function invocations),
|
|
|
|
or a type alone (for function prototypes).
|
|
|
|
If both a type and a name are given or if the type consists of multiple
|
|
|
|
words, all words belonging to the same function argument have to be
|
|
|
|
given in a single argument to the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fa
|
2014-11-22 18:08:25 +00:00
|
|
|
macro.
|
|
|
|
.Pp
|
|
|
|
This macro is also used to specify the field name of a structure.
|
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
Most often, the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fa
|
2012-10-18 09:55:16 +00:00
|
|
|
macro is used in the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
within
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fo
|
2014-11-22 18:08:25 +00:00
|
|
|
blocks when documenting multi-line function prototypes.
|
2012-10-18 09:55:16 +00:00
|
|
|
If invoked with multiple arguments, the arguments are separated by a
|
|
|
|
comma.
|
|
|
|
Furthermore, if the following macro is another
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fa ,
|
2012-10-18 09:55:16 +00:00
|
|
|
the last argument will also have a trailing comma.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Fa \(dqconst char *p\(dq
|
|
|
|
.Dl \&.Fa \(dqint a\(dq \(dqint b\(dq \(dqint c\(dq
|
2014-11-22 18:08:25 +00:00
|
|
|
.Dl \&.Fa \(dqchar *\(dq size_t
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fo .
|
|
|
|
.It Ic \&Fc
|
2012-10-18 09:55:16 +00:00
|
|
|
End a function context started by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fo .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Fd
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Fd Pf # Ar directive Op Ar argument ...
|
2014-01-31 19:59:03 +00:00
|
|
|
Preprocessor directive, in particular for listing it in the
|
|
|
|
.Em SYNOPSIS .
|
|
|
|
Historically, it was also used to document include files.
|
|
|
|
The latter usage has been deprecated in favour of
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&In .
|
2014-01-31 19:59:03 +00:00
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Fd #define sa_handler __sigaction_u.__sa_handler
|
|
|
|
.Dl \&.Fd #define SIO_MAXNFDS
|
|
|
|
.Dl \&.Fd #ifdef FS_DEBUG
|
|
|
|
.Dl \&.Ft void
|
|
|
|
.Dl \&.Fn dbg_open \(dqconst char *\(dq
|
|
|
|
.Dl \&.Fd #endif
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2014-01-31 19:59:03 +00:00
|
|
|
.Sx MANUAL STRUCTURE ,
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&In ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dv .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Fl
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Fl Op Ar word ...
|
2012-10-18 09:55:16 +00:00
|
|
|
Command-line flag or option.
|
|
|
|
Used when listing arguments to command-line utilities.
|
2021-11-15 15:35:39 +00:00
|
|
|
For each argument, prints an ASCII hyphen-minus character
|
|
|
|
.Sq \- ,
|
|
|
|
immediately followed by the argument.
|
|
|
|
If no arguments are provided, a hyphen-minus is printed followed by a space.
|
|
|
|
If the argument is a macro, a hyphen-minus is prefixed
|
|
|
|
to the subsequent macro output.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Examples:
|
2021-11-15 15:35:39 +00:00
|
|
|
.Dl ".Nm du Op Fl H | L | P"
|
|
|
|
.Dl ".Nm ls Op Fl 1AaCcdFfgHhikLlmnopqRrSsTtux"
|
|
|
|
.Dl ".Nm route Cm add Fl inet Ar destination gateway"
|
|
|
|
.Dl ".Nm locate.updatedb Op Fl \e-fcodes Ns = Ns Ar dbfile"
|
|
|
|
.Dl ".Nm aucat Fl o Fl"
|
|
|
|
.Dl ".Nm kill Fl Ar signal_number"
|
|
|
|
.Pp
|
|
|
|
For GNU-sytle long options, escaping the additional hyphen-minus is not
|
|
|
|
strictly required, but may be safer with future versions of GNU troff; see
|
|
|
|
.Xr mandoc_char 7
|
|
|
|
for details.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Cm .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Fn
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Fn Ar funcname Op Ar argument ...
|
2012-10-18 09:55:16 +00:00
|
|
|
A function name.
|
|
|
|
.Pp
|
|
|
|
Function arguments are surrounded in parenthesis and
|
|
|
|
are delimited by commas.
|
|
|
|
If no arguments are specified, blank parenthesis are output.
|
|
|
|
In the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section, this macro starts a new output line,
|
|
|
|
and a blank line is automatically inserted between function definitions.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Fn \(dqint funcname\(dq \(dqint arg0\(dq \(dqint arg1\(dq
|
|
|
|
.Dl \&.Fn funcname \(dqint arg0\(dq
|
|
|
|
.Dl \&.Fn funcname arg0
|
2019-03-29 13:13:30 +00:00
|
|
|
.Bd -literal -offset indent
|
2012-10-18 09:55:16 +00:00
|
|
|
\&.Ft functype
|
|
|
|
\&.Fn funcname
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
When referring to a function documented in another manual page, use
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Xr
|
2012-10-18 09:55:16 +00:00
|
|
|
instead.
|
|
|
|
See also
|
|
|
|
.Sx MANUAL STRUCTURE ,
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fo ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ft .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Fo
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Fo Ar funcname
|
2012-10-18 09:55:16 +00:00
|
|
|
Begin a function block.
|
|
|
|
This is a multi-line version of
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fn .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Invocations usually occur in the following context:
|
|
|
|
.Bd -ragged -offset indent
|
2019-03-29 13:13:30 +00:00
|
|
|
.Pf \. Ic \&Ft Ar functype
|
2012-10-18 09:55:16 +00:00
|
|
|
.br
|
2019-03-29 13:13:30 +00:00
|
|
|
.Pf \. Ic \&Fo Ar funcname
|
2012-10-18 09:55:16 +00:00
|
|
|
.br
|
2019-03-29 13:13:30 +00:00
|
|
|
.Pf \. Ic \&Fa Qq Ar argtype Ar argname
|
2012-10-18 09:55:16 +00:00
|
|
|
.br
|
|
|
|
\&.\.\.
|
|
|
|
.br
|
2019-03-29 13:13:30 +00:00
|
|
|
.Pf \. Ic \&Fc
|
2012-10-18 09:55:16 +00:00
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
A
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fo
|
2012-10-18 09:55:16 +00:00
|
|
|
scope is closed by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fc .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
|
|
|
.Sx MANUAL STRUCTURE ,
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fa ,
|
|
|
|
.Ic \&Fc ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ft .
|
|
|
|
.It Ic \&Fr Ar number
|
2014-11-22 18:08:25 +00:00
|
|
|
This macro is obsolete.
|
|
|
|
No replacement markup is needed.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
2014-11-22 18:08:25 +00:00
|
|
|
It was used to show numerical function return values in an italic font.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ft
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ft Ar functype
|
2012-10-18 09:55:16 +00:00
|
|
|
A function type.
|
|
|
|
.Pp
|
|
|
|
In the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section, a new output line is started after this macro.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Ft int
|
|
|
|
.Bd -literal -offset indent -compact
|
|
|
|
\&.Ft functype
|
|
|
|
\&.Fn funcname
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
See also
|
|
|
|
.Sx MANUAL STRUCTURE ,
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fn ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fo .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Fx
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Fx Op Ar version
|
2012-10-18 09:55:16 +00:00
|
|
|
Format the
|
|
|
|
.Fx
|
|
|
|
version provided as an argument, or a default value
|
|
|
|
if no argument is provided.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Fx 7.1
|
|
|
|
.Dl \&.Fx
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&At ,
|
|
|
|
.Ic \&Bsx ,
|
|
|
|
.Ic \&Bx ,
|
|
|
|
.Ic \&Dx ,
|
|
|
|
.Ic \&Nx ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ox .
|
|
|
|
.It Ic \&Hf Ar filename
|
2012-10-18 09:55:16 +00:00
|
|
|
This macro is not implemented in
|
|
|
|
.Xr mandoc 1 .
|
|
|
|
It was used to include the contents of a (header) file literally.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ic
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ic Ar keyword ...
|
2019-07-26 09:51:35 +00:00
|
|
|
Internal or interactive command, or configuration instruction
|
|
|
|
in a configuration file.
|
|
|
|
See also
|
|
|
|
.Ic \&Cm .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Ic :wq
|
|
|
|
.Dl \&.Ic hash
|
|
|
|
.Dl \&.Ic alias
|
|
|
|
.Pp
|
|
|
|
Note that using
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ql ,
|
|
|
|
.Ic \&Dl ,
|
2012-10-18 09:55:16 +00:00
|
|
|
or
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bd Fl literal
|
|
|
|
is preferred for displaying code samples; the
|
|
|
|
.Ic \&Ic
|
|
|
|
macro is used when referring to an individual command name.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg In
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&In Ar filename
|
2015-03-02 16:45:41 +00:00
|
|
|
The name of an include file.
|
|
|
|
This macro is most often used in section 2, 3, and 9 manual pages.
|
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
When invoked as the first macro on an input line in the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section, the argument is displayed in angle brackets
|
|
|
|
and preceded by
|
2015-03-02 16:45:41 +00:00
|
|
|
.Qq #include ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and a blank line is inserted in front if there is a preceding
|
|
|
|
function declaration.
|
2015-03-02 16:45:41 +00:00
|
|
|
In other sections, it only encloses its argument in angle brackets
|
|
|
|
and causes no line break.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.In sys/types.h
|
|
|
|
.Pp
|
|
|
|
See also
|
|
|
|
.Sx MANUAL STRUCTURE .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg It
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&It Op Ar head
|
2012-10-18 09:55:16 +00:00
|
|
|
A list item.
|
|
|
|
The syntax of this macro depends on the list type.
|
|
|
|
.Pp
|
|
|
|
Lists
|
|
|
|
of type
|
|
|
|
.Fl hang ,
|
|
|
|
.Fl ohang ,
|
|
|
|
.Fl inset ,
|
|
|
|
and
|
|
|
|
.Fl diag
|
|
|
|
have the following syntax:
|
|
|
|
.Pp
|
2019-03-29 13:13:30 +00:00
|
|
|
.D1 Pf \. Ic \&It Ar args
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Lists of type
|
|
|
|
.Fl bullet ,
|
|
|
|
.Fl dash ,
|
|
|
|
.Fl enum ,
|
|
|
|
.Fl hyphen
|
|
|
|
and
|
|
|
|
.Fl item
|
|
|
|
have the following syntax:
|
|
|
|
.Pp
|
2019-03-29 13:13:30 +00:00
|
|
|
.D1 Pf \. Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
with subsequent lines interpreted within the scope of the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
until either a closing
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&El
|
2012-10-18 09:55:16 +00:00
|
|
|
or another
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Fl tag
|
|
|
|
list has the following syntax:
|
|
|
|
.Pp
|
2019-03-29 13:13:30 +00:00
|
|
|
.D1 Pf \. Ic \&It Op Cm args
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Subsequent lines are interpreted as with
|
|
|
|
.Fl bullet
|
|
|
|
and family.
|
|
|
|
The line arguments correspond to the list's left-hand side; body
|
|
|
|
arguments correspond to the list's contents.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Fl column
|
|
|
|
list is the most complicated.
|
|
|
|
Its syntax is as follows:
|
|
|
|
.Pp
|
2019-03-29 13:13:30 +00:00
|
|
|
.D1 Pf \. Ic \&It Ar cell Op Ic \&Ta Ar cell ...
|
|
|
|
.D1 Pf \. Ic \&It Ar cell Op <TAB> Ar cell ...
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
The arguments consist of one or more lines of text and macros
|
|
|
|
representing a complete table line.
|
2017-01-21 13:01:39 +00:00
|
|
|
Cells within the line are delimited by the special
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ta
|
2017-01-21 13:01:39 +00:00
|
|
|
block macro or by literal tab characters.
|
|
|
|
.Pp
|
|
|
|
Using literal tabs is strongly discouraged because they are very
|
|
|
|
hard to use correctly and
|
|
|
|
.Nm
|
|
|
|
code using them is very hard to read.
|
|
|
|
In particular, a blank character is syntactically significant
|
|
|
|
before and after the literal tab character.
|
|
|
|
If a word precedes or follows the tab without an intervening blank,
|
|
|
|
that word is never interpreted as a macro call, but always output
|
|
|
|
literally.
|
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
The tab cell delimiter may only be used within the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
line itself; on following lines, only the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ta
|
2017-07-31 19:17:54 +00:00
|
|
|
macro can be used to delimit cells, and portability requires that
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ta
|
2017-07-31 19:17:54 +00:00
|
|
|
is called by other macros: some parsers do not recognize it when
|
|
|
|
it appears as the first macro on a line.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Note that quoted strings may span tab-delimited cells on an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
line.
|
|
|
|
For example,
|
|
|
|
.Pp
|
2017-01-21 13:01:39 +00:00
|
|
|
.Dl .It \(dqcol1 ,\& <TAB> col2 ,\(dq \&;
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
2017-01-21 13:01:39 +00:00
|
|
|
will preserve the whitespace before both commas,
|
|
|
|
but not the whitespace before the semicolon.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bl .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Lb
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Lb Cm lib Ns Ar name
|
2012-10-18 09:55:16 +00:00
|
|
|
Specify a library.
|
|
|
|
.Pp
|
|
|
|
The
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ar name
|
2012-10-18 09:55:16 +00:00
|
|
|
parameter may be a system library, such as
|
2019-03-29 13:13:30 +00:00
|
|
|
.Cm z
|
2012-10-18 09:55:16 +00:00
|
|
|
or
|
2019-03-29 13:13:30 +00:00
|
|
|
.Cm pam ,
|
2012-10-18 09:55:16 +00:00
|
|
|
in which case a small library description is printed next to the linker
|
|
|
|
invocation; or a custom library, in which case the library name is
|
|
|
|
printed in quotes.
|
|
|
|
This is most commonly used in the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section as described in
|
|
|
|
.Sx MANUAL STRUCTURE .
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Lb libz
|
2014-01-31 19:59:03 +00:00
|
|
|
.Dl \&.Lb libmandoc
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Li
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Li Ar word ...
|
|
|
|
Request a typewriter (literal) font.
|
|
|
|
Deprecated because on terminal output devices, this is usually
|
|
|
|
indistinguishable from normal text.
|
|
|
|
For literal displays, use
|
|
|
|
.Ic \&Ql Pq in-line ,
|
|
|
|
.Ic \&Dl Pq single line ,
|
|
|
|
or
|
|
|
|
.Ic \&Bd Fl literal Pq multi-line
|
|
|
|
instead.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Lk
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Lk Ar uri Op Ar display_name
|
2012-10-18 09:55:16 +00:00
|
|
|
Format a hyperlink.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
2021-11-15 15:35:39 +00:00
|
|
|
.Dl \&.Lk https://bsd.lv \(dqThe BSD.lv Project\(dq
|
|
|
|
.Dl \&.Lk https://bsd.lv
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Mt .
|
|
|
|
.It Ic \&Lp
|
|
|
|
Deprecated synonym for
|
|
|
|
.Ic \&Pp .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ms
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ms Ar name
|
2012-10-18 09:55:16 +00:00
|
|
|
Display a mathematical symbol.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Ms sigma
|
|
|
|
.Dl \&.Ms aleph
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Mt
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Mt Ar localpart Ns @ Ns Ar domain
|
2012-10-18 09:55:16 +00:00
|
|
|
Format a
|
|
|
|
.Dq mailto:
|
|
|
|
hyperlink.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Mt discuss@manpages.bsd.lv
|
2014-01-31 19:59:03 +00:00
|
|
|
.Dl \&.An Kristaps Dzonsons \&Aq \&Mt kristaps@bsd.lv
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Nd
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Nd Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
A one line description of the manual's content.
|
2015-03-02 16:45:41 +00:00
|
|
|
This is the mandatory last macro of the
|
|
|
|
.Em NAME
|
|
|
|
section and not appropriate for other sections.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Examples:
|
2019-03-29 13:13:30 +00:00
|
|
|
.Dl Pf . Ic \&Nd mdoc language reference
|
|
|
|
.Dl Pf . Ic \&Nd format and display UNIX manuals
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
The
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nd
|
2012-10-18 09:55:16 +00:00
|
|
|
macro technically accepts child macros and terminates with a subsequent
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sh
|
2012-10-18 09:55:16 +00:00
|
|
|
invocation.
|
|
|
|
Do not assume this behaviour: some
|
|
|
|
.Xr whatis 1
|
|
|
|
database generators are not smart enough to parse more than the line
|
|
|
|
arguments and will display macros verbatim.
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Nm
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Nm Op Ar name
|
2012-10-18 09:55:16 +00:00
|
|
|
The name of the manual page, or \(em in particular in section 1, 6,
|
|
|
|
and 8 pages \(em of an additional command or feature documented in
|
|
|
|
the manual page.
|
|
|
|
When first invoked, the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
macro expects a single argument, the name of the manual page.
|
|
|
|
Usually, the first invocation happens in the
|
|
|
|
.Em NAME
|
|
|
|
section of the page.
|
|
|
|
The specified name will be remembered and used whenever the macro is
|
|
|
|
called again without arguments later in the page.
|
|
|
|
The
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
macro uses
|
|
|
|
.Sx Block full-implicit
|
|
|
|
semantics when invoked as the first macro on an input line in the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section; otherwise, it uses ordinary
|
|
|
|
.Sx In-line
|
|
|
|
semantics.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Sh SYNOPSIS
|
|
|
|
\&.Nm cat
|
|
|
|
\&.Op Fl benstuv
|
|
|
|
\&.Op Ar
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
In the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
of section 2, 3 and 9 manual pages, use the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fn
|
2012-10-18 09:55:16 +00:00
|
|
|
macro rather than
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
to mark up the name of the manual page.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg No
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&No Ar word ...
|
2012-10-18 09:55:16 +00:00
|
|
|
Normal text.
|
|
|
|
Closes the scope of any preceding in-line macro.
|
|
|
|
When used after physical formatting macros like
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Em
|
2012-10-18 09:55:16 +00:00
|
|
|
or
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sy ,
|
2012-10-18 09:55:16 +00:00
|
|
|
switches back to the standard font face and weight.
|
|
|
|
Can also be used to embed plain text strings in macro lines
|
|
|
|
using semantic annotation macros.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl ".Em italic , Sy bold , No and roman"
|
2019-03-29 13:13:30 +00:00
|
|
|
.Bd -literal -offset indent
|
2012-10-18 09:55:16 +00:00
|
|
|
\&.Sm off
|
|
|
|
\&.Cm :C No / Ar pattern No / Ar replacement No /
|
|
|
|
\&.Sm on
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Em ,
|
|
|
|
.Ic \&Ql ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sy .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ns
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ns
|
2012-10-18 09:55:16 +00:00
|
|
|
Suppress a space between the output of the preceding macro
|
|
|
|
and the following text or macro.
|
|
|
|
Following invocation, input is interpreted as normal text
|
|
|
|
just like after an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&No
|
2012-10-18 09:55:16 +00:00
|
|
|
macro.
|
|
|
|
.Pp
|
|
|
|
This has no effect when invoked at the start of a macro line.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl ".Ar name Ns = Ns Ar value"
|
|
|
|
.Dl ".Cm :M Ns Ar pattern"
|
|
|
|
.Dl ".Fl o Ns Ar output"
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&No
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sm .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Nx
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Nx Op Ar version
|
2012-10-18 09:55:16 +00:00
|
|
|
Format the
|
|
|
|
.Nx
|
|
|
|
version provided as an argument, or a default value if
|
|
|
|
no argument is provided.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Nx 5.01
|
|
|
|
.Dl \&.Nx
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&At ,
|
|
|
|
.Ic \&Bsx ,
|
|
|
|
.Ic \&Bx ,
|
|
|
|
.Ic \&Dx ,
|
|
|
|
.Ic \&Fx ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ox .
|
|
|
|
.It Ic \&Oc
|
2012-10-18 09:55:16 +00:00
|
|
|
Close multi-line
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Oo
|
2012-10-18 09:55:16 +00:00
|
|
|
context.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Oo Ar block
|
2012-10-18 09:55:16 +00:00
|
|
|
Multi-line version of
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Op .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Bd -literal -offset indent -compact
|
|
|
|
\&.Oo
|
|
|
|
\&.Op Fl flag Ns Ar value
|
|
|
|
\&.Oc
|
|
|
|
.Ed
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Op
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Op Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
Optional part of a command line.
|
|
|
|
Prints the argument(s) in brackets.
|
|
|
|
This is most often used in the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section of section 1 and 8 manual pages.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Op \&Fl a \&Ar b
|
|
|
|
.Dl \&.Op \&Ar a | b
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Oo .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Os
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Os Op Ar system Op Ar version
|
2014-11-22 18:08:25 +00:00
|
|
|
Operating system version for display in the page footer.
|
2012-10-18 09:55:16 +00:00
|
|
|
This is the mandatory third macro of
|
|
|
|
any
|
|
|
|
.Nm
|
|
|
|
file.
|
|
|
|
.Pp
|
|
|
|
The optional
|
|
|
|
.Ar system
|
|
|
|
parameter specifies the relevant operating system or environment.
|
2015-03-02 16:45:41 +00:00
|
|
|
It is suggested to leave it unspecified, in which case
|
|
|
|
.Xr mandoc 1
|
|
|
|
uses its
|
|
|
|
.Fl Ios
|
2016-01-15 23:08:59 +00:00
|
|
|
argument or, if that isn't specified either,
|
2015-03-02 16:45:41 +00:00
|
|
|
.Fa sysname
|
|
|
|
and
|
|
|
|
.Fa release
|
|
|
|
as returned by
|
|
|
|
.Xr uname 3 .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Os
|
|
|
|
.Dl \&.Os KTH/CSC/TCS
|
|
|
|
.Dl \&.Os BSD 4.3
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dd
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dt .
|
|
|
|
.It Ic \&Ot Ar functype
|
2014-11-22 18:08:25 +00:00
|
|
|
This macro is obsolete.
|
|
|
|
Use
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ft
|
2014-11-22 18:08:25 +00:00
|
|
|
instead; with
|
|
|
|
.Xr mandoc 1 ,
|
|
|
|
both have the same effect.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Historical
|
2014-01-31 19:59:03 +00:00
|
|
|
.Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
packages described it as
|
|
|
|
.Dq "old function type (FORTRAN)" .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ox
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ox Op Ar version
|
2012-10-18 09:55:16 +00:00
|
|
|
Format the
|
|
|
|
.Ox
|
|
|
|
version provided as an argument, or a default value
|
|
|
|
if no argument is provided.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Ox 4.5
|
|
|
|
.Dl \&.Ox
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&At ,
|
|
|
|
.Ic \&Bsx ,
|
|
|
|
.Ic \&Bx ,
|
|
|
|
.Ic \&Dx ,
|
|
|
|
.Ic \&Fx ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nx .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Pa
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Pa Ar name ...
|
2012-10-18 09:55:16 +00:00
|
|
|
An absolute or relative file system path, or a file or directory name.
|
|
|
|
If an argument is not provided, the character
|
|
|
|
.Sq \(ti
|
|
|
|
is used as a default.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Pa /usr/bin/mandoc
|
|
|
|
.Dl \&.Pa /usr/share/man/man7/mdoc.7
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Lk .
|
|
|
|
.It Ic \&Pc
|
2012-10-18 09:55:16 +00:00
|
|
|
Close parenthesised context opened by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Po .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Pf
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Pf Ar prefix macro Op Ar argument ...
|
2016-01-15 23:08:59 +00:00
|
|
|
Removes the space between its argument and the following macro.
|
2019-03-29 13:13:30 +00:00
|
|
|
It is equivalent to:
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
2019-03-29 13:13:30 +00:00
|
|
|
.D1 Ic \&No Pf \e& Ar prefix Ic \&Ns Ar macro Op Ar argument ...
|
2016-01-15 23:08:59 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar prefix
|
|
|
|
argument is not parsed for macro names or delimiters,
|
|
|
|
but used verbatim as if it were escaped.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl ".Pf $ Ar variable_name"
|
2016-01-15 23:08:59 +00:00
|
|
|
.Dl ".Pf . Ar macro_name"
|
2012-10-18 09:55:16 +00:00
|
|
|
.Dl ".Pf 0x Ar hex_digits"
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ns
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sm .
|
|
|
|
.It Ic \&Po Ar block
|
2012-10-18 09:55:16 +00:00
|
|
|
Multi-line version of
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Pq .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Pp
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
Break a paragraph.
|
|
|
|
This will assert vertical space between prior and subsequent macros
|
|
|
|
and/or text.
|
|
|
|
.Pp
|
|
|
|
Paragraph breaks are not needed before or after
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sh
|
2012-10-18 09:55:16 +00:00
|
|
|
or
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ss
|
2012-10-18 09:55:16 +00:00
|
|
|
macros or before displays
|
2019-03-29 13:13:30 +00:00
|
|
|
.Pq Ic \&Bd Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
or lists
|
2019-03-29 13:13:30 +00:00
|
|
|
.Pq Ic \&Bl
|
2012-10-18 09:55:16 +00:00
|
|
|
unless the
|
|
|
|
.Fl compact
|
|
|
|
flag is given.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Pq
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Pq Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
Parenthesised enclosure.
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Po .
|
|
|
|
.It Ic \&Qc
|
2012-10-18 09:55:16 +00:00
|
|
|
Close quoted context opened by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Qo .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ql
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ql Ar line
|
2015-03-02 16:45:41 +00:00
|
|
|
In-line literal display.
|
2019-03-29 13:13:30 +00:00
|
|
|
This can be used for complete command invocations and for multi-word
|
|
|
|
code examples when an indented display is not desired.
|
2015-03-02 16:45:41 +00:00
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dl
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bd
|
2015-03-02 16:45:41 +00:00
|
|
|
.Fl literal .
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Qo Ar block
|
2012-10-18 09:55:16 +00:00
|
|
|
Multi-line version of
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Qq .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Qq
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Qq Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
Encloses its arguments in
|
|
|
|
.Qq typewriter
|
|
|
|
double-quotes.
|
|
|
|
Consider using
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dq .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dq ,
|
|
|
|
.Ic \&Sq ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Qo .
|
|
|
|
.It Ic \&Re
|
2012-10-18 09:55:16 +00:00
|
|
|
Close an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block.
|
|
|
|
Does not have any tail arguments.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Rs
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
Begin a bibliographic
|
|
|
|
.Pq Dq reference
|
|
|
|
block.
|
|
|
|
Does not have any head arguments.
|
|
|
|
The block macro may only contain
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&%A ,
|
|
|
|
.Ic \&%B ,
|
|
|
|
.Ic \&%C ,
|
|
|
|
.Ic \&%D ,
|
|
|
|
.Ic \&%I ,
|
|
|
|
.Ic \&%J ,
|
|
|
|
.Ic \&%N ,
|
|
|
|
.Ic \&%O ,
|
|
|
|
.Ic \&%P ,
|
|
|
|
.Ic \&%Q ,
|
|
|
|
.Ic \&%R ,
|
|
|
|
.Ic \&%T ,
|
|
|
|
.Ic \&%U ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&%V
|
2012-10-18 09:55:16 +00:00
|
|
|
child macros (at least one must be specified).
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Bd -literal -offset indent -compact
|
|
|
|
\&.Rs
|
|
|
|
\&.%A J. E. Hopcroft
|
|
|
|
\&.%A J. D. Ullman
|
|
|
|
\&.%B Introduction to Automata Theory, Languages, and Computation
|
|
|
|
\&.%I Addison-Wesley
|
2016-01-15 23:08:59 +00:00
|
|
|
\&.%C Reading, Massachusetts
|
2012-10-18 09:55:16 +00:00
|
|
|
\&.%D 1979
|
|
|
|
\&.Re
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
If an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Rs
|
2012-10-18 09:55:16 +00:00
|
|
|
block is used within a SEE ALSO section, a vertical space is asserted
|
|
|
|
before the rendered output, else the block continues on the current
|
|
|
|
line.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Rv
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Rv Fl std Op Ar function ...
|
2012-10-18 09:55:16 +00:00
|
|
|
Insert a standard sentence regarding a function call's return value of 0
|
|
|
|
on success and \-1 on error, with the
|
|
|
|
.Va errno
|
|
|
|
libc global variable set on error.
|
|
|
|
.Pp
|
|
|
|
If
|
|
|
|
.Ar function
|
|
|
|
is not specified, the document's name set by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
is used.
|
|
|
|
Multiple
|
|
|
|
.Ar function
|
|
|
|
arguments are treated as separate functions.
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ex .
|
|
|
|
.It Ic \&Sc
|
2012-10-18 09:55:16 +00:00
|
|
|
Close single-quoted context opened by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&So .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Sh
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Sh Ar TITLE LINE
|
2012-10-18 09:55:16 +00:00
|
|
|
Begin a new section.
|
|
|
|
For a list of conventional manual sections, see
|
|
|
|
.Sx MANUAL STRUCTURE .
|
|
|
|
These sections should be used unless it's absolutely necessary that
|
|
|
|
custom sections be used.
|
|
|
|
.Pp
|
|
|
|
Section names should be unique so that they may be keyed by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sx .
|
2012-10-18 09:55:16 +00:00
|
|
|
Although this macro is parsed, it should not consist of child node or it
|
|
|
|
may not be linked with
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sx .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Pp ,
|
|
|
|
.Ic \&Ss ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sx .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Sm
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Sm Op Cm on | off
|
2012-10-18 09:55:16 +00:00
|
|
|
Switches the spacing mode for output generated from macros.
|
|
|
|
.Pp
|
|
|
|
By default, spacing is
|
|
|
|
.Cm on .
|
|
|
|
When switched
|
|
|
|
.Cm off ,
|
|
|
|
no white space is inserted between macro arguments and between the
|
|
|
|
output generated from adjacent macros, but text lines
|
|
|
|
still get normal spacing between words and sentences.
|
2014-11-22 18:08:25 +00:00
|
|
|
.Pp
|
|
|
|
When called without an argument, the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sm
|
2014-11-22 18:08:25 +00:00
|
|
|
macro toggles the spacing mode.
|
|
|
|
Using this is not recommended because it makes the code harder to read.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&So Ar block
|
2012-10-18 09:55:16 +00:00
|
|
|
Multi-line version of
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sq .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Sq
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Sq Ar line
|
2012-10-18 09:55:16 +00:00
|
|
|
Encloses its arguments in
|
|
|
|
.Sq typewriter
|
|
|
|
single-quotes.
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Dq ,
|
|
|
|
.Ic \&Qq ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&So .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ss
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ss Ar Title line
|
2012-10-18 09:55:16 +00:00
|
|
|
Begin a new subsection.
|
|
|
|
Unlike with
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sh ,
|
2012-10-18 09:55:16 +00:00
|
|
|
there is no convention for the naming of subsections.
|
|
|
|
Except
|
|
|
|
.Em DESCRIPTION ,
|
|
|
|
the conventional sections described in
|
|
|
|
.Sx MANUAL STRUCTURE
|
|
|
|
rarely have subsections.
|
|
|
|
.Pp
|
|
|
|
Sub-section names should be unique so that they may be keyed by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sx .
|
2012-10-18 09:55:16 +00:00
|
|
|
Although this macro is parsed, it should not consist of child node or it
|
|
|
|
may not be linked with
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sx .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Pp ,
|
|
|
|
.Ic \&Sh ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sx .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg St
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&St Fl Ns Ar abbreviation
|
2012-10-18 09:55:16 +00:00
|
|
|
Replace an abbreviation for a standard with the full form.
|
2014-11-22 18:08:25 +00:00
|
|
|
The following standards are recognised.
|
|
|
|
Where multiple lines are given without a blank line in between,
|
|
|
|
they all refer to the same standard, and using the first form
|
|
|
|
is recommended.
|
|
|
|
.Bl -tag -width 1n
|
|
|
|
.It C language standards
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "-p1003.1g-2000" -compact
|
|
|
|
.It \-ansiC
|
|
|
|
.St -ansiC
|
|
|
|
.It \-ansiC-89
|
|
|
|
.St -ansiC-89
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-isoC
|
|
|
|
.St -isoC
|
|
|
|
.It \-isoC-90
|
|
|
|
.St -isoC-90
|
2014-11-22 18:08:25 +00:00
|
|
|
.br
|
|
|
|
The original C standard.
|
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-isoC-amd1
|
|
|
|
.St -isoC-amd1
|
2014-11-22 18:08:25 +00:00
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-isoC-tcor1
|
|
|
|
.St -isoC-tcor1
|
2014-11-22 18:08:25 +00:00
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-isoC-tcor2
|
|
|
|
.St -isoC-tcor2
|
2014-11-22 18:08:25 +00:00
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-isoC-99
|
|
|
|
.St -isoC-99
|
2014-11-22 18:08:25 +00:00
|
|
|
.br
|
|
|
|
The second major version of the C language standard.
|
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-isoC-2011
|
|
|
|
.St -isoC-2011
|
2014-11-22 18:08:25 +00:00
|
|
|
.br
|
|
|
|
The third major version of the C language standard.
|
|
|
|
.El
|
|
|
|
.It POSIX.1 before the Single UNIX Specification
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "-p1003.1g-2000" -compact
|
|
|
|
.It \-p1003.1-88
|
|
|
|
.St -p1003.1-88
|
|
|
|
.It \-p1003.1
|
|
|
|
.St -p1003.1
|
|
|
|
.br
|
|
|
|
The original POSIX standard, based on ANSI C.
|
|
|
|
.Pp
|
|
|
|
.It \-p1003.1-90
|
|
|
|
.St -p1003.1-90
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-iso9945-1-90
|
|
|
|
.St -iso9945-1-90
|
2014-11-22 18:08:25 +00:00
|
|
|
.br
|
|
|
|
The first update of POSIX.1.
|
|
|
|
.Pp
|
|
|
|
.It \-p1003.1b-93
|
|
|
|
.St -p1003.1b-93
|
|
|
|
.It \-p1003.1b
|
|
|
|
.St -p1003.1b
|
|
|
|
.br
|
|
|
|
Real-time extensions.
|
|
|
|
.Pp
|
|
|
|
.It \-p1003.1c-95
|
|
|
|
.St -p1003.1c-95
|
|
|
|
.br
|
|
|
|
POSIX thread interfaces.
|
|
|
|
.Pp
|
|
|
|
.It \-p1003.1i-95
|
|
|
|
.St -p1003.1i-95
|
|
|
|
.br
|
|
|
|
Technical Corrigendum.
|
|
|
|
.Pp
|
|
|
|
.It \-p1003.1-96
|
|
|
|
.St -p1003.1-96
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-iso9945-1-96
|
|
|
|
.St -iso9945-1-96
|
2014-11-22 18:08:25 +00:00
|
|
|
.br
|
|
|
|
Includes POSIX.1-1990, 1b, 1c, and 1i.
|
|
|
|
.El
|
|
|
|
.It X/Open Portability Guide version 4 and related standards
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "-p1003.1g-2000" -compact
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-xpg3
|
|
|
|
.St -xpg3
|
2014-11-22 18:08:25 +00:00
|
|
|
.br
|
|
|
|
An XPG4 precursor, published in 1989.
|
|
|
|
.Pp
|
|
|
|
.It \-p1003.2
|
|
|
|
.St -p1003.2
|
|
|
|
.It \-p1003.2-92
|
|
|
|
.St -p1003.2-92
|
|
|
|
.It \-iso9945-2-93
|
|
|
|
.St -iso9945-2-93
|
|
|
|
.br
|
|
|
|
An XCU4 precursor.
|
|
|
|
.Pp
|
|
|
|
.It \-p1003.2a-92
|
|
|
|
.St -p1003.2a-92
|
|
|
|
.br
|
|
|
|
Updates to POSIX.2.
|
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-xpg4
|
|
|
|
.St -xpg4
|
2014-11-22 18:08:25 +00:00
|
|
|
.br
|
|
|
|
Based on POSIX.1 and POSIX.2, published in 1992.
|
|
|
|
.El
|
|
|
|
.It Single UNIX Specification version 1 and related standards
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "-p1003.1g-2000" -compact
|
2014-12-02 07:34:06 +00:00
|
|
|
.It \-susv1
|
|
|
|
.St -susv1
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-xpg4.2
|
|
|
|
.St -xpg4.2
|
2014-11-22 18:08:25 +00:00
|
|
|
.br
|
2014-12-02 07:34:06 +00:00
|
|
|
This standard was published in 1994.
|
2014-11-22 18:08:25 +00:00
|
|
|
It was used as the basis for UNIX 95 certification.
|
|
|
|
The following three refer to parts of it.
|
|
|
|
.Pp
|
|
|
|
.It \-xsh4.2
|
|
|
|
.St -xsh4.2
|
|
|
|
.Pp
|
|
|
|
.It \-xcurses4.2
|
|
|
|
.St -xcurses4.2
|
|
|
|
.Pp
|
|
|
|
.It \-p1003.1g-2000
|
|
|
|
.St -p1003.1g-2000
|
|
|
|
.br
|
|
|
|
Networking APIs, including sockets.
|
|
|
|
.Pp
|
|
|
|
.It \-svid4
|
|
|
|
.St -svid4 ,
|
|
|
|
.br
|
|
|
|
Published in 1995.
|
|
|
|
.El
|
|
|
|
.It Single UNIX Specification version 2 and related standards
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "-p1003.1g-2000" -compact
|
|
|
|
.It \-susv2
|
|
|
|
.St -susv2
|
|
|
|
This Standard was published in 1997
|
|
|
|
and is also called X/Open Portability Guide version 5.
|
|
|
|
It was used as the basis for UNIX 98 certification.
|
|
|
|
The following refer to parts of it.
|
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-xbd5
|
|
|
|
.St -xbd5
|
2014-11-22 18:08:25 +00:00
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-xsh5
|
|
|
|
.St -xsh5
|
2014-11-22 18:08:25 +00:00
|
|
|
.Pp
|
|
|
|
.It \-xcu5
|
|
|
|
.St -xcu5
|
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-xns5
|
|
|
|
.St -xns5
|
2014-11-22 18:08:25 +00:00
|
|
|
.It \-xns5.2
|
|
|
|
.St -xns5.2
|
|
|
|
.El
|
2014-12-25 21:33:25 +00:00
|
|
|
.It Single UNIX Specification version 3
|
2014-11-22 18:08:25 +00:00
|
|
|
.Pp
|
2014-12-25 21:33:25 +00:00
|
|
|
.Bl -tag -width "-p1003.1-2001" -compact
|
2014-11-22 18:08:25 +00:00
|
|
|
.It \-p1003.1-2001
|
|
|
|
.St -p1003.1-2001
|
2012-10-18 09:55:16 +00:00
|
|
|
.It \-susv3
|
|
|
|
.St -susv3
|
2014-11-22 18:08:25 +00:00
|
|
|
.br
|
|
|
|
This standard is based on C99, SUSv2, POSIX.1-1996, 1d, and 1j.
|
|
|
|
It is also called X/Open Portability Guide version 6.
|
|
|
|
It is used as the basis for UNIX 03 certification.
|
|
|
|
.Pp
|
|
|
|
.It \-p1003.1-2004
|
|
|
|
.St -p1003.1-2004
|
|
|
|
.br
|
|
|
|
The second and last Technical Corrigendum.
|
|
|
|
.El
|
|
|
|
.It Single UNIX Specification version 4
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "-p1003.1g-2000" -compact
|
|
|
|
.It \-p1003.1-2008
|
|
|
|
.St -p1003.1-2008
|
2014-12-02 07:34:06 +00:00
|
|
|
.It \-susv4
|
|
|
|
.St -susv4
|
2014-11-22 18:08:25 +00:00
|
|
|
.br
|
2014-12-02 07:34:06 +00:00
|
|
|
This standard is also called
|
2014-11-22 18:08:25 +00:00
|
|
|
X/Open Portability Guide version 7.
|
|
|
|
.El
|
|
|
|
.It Other standards
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "-p1003.1g-2000" -compact
|
|
|
|
.It \-ieee754
|
|
|
|
.St -ieee754
|
|
|
|
.br
|
|
|
|
Floating-point arithmetic.
|
|
|
|
.Pp
|
|
|
|
.It \-iso8601
|
|
|
|
.St -iso8601
|
|
|
|
.br
|
|
|
|
Representation of dates and times, published in 1988.
|
|
|
|
.Pp
|
|
|
|
.It \-iso8802-3
|
|
|
|
.St -iso8802-3
|
|
|
|
.br
|
|
|
|
Ethernet local area networks.
|
|
|
|
.Pp
|
|
|
|
.It \-ieee1275-94
|
|
|
|
.St -ieee1275-94
|
|
|
|
.El
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Sx
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Sx Ar Title line
|
2012-10-18 09:55:16 +00:00
|
|
|
Reference a section or subsection in the same manual page.
|
|
|
|
The referenced section or subsection name must be identical to the
|
|
|
|
enclosed argument, including whitespace.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Sx MANUAL STRUCTURE
|
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Sh
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ss .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Sy
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Sy Ar word ...
|
2014-12-02 07:34:06 +00:00
|
|
|
Request a boldface font.
|
|
|
|
.Pp
|
|
|
|
This is most often used to indicate importance or seriousness (not to be
|
|
|
|
confused with stress emphasis, see
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Em ) .
|
2014-12-02 07:34:06 +00:00
|
|
|
When none of the semantic macros fit, it is also adequate for syntax
|
|
|
|
elements that have to be given or that appear verbatim.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Bd -literal -compact -offset indent
|
|
|
|
\&.Sy Warning :
|
|
|
|
If
|
|
|
|
\&.Sy s
|
|
|
|
appears in the owner permissions, set-user-ID mode is set.
|
|
|
|
This utility replaces the former
|
|
|
|
\&.Sy dumpdir
|
|
|
|
program.
|
|
|
|
.Ed
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
See also
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Em ,
|
|
|
|
.Ic \&No ,
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ql .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Ta
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ta
|
2012-10-18 09:55:16 +00:00
|
|
|
Table cell separator in
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bl Fl column
|
2012-10-18 09:55:16 +00:00
|
|
|
lists; can only be used below
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Tg
|
|
|
|
.It Ic \&Tg Op Ar term
|
|
|
|
Announce that the next input line starts a definition of the
|
|
|
|
.Ar term .
|
|
|
|
This macro must appear alone on its own input line.
|
|
|
|
The argument defaults to the first argument of the first macro
|
|
|
|
on the next line.
|
|
|
|
The argument may not contain whitespace characters, not even when it is quoted.
|
|
|
|
This macro is a
|
|
|
|
.Xr mandoc 1
|
|
|
|
extension and is typically ignored by other formatters.
|
|
|
|
.Pp
|
|
|
|
When viewing terminal output with
|
|
|
|
.Xr less 1 ,
|
|
|
|
the interactive
|
|
|
|
.Ic :t
|
|
|
|
command can be used to go to the definition of the
|
|
|
|
.Ar term
|
|
|
|
as described for the
|
|
|
|
.Ev MANPAGER
|
|
|
|
variable in
|
|
|
|
.Xr man 1 ;
|
|
|
|
when producing HTML output, a fragment identifier
|
|
|
|
.Pq Ic id No attribute
|
|
|
|
is generated, to be used for deep linking to this place of the document.
|
|
|
|
.Pp
|
|
|
|
In most cases, adding a
|
|
|
|
.Ic \&Tg
|
|
|
|
macro would be redundant because
|
|
|
|
.Xr mandoc 1
|
|
|
|
is able to automatically tag most definitions.
|
|
|
|
This macro is intended for cases where automatic tagging of a
|
|
|
|
.Ar term
|
|
|
|
is unsatisfactory, for example if a definition is not tagged
|
|
|
|
automatically (false negative) or if places are tagged that do
|
|
|
|
not define the
|
|
|
|
.Ar term
|
|
|
|
(false positives).
|
|
|
|
When there is at least one
|
|
|
|
.Ic \&Tg
|
|
|
|
macro for a
|
|
|
|
.Ar term ,
|
|
|
|
no other places are automatically marked as definitions of that
|
|
|
|
.Ar term .
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Tn Ar word ...
|
2014-11-22 18:08:25 +00:00
|
|
|
Supported only for compatibility, do not use this in new manuals.
|
|
|
|
Even though the macro name
|
|
|
|
.Pq Dq tradename
|
|
|
|
suggests a semantic function, historic usage is inconsistent, mostly
|
|
|
|
using it as a presentation-level macro to request a small caps font.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ud
|
2014-11-22 18:08:25 +00:00
|
|
|
Supported only for compatibility, do not use this in new manuals.
|
2012-10-18 09:55:16 +00:00
|
|
|
Prints out
|
|
|
|
.Dq currently under development.
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ux
|
2014-11-22 18:08:25 +00:00
|
|
|
Supported only for compatibility, do not use this in new manuals.
|
|
|
|
Prints out
|
|
|
|
.Dq Ux .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Va
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Va Oo Ar type Oc Ar identifier ...
|
2012-10-18 09:55:16 +00:00
|
|
|
A variable name.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Va foo
|
|
|
|
.Dl \&.Va const char *bar ;
|
2014-12-02 07:34:06 +00:00
|
|
|
.Pp
|
|
|
|
For function arguments and parameters, use
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fa
|
2014-12-02 07:34:06 +00:00
|
|
|
instead.
|
|
|
|
For declarations of global variables in the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section, use
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Vt .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Vt
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Vt Ar type Op Ar identifier
|
2012-10-18 09:55:16 +00:00
|
|
|
A variable type.
|
2014-12-02 07:34:06 +00:00
|
|
|
.Pp
|
2012-10-18 09:55:16 +00:00
|
|
|
This is also used for indicating global variables in the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section, in which case a variable name is also specified.
|
|
|
|
Note that it accepts
|
|
|
|
.Sx Block partial-implicit
|
|
|
|
syntax when invoked as the first macro on an input line in the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section, else it accepts ordinary
|
|
|
|
.Sx In-line
|
|
|
|
syntax.
|
|
|
|
In the former case, this macro starts a new output line,
|
|
|
|
and a blank line is inserted in front if there is a preceding
|
|
|
|
function definition or include directive.
|
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Vt unsigned char
|
|
|
|
.Dl \&.Vt extern const char * const sys_signame[] \&;
|
|
|
|
.Pp
|
2014-12-02 07:34:06 +00:00
|
|
|
For parameters in function prototypes, use
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fa
|
2014-12-02 07:34:06 +00:00
|
|
|
instead, for function return types
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ft ,
|
2014-12-02 07:34:06 +00:00
|
|
|
and for variable names outside the
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Va ,
|
2014-12-02 07:34:06 +00:00
|
|
|
even when including a type with the name.
|
2012-10-18 09:55:16 +00:00
|
|
|
See also
|
2014-12-02 07:34:06 +00:00
|
|
|
.Sx MANUAL STRUCTURE .
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Xc
|
2012-10-18 09:55:16 +00:00
|
|
|
Close a scope opened by
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Xo .
|
|
|
|
.It Ic \&Xo Ar block
|
2012-10-18 09:55:16 +00:00
|
|
|
Extend the header of an
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
macro or the body of a partial-implicit block macro
|
|
|
|
beyond the end of the input line.
|
|
|
|
This macro originally existed to work around the 9-argument limit
|
|
|
|
of historic
|
|
|
|
.Xr roff 7 .
|
2021-11-15 15:35:39 +00:00
|
|
|
.Tg Xr
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Xr Ar name section
|
2012-10-18 09:55:16 +00:00
|
|
|
Link to another manual
|
|
|
|
.Pq Qq cross-reference .
|
|
|
|
.Pp
|
2014-01-31 19:59:03 +00:00
|
|
|
Cross reference the
|
2012-10-18 09:55:16 +00:00
|
|
|
.Ar name
|
|
|
|
and
|
|
|
|
.Ar section
|
2017-01-21 13:01:39 +00:00
|
|
|
number of another man page.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
Examples:
|
|
|
|
.Dl \&.Xr mandoc 1
|
|
|
|
.Dl \&.Xr mandoc 1 \&;
|
|
|
|
.Dl \&.Xr mandoc 1 \&Ns s behaviour
|
2019-03-29 13:13:30 +00:00
|
|
|
.El
|
2012-10-18 09:55:16 +00:00
|
|
|
.Sh MACRO SYNTAX
|
|
|
|
The syntax of a macro depends on its classification.
|
|
|
|
In this section,
|
|
|
|
.Sq \-arg
|
|
|
|
refers to macro arguments, which may be followed by zero or more
|
|
|
|
.Sq parm
|
|
|
|
parameters;
|
|
|
|
.Sq \&Yo
|
|
|
|
opens the scope of a macro; and if specified,
|
|
|
|
.Sq \&Yc
|
|
|
|
closes it out.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Em Callable
|
|
|
|
column indicates that the macro may also be called by passing its name
|
|
|
|
as an argument to another macro.
|
|
|
|
For example,
|
|
|
|
.Sq \&.Op \&Fl O \&Ar file
|
|
|
|
produces
|
|
|
|
.Sq Op Fl O Ar file .
|
|
|
|
To prevent a macro call and render the macro name literally,
|
|
|
|
escape it by prepending a zero-width space,
|
|
|
|
.Sq \e& .
|
|
|
|
For example,
|
|
|
|
.Sq \&Op \e&Fl O
|
|
|
|
produces
|
|
|
|
.Sq Op \&Fl O .
|
|
|
|
If a macro is not callable but its name appears as an argument
|
|
|
|
to another macro, it is interpreted as opaque text.
|
|
|
|
For example,
|
|
|
|
.Sq \&.Fl \&Sh
|
|
|
|
produces
|
|
|
|
.Sq Fl \&Sh .
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Em Parsed
|
|
|
|
column indicates whether the macro may call other macros by receiving
|
|
|
|
their names as arguments.
|
|
|
|
If a macro is not parsed but the name of another macro appears
|
|
|
|
as an argument, it is interpreted as opaque text.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Em Scope
|
|
|
|
column, if applicable, describes closure rules.
|
|
|
|
.Ss Block full-explicit
|
|
|
|
Multi-line scope closed by an explicit closing macro.
|
|
|
|
All macros contains bodies; only
|
2021-11-15 15:35:39 +00:00
|
|
|
.Ic \&Bf
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
|
|
|
.Pq optionally
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bl
|
2012-10-18 09:55:16 +00:00
|
|
|
contain a head.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead...\(rB
|
|
|
|
\(lBbody...\(rB
|
|
|
|
\&.Yc
|
|
|
|
.Ed
|
|
|
|
.Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXX" -offset indent
|
|
|
|
.It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Bd Ta \&No Ta \&No Ta closed by Ic \&Ed
|
|
|
|
.It Ic \&Bf Ta \&No Ta \&No Ta closed by Ic \&Ef
|
|
|
|
.It Ic \&Bk Ta \&No Ta \&No Ta closed by Ic \&Ek
|
|
|
|
.It Ic \&Bl Ta \&No Ta \&No Ta closed by Ic \&El
|
|
|
|
.It Ic \&Ed Ta \&No Ta \&No Ta opened by Ic \&Bd
|
|
|
|
.It Ic \&Ef Ta \&No Ta \&No Ta opened by Ic \&Bf
|
|
|
|
.It Ic \&Ek Ta \&No Ta \&No Ta opened by Ic \&Bk
|
|
|
|
.It Ic \&El Ta \&No Ta \&No Ta opened by Ic \&Bl
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Ss Block full-implicit
|
|
|
|
Multi-line scope closed by end-of-file or implicitly by another macro.
|
|
|
|
All macros have bodies; some
|
|
|
|
.Po
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It Fl bullet ,
|
2012-10-18 09:55:16 +00:00
|
|
|
.Fl hyphen ,
|
|
|
|
.Fl dash ,
|
|
|
|
.Fl enum ,
|
|
|
|
.Fl item
|
|
|
|
.Pc
|
|
|
|
don't have heads; only one
|
|
|
|
.Po
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
in
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bl Fl column
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pc
|
|
|
|
has multiple heads.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead... \(lBTa head...\(rB\(rB
|
|
|
|
\(lBbody...\(rB
|
|
|
|
.Ed
|
|
|
|
.Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXXXXXXXXXX" -offset indent
|
|
|
|
.It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&It Ta \&No Ta Yes Ta closed by Ic \&It , Ic \&El
|
|
|
|
.It Ic \&Nd Ta \&No Ta \&No Ta closed by Ic \&Sh
|
|
|
|
.It Ic \&Nm Ta \&No Ta Yes Ta closed by Ic \&Nm , Ic \&Sh , Ic \&Ss
|
|
|
|
.It Ic \&Sh Ta \&No Ta Yes Ta closed by Ic \&Sh
|
|
|
|
.It Ic \&Ss Ta \&No Ta Yes Ta closed by Ic \&Sh , Ic \&Ss
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Note that the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Nm
|
2012-10-18 09:55:16 +00:00
|
|
|
macro is a
|
|
|
|
.Sx Block full-implicit
|
|
|
|
macro only when invoked as the first macro
|
|
|
|
in a
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section line, else it is
|
|
|
|
.Sx In-line .
|
|
|
|
.Ss Block partial-explicit
|
|
|
|
Like block full-explicit, but also with single-line scope.
|
|
|
|
Each has at least a body and, in limited circumstances, a head
|
|
|
|
.Po
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Fo ,
|
|
|
|
.Ic \&Eo
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pc
|
|
|
|
and/or tail
|
2019-03-29 13:13:30 +00:00
|
|
|
.Pq Ic \&Ec .
|
2012-10-18 09:55:16 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead...\(rB
|
|
|
|
\(lBbody...\(rB
|
|
|
|
\&.Yc \(lBtail...\(rB
|
|
|
|
|
|
|
|
\&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead...\(rB \
|
|
|
|
\(lBbody...\(rB \&Yc \(lBtail...\(rB
|
|
|
|
.Ed
|
|
|
|
.Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXXX" -offset indent
|
|
|
|
.It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ac Ta Yes Ta Yes Ta opened by Ic \&Ao
|
|
|
|
.It Ic \&Ao Ta Yes Ta Yes Ta closed by Ic \&Ac
|
|
|
|
.It Ic \&Bc Ta Yes Ta Yes Ta closed by Ic \&Bo
|
|
|
|
.It Ic \&Bo Ta Yes Ta Yes Ta opened by Ic \&Bc
|
|
|
|
.It Ic \&Brc Ta Yes Ta Yes Ta opened by Ic \&Bro
|
|
|
|
.It Ic \&Bro Ta Yes Ta Yes Ta closed by Ic \&Brc
|
|
|
|
.It Ic \&Dc Ta Yes Ta Yes Ta opened by Ic \&Do
|
|
|
|
.It Ic \&Do Ta Yes Ta Yes Ta closed by Ic \&Dc
|
|
|
|
.It Ic \&Ec Ta Yes Ta Yes Ta opened by Ic \&Eo
|
|
|
|
.It Ic \&Eo Ta Yes Ta Yes Ta closed by Ic \&Ec
|
|
|
|
.It Ic \&Fc Ta Yes Ta Yes Ta opened by Ic \&Fo
|
|
|
|
.It Ic \&Fo Ta \&No Ta \&No Ta closed by Ic \&Fc
|
|
|
|
.It Ic \&Oc Ta Yes Ta Yes Ta closed by Ic \&Oo
|
|
|
|
.It Ic \&Oo Ta Yes Ta Yes Ta opened by Ic \&Oc
|
|
|
|
.It Ic \&Pc Ta Yes Ta Yes Ta closed by Ic \&Po
|
|
|
|
.It Ic \&Po Ta Yes Ta Yes Ta opened by Ic \&Pc
|
|
|
|
.It Ic \&Qc Ta Yes Ta Yes Ta opened by Ic \&Oo
|
|
|
|
.It Ic \&Qo Ta Yes Ta Yes Ta closed by Ic \&Oc
|
|
|
|
.It Ic \&Re Ta \&No Ta \&No Ta opened by Ic \&Rs
|
|
|
|
.It Ic \&Rs Ta \&No Ta \&No Ta closed by Ic \&Re
|
|
|
|
.It Ic \&Sc Ta Yes Ta Yes Ta opened by Ic \&So
|
|
|
|
.It Ic \&So Ta Yes Ta Yes Ta closed by Ic \&Sc
|
|
|
|
.It Ic \&Xc Ta Yes Ta Yes Ta opened by Ic \&Xo
|
|
|
|
.It Ic \&Xo Ta Yes Ta Yes Ta closed by Ic \&Xc
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Ss Block partial-implicit
|
|
|
|
Like block full-implicit, but with single-line scope closed by the
|
|
|
|
end of the line.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Yo \(lB\-arg \(lBval...\(rB\(rB \(lBbody...\(rB \(lBres...\(rB
|
|
|
|
.Ed
|
|
|
|
.Bl -column "MacroX" "CallableX" "ParsedX" -offset indent
|
|
|
|
.It Em Macro Ta Em Callable Ta Em Parsed
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Aq Ta Yes Ta Yes
|
|
|
|
.It Ic \&Bq Ta Yes Ta Yes
|
|
|
|
.It Ic \&Brq Ta Yes Ta Yes
|
|
|
|
.It Ic \&D1 Ta \&No Ta \&Yes
|
|
|
|
.It Ic \&Dl Ta \&No Ta Yes
|
|
|
|
.It Ic \&Dq Ta Yes Ta Yes
|
|
|
|
.It Ic \&En Ta Yes Ta Yes
|
|
|
|
.It Ic \&Op Ta Yes Ta Yes
|
|
|
|
.It Ic \&Pq Ta Yes Ta Yes
|
|
|
|
.It Ic \&Ql Ta Yes Ta Yes
|
|
|
|
.It Ic \&Qq Ta Yes Ta Yes
|
|
|
|
.It Ic \&Sq Ta Yes Ta Yes
|
|
|
|
.It Ic \&Vt Ta Yes Ta Yes
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Note that the
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Vt
|
2012-10-18 09:55:16 +00:00
|
|
|
macro is a
|
|
|
|
.Sx Block partial-implicit
|
|
|
|
only when invoked as the first macro
|
|
|
|
in a
|
|
|
|
.Em SYNOPSIS
|
|
|
|
section line, else it is
|
|
|
|
.Sx In-line .
|
|
|
|
.Ss Special block macro
|
|
|
|
The
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ta
|
2012-10-18 09:55:16 +00:00
|
|
|
macro can only be used below
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
in
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bl Fl column
|
2012-10-18 09:55:16 +00:00
|
|
|
lists.
|
|
|
|
It delimits blocks representing table cells;
|
|
|
|
these blocks have bodies, but no heads.
|
|
|
|
.Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXXX" -offset indent
|
|
|
|
.It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Ta Ta Yes Ta Yes Ta closed by Ic \&Ta , Ic \&It
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Ss In-line
|
|
|
|
Closed by the end of the line, fixed argument lengths,
|
|
|
|
and/or subsequent macros.
|
|
|
|
In-line macros have only text children.
|
|
|
|
If a number (or inequality) of arguments is
|
|
|
|
.Pq n ,
|
|
|
|
then the macro accepts an arbitrary number of arguments.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
\&.Yo \(lB\-arg \(lBval...\(rB\(rB \(lBargs...\(rB \(lBres...\(rB
|
|
|
|
|
|
|
|
\&.Yo \(lB\-arg \(lBval...\(rB\(rB \(lBargs...\(rB Yc...
|
|
|
|
|
|
|
|
\&.Yo \(lB\-arg \(lBval...\(rB\(rB arg0 arg1 argN
|
|
|
|
.Ed
|
|
|
|
.Bl -column "MacroX" "CallableX" "ParsedX" "Arguments" -offset indent
|
|
|
|
.It Em Macro Ta Em Callable Ta Em Parsed Ta Em Arguments
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&%A Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%B Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%C Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%D Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%I Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%J Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%N Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%O Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%P Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%Q Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%R Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%T Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%U Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&%V Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&Ad Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&An Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Ap Ta Yes Ta Yes Ta 0
|
|
|
|
.It Ic \&Ar Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&At Ta Yes Ta Yes Ta 1
|
|
|
|
.It Ic \&Bsx Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&Bt Ta \&No Ta \&No Ta 0
|
|
|
|
.It Ic \&Bx Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&Cd Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Cm Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Db Ta \&No Ta \&No Ta 1
|
|
|
|
.It Ic \&Dd Ta \&No Ta \&No Ta n
|
|
|
|
.It Ic \&Dt Ta \&No Ta \&No Ta n
|
|
|
|
.It Ic \&Dv Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Dx Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&Em Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Er Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Es Ta Yes Ta Yes Ta 2
|
|
|
|
.It Ic \&Ev Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Ex Ta \&No Ta \&No Ta n
|
|
|
|
.It Ic \&Fa Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Fd Ta \&No Ta \&No Ta >0
|
|
|
|
.It Ic \&Fl Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&Fn Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Fr Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Ft Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Fx Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&Hf Ta \&No Ta \&No Ta n
|
|
|
|
.It Ic \&Ic Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&In Ta \&No Ta \&No Ta 1
|
|
|
|
.It Ic \&Lb Ta \&No Ta \&No Ta 1
|
|
|
|
.It Ic \&Li Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Lk Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Lp Ta \&No Ta \&No Ta 0
|
|
|
|
.It Ic \&Ms Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Mt Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Nm Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&No Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Ns Ta Yes Ta Yes Ta 0
|
|
|
|
.It Ic \&Nx Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&Os Ta \&No Ta \&No Ta n
|
|
|
|
.It Ic \&Ot Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Ox Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&Pa Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&Pf Ta Yes Ta Yes Ta 1
|
|
|
|
.It Ic \&Pp Ta \&No Ta \&No Ta 0
|
|
|
|
.It Ic \&Rv Ta \&No Ta \&No Ta n
|
|
|
|
.It Ic \&Sm Ta \&No Ta \&No Ta <2
|
|
|
|
.It Ic \&St Ta \&No Ta Yes Ta 1
|
|
|
|
.It Ic \&Sx Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Sy Ta Yes Ta Yes Ta >0
|
2021-11-15 15:35:39 +00:00
|
|
|
.It Ic \&Tg Ta \&No Ta \&No Ta <2
|
2019-03-29 13:13:30 +00:00
|
|
|
.It Ic \&Tn Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Ud Ta \&No Ta \&No Ta 0
|
|
|
|
.It Ic \&Ux Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&Va Ta Yes Ta Yes Ta n
|
|
|
|
.It Ic \&Vt Ta Yes Ta Yes Ta >0
|
|
|
|
.It Ic \&Xr Ta Yes Ta Yes Ta 2
|
2012-10-18 09:55:16 +00:00
|
|
|
.El
|
|
|
|
.Ss Delimiters
|
|
|
|
When a macro argument consists of one single input character
|
|
|
|
considered as a delimiter, the argument gets special handling.
|
|
|
|
This does not apply when delimiters appear in arguments containing
|
|
|
|
more than one character.
|
|
|
|
Consequently, to prevent special handling and just handle it
|
|
|
|
like any other argument, a delimiter can be escaped by prepending
|
|
|
|
a zero-width space
|
|
|
|
.Pq Sq \e& .
|
|
|
|
In text lines, delimiters never need escaping, but may be used
|
|
|
|
as normal punctuation.
|
|
|
|
.Pp
|
|
|
|
For many macros, when the leading arguments are opening delimiters,
|
|
|
|
these delimiters are put before the macro scope,
|
|
|
|
and when the trailing arguments are closing delimiters,
|
|
|
|
these delimiters are put after the macro scope.
|
2017-02-19 17:41:20 +00:00
|
|
|
Spacing is suppressed after opening delimiters
|
|
|
|
and before closing delimiters.
|
2012-10-18 09:55:16 +00:00
|
|
|
For example,
|
|
|
|
.Pp
|
|
|
|
.D1 Pf \. \&Aq "( [ word ] ) ."
|
|
|
|
.Pp
|
|
|
|
renders as:
|
|
|
|
.Pp
|
|
|
|
.D1 Aq ( [ word ] ) .
|
|
|
|
.Pp
|
|
|
|
Opening delimiters are:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Ds -offset indent -compact
|
|
|
|
.It \&(
|
|
|
|
left parenthesis
|
|
|
|
.It \&[
|
|
|
|
left bracket
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Closing delimiters are:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Ds -offset indent -compact
|
|
|
|
.It \&.
|
|
|
|
period
|
|
|
|
.It \&,
|
|
|
|
comma
|
|
|
|
.It \&:
|
|
|
|
colon
|
|
|
|
.It \&;
|
|
|
|
semicolon
|
|
|
|
.It \&)
|
|
|
|
right parenthesis
|
|
|
|
.It \&]
|
|
|
|
right bracket
|
|
|
|
.It \&?
|
|
|
|
question mark
|
|
|
|
.It \&!
|
|
|
|
exclamation mark
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Note that even a period preceded by a backslash
|
|
|
|
.Pq Sq \e.\&
|
|
|
|
gets this special handling; use
|
2019-07-26 09:51:35 +00:00
|
|
|
.Sq \e&.\&
|
2012-10-18 09:55:16 +00:00
|
|
|
to prevent that.
|
|
|
|
.Pp
|
|
|
|
Many in-line macros interrupt their scope when they encounter
|
|
|
|
delimiters, and resume their scope when more arguments follow that
|
|
|
|
are not delimiters.
|
|
|
|
For example,
|
|
|
|
.Pp
|
|
|
|
.D1 Pf \. \&Fl "a ( b | c \e*(Ba d ) e"
|
|
|
|
.Pp
|
|
|
|
renders as:
|
|
|
|
.Pp
|
|
|
|
.D1 Fl a ( b | c \*(Ba d ) e
|
|
|
|
.Pp
|
|
|
|
This applies to both opening and closing delimiters,
|
2017-02-19 17:41:20 +00:00
|
|
|
and also to the middle delimiter, which does not suppress spacing:
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Ds -offset indent -compact
|
|
|
|
.It \&|
|
|
|
|
vertical bar
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
As a special case, the predefined string \e*(Ba is handled and rendered
|
|
|
|
in the same way as a plain
|
|
|
|
.Sq \&|
|
|
|
|
character.
|
|
|
|
Using this predefined string is not recommended in new manuals.
|
2019-07-26 09:51:35 +00:00
|
|
|
.Pp
|
|
|
|
Appending a zero-width space
|
|
|
|
.Pq Sq \e&
|
|
|
|
to the end of an input line is also useful to prevent the interpretation
|
|
|
|
of a trailing period, exclamation or question mark as the end of a
|
|
|
|
sentence, for example when an abbreviation happens to occur
|
|
|
|
at the end of a text or macro input line.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Ss Font handling
|
|
|
|
In
|
|
|
|
.Nm
|
|
|
|
documents, usage of semantic markup is recommended in order to have
|
|
|
|
proper fonts automatically selected; only when no fitting semantic markup
|
|
|
|
is available, consider falling back to
|
|
|
|
.Sx Physical markup
|
|
|
|
macros.
|
|
|
|
Whenever any
|
|
|
|
.Nm
|
|
|
|
macro switches the
|
|
|
|
.Xr roff 7
|
|
|
|
font mode, it will automatically restore the previous font when exiting
|
|
|
|
its scope.
|
|
|
|
Manually switching the font using the
|
|
|
|
.Xr roff 7
|
|
|
|
.Ql \ef
|
|
|
|
font escape sequences is never required.
|
|
|
|
.Sh COMPATIBILITY
|
2014-11-22 18:08:25 +00:00
|
|
|
This section provides an incomplete list of compatibility issues
|
2015-03-02 16:45:41 +00:00
|
|
|
between mandoc and GNU troff
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pq Qq groff .
|
|
|
|
.Pp
|
|
|
|
The following problematic behaviour is found in groff:
|
|
|
|
.Pp
|
|
|
|
.Bl -dash -compact
|
|
|
|
.It
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Pa
|
2012-10-18 09:55:16 +00:00
|
|
|
does not format its arguments when used in the FILES section under
|
|
|
|
certain list types.
|
|
|
|
.It
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Ta
|
2012-10-18 09:55:16 +00:00
|
|
|
can only be called by other macros, but not at the beginning of a line.
|
|
|
|
.It
|
|
|
|
.Sq \ef
|
|
|
|
.Pq font face
|
|
|
|
and
|
2014-11-22 18:08:25 +00:00
|
|
|
.Sq \eF
|
2012-10-18 09:55:16 +00:00
|
|
|
.Pq font family face
|
|
|
|
.Sx Text Decoration
|
|
|
|
escapes behave irregularly when specified within line-macro scopes.
|
|
|
|
.It
|
|
|
|
Negative scaling units return to prior lines.
|
|
|
|
Instead, mandoc truncates them to zero.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The following features are unimplemented in mandoc:
|
|
|
|
.Pp
|
|
|
|
.Bl -dash -compact
|
|
|
|
.It
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bd Fl file Ar file
|
2015-03-02 16:45:41 +00:00
|
|
|
is unsupported for security reasons.
|
|
|
|
.It
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bd
|
2015-03-02 16:45:41 +00:00
|
|
|
.Fl filled
|
|
|
|
does not adjust the right margin, but is an alias for
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bd
|
2015-03-02 16:45:41 +00:00
|
|
|
.Fl ragged .
|
|
|
|
.It
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bd
|
2015-03-02 16:45:41 +00:00
|
|
|
.Fl literal
|
|
|
|
does not use a literal font, but is an alias for
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bd
|
2015-03-02 16:45:41 +00:00
|
|
|
.Fl unfilled .
|
2012-10-18 09:55:16 +00:00
|
|
|
.It
|
2019-03-29 13:13:30 +00:00
|
|
|
.Ic \&Bd
|
2014-11-22 18:08:25 +00:00
|
|
|
.Fl offset Cm center
|
2012-10-18 09:55:16 +00:00
|
|
|
and
|
2015-03-02 16:45:41 +00:00
|
|
|
.Fl offset Cm right
|
|
|
|
don't work.
|
|
|
|
Groff does not implement centered and flush-right rendering either,
|
2012-10-18 09:55:16 +00:00
|
|
|
but produces large indentations.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr man 1 ,
|
|
|
|
.Xr mandoc 1 ,
|
|
|
|
.Xr eqn 7 ,
|
|
|
|
.Xr man 7 ,
|
|
|
|
.Xr mandoc_char 7 ,
|
|
|
|
.Xr roff 7 ,
|
|
|
|
.Xr tbl 7
|
2017-01-21 13:01:39 +00:00
|
|
|
.Pp
|
|
|
|
The web page
|
2021-11-15 15:35:39 +00:00
|
|
|
.Lk https://mandoc.bsd.lv/mdoc/ "extended documentation for the mdoc language"
|
2017-01-21 13:01:39 +00:00
|
|
|
provides a few tutorial-style pages for beginners, an extensive style
|
|
|
|
guide for advanced authors, and an alphabetic index helping to choose
|
|
|
|
the best macros for various kinds of content.
|
2021-11-15 15:35:39 +00:00
|
|
|
.Pp
|
|
|
|
The manual page
|
|
|
|
.Lk https://man.voidlinux.org/groff_mdoc "groff_mdoc(7)"
|
|
|
|
contained in the
|
|
|
|
.Dq groff
|
|
|
|
package documents exactly the same language in a somewhat different style.
|
2012-10-18 09:55:16 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
language first appeared as a troff macro package in
|
|
|
|
.Bx 4.4 .
|
|
|
|
It was later significantly updated by Werner Lemberg and Ruslan Ermilov
|
|
|
|
in groff-1.17.
|
|
|
|
The standalone implementation that is part of the
|
|
|
|
.Xr mandoc 1
|
|
|
|
utility written by Kristaps Dzonsons appeared in
|
|
|
|
.Ox 4.6 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
reference was written by
|
2014-01-31 19:59:03 +00:00
|
|
|
.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv .
|