[BACK]Return to mdoc.7 CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/mdoc.7, Revision 1.80

1.80    ! kristaps    1: .\"    $Id: mdoc.7,v 1.79 2010/01/01 13:35:30 kristaps Exp $
1.1       kristaps    2: .\"
1.23      kristaps    3: .\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
1.1       kristaps    4: .\"
                      5: .\" Permission to use, copy, modify, and distribute this software for any
1.22      kristaps    6: .\" purpose with or without fee is hereby granted, provided that the above
                      7: .\" copyright notice and this permission notice appear in all copies.
1.1       kristaps    8: .\"
1.22      kristaps    9: .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
                     10: .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
                     11: .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
                     12: .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     13: .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
                     14: .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
                     15: .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1.50      kristaps   16: .\"
1.1       kristaps   17: .Dd $Mdocdate$
1.20      kristaps   18: .Dt MDOC 7
1.1       kristaps   19: .Os
1.56      kristaps   20: .
                     21: .
1.1       kristaps   22: .Sh NAME
1.57      kristaps   23: .Nm mdoc
                     24: .Nd mdoc language reference
1.56      kristaps   25: .
                     26: .
1.1       kristaps   27: .Sh DESCRIPTION
                     28: The
1.57      kristaps   29: .Nm mdoc
1.50      kristaps   30: language is used to format
1.57      kristaps   31: .Bx
                     32: .Ux
1.43      kristaps   33: manuals.  In this reference document, we describe its syntax, structure,
                     34: and usage.  Our reference implementation is
1.57      kristaps   35: .Xr mandoc 1 .
1.28      kristaps   36: The
1.57      kristaps   37: .Sx COMPATIBILITY
1.50      kristaps   38: section describes compatibility with
1.57      kristaps   39: .Xr groff 1 .
                     40: .
                     41: .Pp
1.13      kristaps   42: An
1.57      kristaps   43: .Nm
1.1       kristaps   44: document follows simple rules:  lines beginning with the control
1.50      kristaps   45: character
1.57      kristaps   46: .Sq \.
1.1       kristaps   47: are parsed for macros.  Other lines are interpreted within the scope of
1.13      kristaps   48: prior macros:
1.57      kristaps   49: .Bd -literal -offset indent
1.13      kristaps   50: \&.Sh Macro lines change control state.
                     51: Other lines are interpreted within the current state.
1.57      kristaps   52: .Ed
1.56      kristaps   53: .
                     54: .
1.46      kristaps   55: .Sh LANGUAGE SYNTAX
1.57      kristaps   56: .Nm
1.13      kristaps   57: documents may contain only graphable 7-bit ASCII characters, the space
1.43      kristaps   58: character, and, in certain circumstances, the tab character.  All
                     59: manuals must have
1.57      kristaps   60: .Ux
1.50      kristaps   61: line terminators.
1.56      kristaps   62: .
                     63: .
1.57      kristaps   64: .Ss Comments
1.43      kristaps   65: Text following a
1.57      kristaps   66: .Sq \e" ,
1.43      kristaps   67: whether in a macro or free-form text line, is ignored to the end of
                     68: line.  A macro line with only a control character and comment escape,
1.57      kristaps   69: .Sq \&.\e" ,
1.58      kristaps   70: is also ignored.  Macro lines with only a control charater and optionally
                     71: whitespace are stripped from input.
1.56      kristaps   72: .
                     73: .
1.57      kristaps   74: .Ss Reserved Characters
1.2       kristaps   75: Within a macro line, the following characters are reserved:
1.61      kristaps   76: .Pp
1.57      kristaps   77: .Bl -tag -width Ds -offset indent -compact
                     78: .It \&.
                     79: .Pq period
                     80: .It \&,
                     81: .Pq comma
                     82: .It \&:
                     83: .Pq colon
                     84: .It \&;
                     85: .Pq semicolon
                     86: .It \&(
                     87: .Pq left-parenthesis
                     88: .It \&)
                     89: .Pq right-parenthesis
                     90: .It \&[
                     91: .Pq left-bracket
                     92: .It \&]
                     93: .Pq right-bracket
                     94: .It \&?
                     95: .Pq question
                     96: .It \&!
                     97: .Pq exclamation
                     98: .It \&|
                     99: .Pq vertical bar
                    100: .El
                    101: .
                    102: .Pp
1.5       kristaps  103: Use of reserved characters is described in
1.57      kristaps  104: .Sx MACRO SYNTAX .
1.43      kristaps  105: For general use in macro lines, these characters must either be escaped
                    106: with a non-breaking space
1.57      kristaps  107: .Pq Sq \e&
1.50      kristaps  108: or, if applicable, an appropriate escape sequence used.
1.56      kristaps  109: .
                    110: .
1.57      kristaps  111: .Ss Special Characters
1.43      kristaps  112: Special characters may occur in both macro and free-form lines.
                    113: Sequences begin with the escape character
1.57      kristaps  114: .Sq \e
1.50      kristaps  115: followed by either an open-parenthesis
1.57      kristaps  116: .Sq \&(
1.1       kristaps  117: for two-character sequences; an open-bracket
1.57      kristaps  118: .Sq \&[
1.1       kristaps  119: for n-character sequences (terminated at a close-bracket
1.57      kristaps  120: .Sq \&] ) ;
1.43      kristaps  121: or a single one-character sequence.  See
1.57      kristaps  122: .Xr mandoc_char 7
1.50      kristaps  123: for a complete list.  Examples include
1.57      kristaps  124: .Sq \e(em
                    125: .Pq em-dash
1.50      kristaps  126: and
1.57      kristaps  127: .Sq \ee
                    128: .Pq back-slash .
1.56      kristaps  129: .
                    130: .
1.57      kristaps  131: .Ss Text Decoration
1.54      kristaps  132: Terms may be text-decorated using the
1.57      kristaps  133: .Sq \ef
1.74      kristaps  134: escape followed by an indicator: B (bold), I, (italic), R (Roman), or P
1.76      kristaps  135: (revert to previous mode):
1.75      kristaps  136: .Pp
1.76      kristaps  137: .D1 \efBbold\efR \efIitalic\efP
                    138: .Pp
                    139: A numerical representation 3, 2, or 1 (bold, italic, and Roman,
1.77      kristaps  140: respectively) may be used instead.  A text decoration is valid within
                    141: the current font scope only:  if a macro opens a font scope alongside
                    142: its own scope, such as
1.78      kristaps  143: .Sx \&Bf
1.77      kristaps  144: .Cm \&Sy ,
                    145: in-scope invocations of
                    146: .Sq \ef
                    147: are only valid within the font scope of the macro.  If
                    148: .Sq \ef
                    149: is specified outside of any font scope, such as in unenclosed, free-form
                    150: text, it will affect the remainder of the document.
1.76      kristaps  151: .Pp
                    152: Text may also be sized with the
                    153: .Sq \es
                    154: escape, whose syntax is one of
                    155: .Sq \es+-n
                    156: for one-digit numerals;
                    157: .Sq \es(+-nn
                    158: or
                    159: .Sq \es+-(nn
                    160: for two-digit numerals; and
                    161: .Sq \es[+-N] ,
                    162: .Sq \es+-[N] ,
                    163: .Sq \es'+-N' ,
                    164: or
                    165: .Sq \es+-'N'
                    166: for arbitrary-digit numerals:
                    167: .Pp
                    168: .D1 \es+1bigger\es-1
                    169: .D1 \es[+10]much bigger\es[-10]
                    170: .D1 \es+(10much bigger\es-(10
                    171: .D1 \es+'100'much much bigger\es-'100'
                    172: .Pp
                    173: Note these forms are
                    174: .Em not
                    175: recommended for
1.57      kristaps  176: .Nm ,
1.74      kristaps  177: which encourages semantic annotation.
1.56      kristaps  178: .
                    179: .
1.57      kristaps  180: .Ss Predefined Strings
1.54      kristaps  181: Historically,
1.57      kristaps  182: .Xr groff 1
1.54      kristaps  183: also defined a set of package-specific
1.57      kristaps  184: .Dq predefined strings ,
1.54      kristaps  185: which, like
1.57      kristaps  186: .Sx Special Characters ,
1.54      kristaps  187: demark special output characters and strings by way of input codes.
                    188: Predefined strings are escaped with the slash-asterisk,
1.57      kristaps  189: .Sq \e* :
1.54      kristaps  190: single-character
1.57      kristaps  191: .Sq \e*X ,
1.54      kristaps  192: two-character
1.57      kristaps  193: .Sq \e*(XX ,
1.54      kristaps  194: and N-character
1.57      kristaps  195: .Sq \e*[N] .
1.54      kristaps  196: See
1.57      kristaps  197: .Xr mandoc_char 7
1.54      kristaps  198: for a complete list.  Examples include
1.57      kristaps  199: .Sq \e*(Am
                    200: .Pq ampersand
1.54      kristaps  201: and
1.57      kristaps  202: .Sq \e*(Ba
                    203: .Pq vertical bar .
1.56      kristaps  204: .
                    205: .
1.57      kristaps  206: .Ss Whitespace
1.46      kristaps  207: In non-literal free-form lines, consecutive blocks of whitespace are
                    208: pruned from input and added later in the output filter, if applicable:
1.57      kristaps  209: .Bd -literal -offset indent
1.46      kristaps  210: These     spaces   are    pruned       from    input.
1.50      kristaps  211: \&.Bd \-literal
1.46      kristaps  212: These         are              not.
                    213: \&.Ed
1.57      kristaps  214: .Ed
                    215: .
                    216: .Pp
1.46      kristaps  217: In macro lines, whitespace delimits arguments and is discarded.  If
1.47      kristaps  218: arguments are quoted, whitespace within the quotes is retained.
1.57      kristaps  219: .
                    220: .Pp
1.46      kristaps  221: Blank lines are only permitted within literal contexts, as are lines
                    222: containing only whitespace.  Tab characters are only acceptable when
1.50      kristaps  223: delimiting
1.57      kristaps  224: .Sq \&Bl \-column
1.46      kristaps  225: or when in a literal context.
1.56      kristaps  226: .
                    227: .
1.57      kristaps  228: .Ss Quotation
1.46      kristaps  229: Macro arguments may be quoted with a double-quote to group
                    230: space-delimited terms or to retain blocks of whitespace.  A quoted
                    231: argument begins with a double-quote preceded by whitespace.  The next
1.48      kristaps  232: double-quote not pair-wise adjacent to another double-quote terminates
1.50      kristaps  233: the literal, regardless of surrounding whitespace.
1.57      kristaps  234: .
                    235: .Pp
1.50      kristaps  236: This produces tokens
1.57      kristaps  237: .Sq a" ,
                    238: .Sq b c ,
                    239: .Sq de ,
1.47      kristaps  240: and
1.57      kristaps  241: .Sq fg" .
1.47      kristaps  242: Note that any quoted term, be it argument or macro, is indiscriminately
1.50      kristaps  243: considered literal text.  Thus, the following produces
1.57      kristaps  244: .Sq \&Em a :
                    245: .Bd -literal -offset indent
1.47      kristaps  246: \&.Em "Em a"
1.57      kristaps  247: .Ed
                    248: .
                    249: .Pp
1.46      kristaps  250: In free-form mode, quotes are regarded as opaque text.
1.56      kristaps  251: .
1.63      kristaps  252: .Ss Dates
1.66      kristaps  253: There are several macros in
                    254: .Nm
1.72      kristaps  255: that require a date argument.  The canonical form for dates is the
                    256: American format:
1.66      kristaps  257: .Pp
                    258: .D1 Cm Month Day , Year
                    259: .Pp
                    260: The
                    261: .Cm Day
                    262: value is an optionally zero-padded numeral.  The
                    263: .Cm Month
                    264: value is the full month name.  The
                    265: .Cm Year
                    266: value is the full four-digit year.
                    267: .Pp
1.72      kristaps  268: Reduced form dates are broken-down canonical form dates:
1.66      kristaps  269: .Pp
1.72      kristaps  270: .D1 Cm Month , Year
                    271: .D1 Cm Year
1.66      kristaps  272: .Pp
                    273: Some examples of valid dates follow:
                    274: .Pp
                    275: .D1 "May, 2009" Pq reduced form
                    276: .D1 "2009" Pq reduced form
                    277: .D1 "May 20, 2009" Pq canonical form
1.63      kristaps  278: .
1.61      kristaps  279: .Ss Scaling Widths
                    280: Many macros support scaled widths for their arguments, such as
                    281: stipulating a two-inch list indentation with the following:
                    282: .Bd -literal -offset indent
                    283: \&.Bl -tag -width 2i
                    284: .Ed
                    285: .
                    286: .Pp
                    287: The syntax for scaled widths is
1.62      kristaps  288: .Sq Li [+-]?[0-9]*.[0-9]*[:unit:] ,
1.61      kristaps  289: where a decimal must be preceded or proceeded by at least one digit.
                    290: Negative numbers, while accepted, are truncated to zero.  The following
                    291: scaling units are accepted:
                    292: .Pp
                    293: .Bl -tag -width Ds -offset indent -compact
                    294: .It c
                    295: centimetre
                    296: .It i
                    297: inch
                    298: .It P
                    299: pica (~1/6 inch)
                    300: .It p
                    301: point (~1/72 inch)
                    302: .It f
                    303: synonym for
                    304: .Sq u
                    305: .It v
                    306: default vertical span
                    307: .It m
                    308: width of rendered
                    309: .Sq m
                    310: .Pq em
                    311: character
                    312: .It n
                    313: width of rendered
                    314: .Sq n
                    315: .Pq en
                    316: character
                    317: .It u
                    318: default horizontal span
                    319: .It M
                    320: mini-em (~1/100 em)
                    321: .El
                    322: .Pp
                    323: Using anything other than
                    324: .Sq m ,
                    325: .Sq n ,
                    326: .Sq u ,
                    327: or
                    328: .Sq v
                    329: is necessarily non-portable across output media.  See
                    330: .Sx COMPATIBILITY .
                    331: .
1.56      kristaps  332: .
1.43      kristaps  333: .Sh MANUAL STRUCTURE
1.66      kristaps  334: A well-formed
1.57      kristaps  335: .Nm
1.66      kristaps  336: document consists of a document prologue followed by one or more
                    337: sections.
                    338: .Pp
                    339: The prologue, which consists of (in order) the
1.64      kristaps  340: .Sx \&Dd ,
                    341: .Sx \&Dt ,
1.33      kristaps  342: and
1.66      kristaps  343: .Sx \&Os
                    344: macros, is required for every document.
                    345: .Pp
                    346: The first section (sections are denoted by
                    347: .Sx \&Sh )
                    348: must be the NAME section, consisting of at least one
1.64      kristaps  349: .Sx \&Nm
1.50      kristaps  350: followed by
1.66      kristaps  351: .Sx \&Nd .
                    352: .Pp
                    353: Following that, convention dictates specifying at least the SYNOPSIS and
                    354: DESCRIPTION sections, although this varies between manual sections.
                    355: .Pp
                    356: The following is a well-formed skeleton
                    357: .Nm
                    358: file:
1.57      kristaps  359: .Bd -literal -offset indent
1.43      kristaps  360: \&.Dd $\&Mdocdate$
                    361: \&.Dt mdoc 7
                    362: \&.Os
1.58      kristaps  363: \&.
1.43      kristaps  364: \&.Sh NAME
1.58      kristaps  365: \&.Nm foo
                    366: \&.Nd a description goes here
                    367: \&.\e\*q The next is for sections 2 & 3 only.
                    368: \&.\e\*q .Sh LIBRARY
                    369: \&.
                    370: \&.Sh SYNOPSIS
                    371: \&.Nm foo
                    372: \&.Op Fl options
                    373: \&.Ar
                    374: \&.
                    375: \&.Sh DESCRIPTION
                    376: The
                    377: \&.Nm
                    378: utility processes files ...
1.59      kristaps  379: \&.\e\*q .Sh IMPLEMENTATION NOTES
1.58      kristaps  380: \&.\e\*q The next is for sections 1 & 8 only.
                    381: \&.\e\*q .Sh EXIT STATUS
                    382: \&.\e\*q The next is for sections 2, 3, & 9 only.
                    383: \&.\e\*q .Sh RETURN VALUES
                    384: \&.\e\*q The next is for sections 1, 6, 7, & 8 only.
                    385: \&.\e\*q .Sh ENVIRONMENT
                    386: \&.\e\*q .Sh FILES
                    387: \&.\e\*q .Sh EXAMPLES
                    388: \&.\e\*q The next is for sections 1, 4, 6, 7, & 8 only.
                    389: \&.\e\*q .Sh DIAGNOSTICS
                    390: \&.\e\*q The next is for sections 2, 3, & 9 only.
                    391: \&.\e\*q .Sh ERRORS
                    392: \&.\e\*q .Sh SEE ALSO
                    393: \&.\e\*q .Xr foobar 1
                    394: \&.\e\*q .Sh STANDARDS
                    395: \&.\e\*q .Sh HISTORY
                    396: \&.\e\*q .Sh AUTHORS
                    397: \&.\e\*q .Sh CAVEATS
                    398: \&.\e\*q .Sh BUGS
                    399: \&.\e\*q .Sh SECURITY CONSIDERATIONS
1.57      kristaps  400: .Ed
                    401: .Pp
1.66      kristaps  402: The sections in a
                    403: .Nm
                    404: document are conventionally ordered as they appear above.  Sections
                    405: should be composed as follows:
1.73      kristaps  406: .Bl -ohang -offset Ds
                    407: .It Em NAME
                    408: The name(s) and a short description of the documented material.  The
                    409: syntax for this as follows:
                    410: .Bd -literal -offset indent
                    411: \&.Nm name0
                    412: \&.Nm name1
                    413: \&.Nm name2
                    414: \&.Nd a short description
                    415: .Ed
                    416: .Pp
                    417: The
1.66      kristaps  418: .Sx \&Nm
1.73      kristaps  419: macro(s) must precede the
                    420: .Sx \&Nd
                    421: macro.
1.80    ! kristaps  422: .Pp
        !           423: See
        !           424: .Sx \&Nm
        !           425: and
        !           426: .Sx \&Nd .
1.73      kristaps  427: .
                    428: .It Em LIBRARY
                    429: The name of the library containing the documented material, which is
                    430: assumed to be a function in a section 2 or 3 manual.  The syntax for
                    431: this is as follows:
                    432: .Bd -literal -offset indent
                    433: \&.Lb libarm
                    434: .Ed
                    435: .Pp
                    436: See
1.80    ! kristaps  437: .Sx \&Lb .
1.73      kristaps  438: .
                    439: .It Em SYNOPSIS
                    440: Documents the utility invocation syntax, function call syntax, or device
                    441: configuration.
                    442: .Pp
                    443: For the first, utilities (sections 1, 6, and 8), this is
                    444: generally structured as follows:
                    445: .Bd -literal -offset indent
                    446: \&.Nm foo
                    447: \&.Op Fl v
                    448: \&.Op Fl o Ar file
                    449: \&.Op Ar
                    450: \&.Nm bar
                    451: \&.Op Fl v
                    452: \&.Op Fl o Ar file
                    453: \&.Op Ar
                    454: .Ed
                    455: .Pp
                    456: For the second, function calls (sections 2, 3, 9):
                    457: .Bd -literal -offset indent
                    458: \&.Vt extern const char *global;
                    459: \&.In header.h
                    460: \&.Ft "char *"
                    461: \&.Fn foo "const char *src"
                    462: \&.Ft "char *"
                    463: \&.Fn bar "const char *src"
                    464: .Ed
                    465: .Pp
                    466: And for the third, configurations (section 4):
                    467: .Bd -literal -offset indent
                    468: \&.Cd \*qit* at isa? port 0x2e\*q
                    469: \&.Cd \*qit* at isa? port 0x4e\*q
                    470: .Ed
                    471: .Pp
                    472: Manuals not in these sections generally don't need a
                    473: .Em SYNOPSIS .
1.80    ! kristaps  474: .Pp
        !           475: See
        !           476: .Sx \&Op ,
        !           477: .Sx \&Cd ,
        !           478: .Sx \&Fn ,
        !           479: .Sx \&Ft ,
        !           480: and
        !           481: .Sx \&Vt .
1.73      kristaps  482: .
                    483: .It Em DESCRIPTION
                    484: This expands upon the brief, one-line description in
                    485: .Em NAME .
                    486: It usually contains a break-down of the options (if documenting a
                    487: command), such as:
                    488: .Bd -literal -offset indent
                    489: The arguments are as follows:
                    490: \&.Bl \-tag \-width Ds
                    491: \&.It Fl v
                    492: Print verbose information.
                    493: \&.El
                    494: .Ed
1.80    ! kristaps  495: .Pp
1.73      kristaps  496: Manuals not documenting a command won't include the above fragment.
                    497: .
                    498: .It Em IMPLEMENTATION NOTES
                    499: Implementation-specific notes should be kept here.  This is useful when
                    500: implementing standard functions that may have side effects or notable
                    501: algorithmic implications.
                    502: .
                    503: .It Em EXIT STATUS
                    504: Command exit status for section 1, 6, and 8 manuals.  This section is
                    505: the dual of
                    506: .Em RETURN VALUES ,
                    507: which is used for functions.  Historically, this information was
                    508: described in
                    509: .Em DIAGNOSTICS ,
                    510: a practise that is now discouraged.
                    511: .Pp
                    512: See
                    513: .Sx \&Ex .
                    514: .
                    515: .It Em RETURN VALUES
                    516: This section is the dual of
                    517: .Em EXIT STATUS ,
                    518: which is used for commands.  It documents the return values of functions
                    519: in sections 2, 3, and 9.
                    520: .Pp
                    521: See
                    522: .Sx \&Rv .
                    523: .
                    524: .It Em ENVIRONMENT
                    525: Documents any usages of environment variables, e.g.,
                    526: .Xr environ 7 .
                    527: .Pp
                    528: See
                    529: .Sx \&Ev .
                    530: .
                    531: .It Em FILES
                    532: Documents files used.  It's helpful to document both the file and a
                    533: short description of how the file is used (created, modified, etc.).
                    534: .Pp
                    535: See
                    536: .Sx \&Pa .
                    537: .
                    538: .It Em EXAMPLES
                    539: Example usages.  This often contains snippets of well-formed,
                    540: well-tested invocations.  Make doubly sure that your examples work
                    541: properly!
                    542: .
                    543: .It Em DIAGNOSTICS
                    544: Documents error conditions.  This is most useful in section 4 manuals.
                    545: Historically, this section was used in place of
                    546: .Em EXIT STATUS
                    547: for manuals in sections 1, 6, and 8; however, this practise is
                    548: discouraged.
                    549: .Pp
                    550: See
1.80    ! kristaps  551: .Sx \&Bl
        !           552: .Fl diag .
1.73      kristaps  553: .
                    554: .It Em ERRORS
                    555: Documents error handling in sections 2, 3, and 9.
                    556: .Pp
                    557: See
                    558: .Sx \&Er .
                    559: .
                    560: .It Em SEE ALSO
                    561: References other manuals with related topics.  This section should exist
                    562: for most manuals.  Cross-references should conventionally be ordered
                    563: first by section, then alphabetically.
                    564: .Pp
                    565: See
                    566: .Sx \&Xr .
                    567: .
                    568: .It Em STANDARDS
                    569: References any standards implemented or used.  If not adhering to any
                    570: standards, the
                    571: .Em HISTORY
                    572: section should be used instead.
                    573: .Pp
                    574: See
                    575: .Sx \&St .
                    576: .
                    577: .It Em HISTORY
                    578: The history of any manual without a
                    579: .Em STANDARDS
                    580: section should be described in this section.
                    581: .
                    582: .It Em AUTHORS
                    583: Credits to authors, if applicable, should appear in this section.
                    584: Authors should generally be noted by both name and an e-mail address.
                    585: .Pp
                    586: See
                    587: .Sx \&An .
                    588: .
                    589: .It Em CAVEATS
                    590: Explanations of common misuses and misunderstandings should be explained
                    591: in this section.
                    592: .
                    593: .It Em BUGS
                    594: Extant bugs should be described in this section.
                    595: .
                    596: .It Em SECURITY CONSIDERATIONS
                    597: Documents any security precautions that operators should consider.
                    598: .
1.66      kristaps  599: .El
1.56      kristaps  600: .
                    601: .
1.43      kristaps  602: .Sh MACRO SYNTAX
1.56      kristaps  603: Macros are one to three three characters in length and begin with a
                    604: control character ,
1.57      kristaps  605: .Sq \&. ,
1.56      kristaps  606: at the beginning of the line.  An arbitrary amount of whitespace may
1.64      kristaps  607: sit between the control character and the macro name.  Thus, the
                    608: following are equivalent:
                    609: .Bd -literal -offset indent
                    610: \&.Pp
                    611: \&.\ \ \ \&Pp
                    612: .Ed
1.57      kristaps  613: .
                    614: .Pp
1.46      kristaps  615: The syntax of a macro depends on its classification.  In this section,
1.57      kristaps  616: .Sq \-arg
1.43      kristaps  617: refers to macro arguments, which may be followed by zero or more
1.57      kristaps  618: .Sq parm
1.43      kristaps  619: parameters;
1.57      kristaps  620: .Sq \&Yo
1.43      kristaps  621: opens the scope of a macro; and if specified,
1.57      kristaps  622: .Sq \&Yc
1.43      kristaps  623: closes it out.
1.57      kristaps  624: .
                    625: .Pp
1.43      kristaps  626: The
1.57      kristaps  627: .Em Callable
1.43      kristaps  628: column indicates that the macro may be called subsequent to the initial
1.55      kristaps  629: line-macro.  If a macro is not callable, then its invocation after the
                    630: initial line macro is interpreted as opaque text, such that
1.60      kristaps  631: .Sq \&.Fl \&Sh
1.55      kristaps  632: produces
1.60      kristaps  633: .Sq Fl \&Sh .
1.57      kristaps  634: .
                    635: .Pp
1.55      kristaps  636: The
1.57      kristaps  637: .Em Parsable
1.43      kristaps  638: column indicates whether the macro may be followed by further
1.55      kristaps  639: (ostensibly callable) macros.  If a macro is not parsable, subsequent
                    640: macro invocations on the line will be interpreted as opaque text.
1.57      kristaps  641: .
                    642: .Pp
1.55      kristaps  643: The
1.57      kristaps  644: .Em Scope
1.43      kristaps  645: column, if applicable, describes closure rules.
1.56      kristaps  646: .
                    647: .
1.57      kristaps  648: .Ss Block full-explicit
1.43      kristaps  649: Multi-line scope closed by an explicit closing macro.  All macros
                    650: contains bodies; only
1.64      kristaps  651: .Sx \&Bf
1.43      kristaps  652: contains a head.
1.57      kristaps  653: .Bd -literal -offset indent
1.50      kristaps  654: \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead...\(rB
                    655: \(lBbody...\(rB
1.43      kristaps  656: \&.Yc
1.57      kristaps  657: .Ed
                    658: .
                    659: .Pp
                    660: .Bl -column -compact -offset indent "MacroX" "CallableX" "ParsableX" "closed by XXX"
                    661: .It Em Macro Ta Em Callable Ta Em Parsable Ta Em Scope
1.64      kristaps  662: .It Sx \&Bd  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Ed
                    663: .It Sx \&Bf  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Ef
                    664: .It Sx \&Bk  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Ek
                    665: .It Sx \&Bl  Ta    \&No     Ta    \&No     Ta    closed by Sx \&El
                    666: .It Sx \&Ed  Ta    \&No     Ta    \&No     Ta    opened by Sx \&Bd
                    667: .It Sx \&Ef  Ta    \&No     Ta    \&No     Ta    opened by Sx \&Bf
                    668: .It Sx \&Ek  Ta    \&No     Ta    \&No     Ta    opened by Sx \&Bk
                    669: .It Sx \&El  Ta    \&No     Ta    \&No     Ta    opened by Sx \&Bl
1.57      kristaps  670: .El
1.56      kristaps  671: .
                    672: .
1.57      kristaps  673: .Ss Block full-implicit
1.43      kristaps  674: Multi-line scope closed by end-of-file or implicitly by another macro.
1.50      kristaps  675: All macros have bodies; some
1.57      kristaps  676: .Po
1.64      kristaps  677: .Sx \&It Fl bullet ,
                    678: .Fl hyphen ,
                    679: .Fl dash ,
                    680: .Fl enum ,
                    681: .Fl item
1.57      kristaps  682: .Pc
1.64      kristaps  683: don't have heads; only one
                    684: .Po
                    685: .Sx \&It Fl column
                    686: .Pc
                    687: has multiple heads.
1.57      kristaps  688: .Bd -literal -offset indent
1.50      kristaps  689: \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead... \(lBTa head...\(rB\(rB
                    690: \(lBbody...\(rB
1.57      kristaps  691: .Ed
1.56      kristaps  692: .
1.57      kristaps  693: .Pp
                    694: .Bl -column -compact -offset indent "MacroX" "CallableX" "ParsableX" "closed by XXXXXXXXXXX"
                    695: .It Em Macro Ta Em Callable Ta Em Parsable Ta Em Scope
1.64      kristaps  696: .It Sx \&It  Ta    \&No     Ta    Yes      Ta    closed by Sx \&It , Sx \&El
                    697: .It Sx \&Nd  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Sh
                    698: .It Sx \&Sh  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Sh
                    699: .It Sx \&Ss  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Sh , Sx \&Ss
1.57      kristaps  700: .El
1.56      kristaps  701: .
1.57      kristaps  702: .
                    703: .Ss Block partial-explicit
1.43      kristaps  704: Like block full-explicit, but also with single-line scope.  Each
1.50      kristaps  705: has at least a body and, in limited circumstances, a head
1.64      kristaps  706: .Po
                    707: .Sx \&Fo ,
                    708: .Sx \&Eo
                    709: .Pc
1.50      kristaps  710: and/or tail
1.64      kristaps  711: .Pq Sx \&Ec .
1.57      kristaps  712: .Bd -literal -offset indent
1.50      kristaps  713: \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead...\(rB
                    714: \(lBbody...\(rB
                    715: \&.Yc \(lBtail...\(rB
1.2       kristaps  716:
1.43      kristaps  717: \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead...\(rB \
1.50      kristaps  718: \(lBbody...\(rB \&Yc \(lBtail...\(rB
1.57      kristaps  719: .Ed
                    720: .
                    721: .Pp
                    722: .Bl -column "MacroX" "CallableX" "ParsableX" "closed by XXXX" -compact -offset indent
                    723: .It Em Macro Ta Em Callable Ta Em Parsable Ta Em Scope
1.64      kristaps  724: .It Sx \&Ac  Ta    Yes      Ta    Yes      Ta    opened by Sx \&Ao
1.63      kristaps  725: .It Sx \&Ao  Ta    Yes      Ta    Yes      Ta    closed by Sx \&Ac
1.64      kristaps  726: .It Sx \&Bc  Ta    Yes      Ta    Yes      Ta    closed by Sx \&Bo
                    727: .It Sx \&Bo  Ta    Yes      Ta    Yes      Ta    opened by Sx \&Bc
                    728: .It Sx \&Brc Ta    Yes      Ta    Yes      Ta    opened by Sx \&Bro
                    729: .It Sx \&Bro Ta    Yes      Ta    Yes      Ta    closed by Sx \&Brc
                    730: .It Sx \&Dc  Ta    Yes      Ta    Yes      Ta    opened by Sx \&Do
                    731: .It Sx \&Do  Ta    Yes      Ta    Yes      Ta    closed by Sx \&Dc
                    732: .It Sx \&Ec  Ta    Yes      Ta    Yes      Ta    opened by Sx \&Eo
                    733: .It Sx \&Eo  Ta    Yes      Ta    Yes      Ta    closed by Sx \&Ec
                    734: .It Sx \&Fc  Ta    Yes      Ta    Yes      Ta    opened by Sx \&Fo
                    735: .It Sx \&Fo  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Fc
                    736: .It Sx \&Oc  Ta    Yes      Ta    Yes      Ta    closed by Sx \&Oo
                    737: .It Sx \&Oo  Ta    Yes      Ta    Yes      Ta    opened by Sx \&Oc
                    738: .It Sx \&Pc  Ta    Yes      Ta    Yes      Ta    closed by Sx \&Po
                    739: .It Sx \&Po  Ta    Yes      Ta    Yes      Ta    opened by Sx \&Pc
                    740: .It Sx \&Qc  Ta    Yes      Ta    Yes      Ta    opened by Sx \&Oo
                    741: .It Sx \&Qo  Ta    Yes      Ta    Yes      Ta    closed by Sx \&Oc
1.63      kristaps  742: .It Sx \&Re  Ta    \&No     Ta    \&No     Ta    opened by Sx \&Rs
                    743: .It Sx \&Rs  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Re
1.64      kristaps  744: .It Sx \&Sc  Ta    Yes      Ta    Yes      Ta    opened by Sx \&So
                    745: .It Sx \&So  Ta    Yes      Ta    Yes      Ta    closed by Sx \&Sc
                    746: .It Sx \&Xc  Ta    Yes      Ta    Yes      Ta    opened by Sx \&Xo
                    747: .It Sx \&Xo  Ta    Yes      Ta    Yes      Ta    closed by Sx \&Xc
1.57      kristaps  748: .El
1.56      kristaps  749: .
                    750: .
1.57      kristaps  751: .Ss Block partial-implicit
1.50      kristaps  752: Like block full-implicit, but with single-line scope closed by
1.57      kristaps  753: .Sx Reserved Characters
1.43      kristaps  754: or end of line.
1.57      kristaps  755: .Bd -literal -offset indent
1.43      kristaps  756: \&.Yo \(lB\-arg \(lBval...\(rB\(rB \(lBbody...\(rB \(lBres...\(rB
1.57      kristaps  757: .Ed
1.56      kristaps  758: .
1.57      kristaps  759: .Pp
                    760: .Bl -column "MacroX" "CallableX" "ParsableX" -compact -offset indent
                    761: .It Em Macro Ta Em Callable Ta Em Parsable
1.64      kristaps  762: .It Sx \&Aq  Ta    Yes      Ta    Yes
                    763: .It Sx \&Bq  Ta    Yes      Ta    Yes
                    764: .It Sx \&Brq Ta    Yes      Ta    Yes
                    765: .It Sx \&D1  Ta    \&No     Ta    \&Yes
                    766: .It Sx \&Dl  Ta    \&No     Ta    Yes
                    767: .It Sx \&Dq  Ta    Yes      Ta    Yes
                    768: .It Sx \&Op  Ta    Yes      Ta    Yes
                    769: .It Sx \&Pq  Ta    Yes      Ta    Yes
                    770: .It Sx \&Ql  Ta    Yes      Ta    Yes
                    771: .It Sx \&Qq  Ta    Yes      Ta    Yes
                    772: .It Sx \&Sq  Ta    Yes      Ta    Yes
1.57      kristaps  773: .El
1.56      kristaps  774: .
1.57      kristaps  775: .
                    776: .Ss In-line
1.50      kristaps  777: Closed by
1.57      kristaps  778: .Sx Reserved Characters ,
1.43      kristaps  779: end of line, fixed argument lengths, and/or subsequent macros.  In-line
                    780: macros have only text children.  If a number (or inequality) of
1.3       kristaps  781: arguments is
1.57      kristaps  782: .Pq n ,
1.3       kristaps  783: then the macro accepts an arbitrary number of arguments.
1.57      kristaps  784: .Bd -literal -offset indent
1.43      kristaps  785: \&.Yo \(lB\-arg \(lBval...\(rB\(rB \(lBargs...\(rB \(lbres...\(rb
                    786:
                    787: \&.Yo \(lB\-arg \(lBval...\(rB\(rB \(lBargs...\(rB Yc...
                    788:
                    789: \&.Yo \(lB\-arg \(lBval...\(rB\(rB arg0 arg1 argN
1.57      kristaps  790: .Ed
                    791: .
                    792: .Pp
                    793: .Bl -column "MacroX" "CallableX" "ParsableX" "Arguments" -compact -offset indent
                    794: .It Em Macro Ta Em Callable Ta Em Parsable Ta Em Arguments
1.63      kristaps  795: .It Sx \&%A  Ta    \&No     Ta    \&No     Ta    >0
                    796: .It Sx \&%B  Ta    \&No     Ta    \&No     Ta    >0
                    797: .It Sx \&%C  Ta    \&No     Ta    \&No     Ta    >0
                    798: .It Sx \&%D  Ta    \&No     Ta    \&No     Ta    >0
                    799: .It Sx \&%I  Ta    \&No     Ta    \&No     Ta    >0
                    800: .It Sx \&%J  Ta    \&No     Ta    \&No     Ta    >0
                    801: .It Sx \&%N  Ta    \&No     Ta    \&No     Ta    >0
                    802: .It Sx \&%O  Ta    \&No     Ta    \&No     Ta    >0
                    803: .It Sx \&%P  Ta    \&No     Ta    \&No     Ta    >0
1.69      kristaps  804: .It Sx \&%Q  Ta    \&No     Ta    \&No     Ta    >0
1.63      kristaps  805: .It Sx \&%R  Ta    \&No     Ta    \&No     Ta    >0
                    806: .It Sx \&%T  Ta    \&No     Ta    \&No     Ta    >0
1.69      kristaps  807: .It Sx \&%U  Ta    \&No     Ta    \&No     Ta    >0
1.63      kristaps  808: .It Sx \&%V  Ta    \&No     Ta    \&No     Ta    >0
1.64      kristaps  809: .It Sx \&Ad  Ta    Yes      Ta    Yes      Ta    n
                    810: .It Sx \&An  Ta    Yes      Ta    Yes      Ta    n
                    811: .It Sx \&Ap  Ta    Yes      Ta    Yes      Ta    0
                    812: .It Sx \&Ar  Ta    Yes      Ta    Yes      Ta    n
                    813: .It Sx \&At  Ta    Yes      Ta    Yes      Ta    1
                    814: .It Sx \&Bsx Ta    Yes      Ta    Yes      Ta    n
                    815: .It Sx \&Bt  Ta    \&No     Ta    \&No     Ta    0
                    816: .It Sx \&Bx  Ta    Yes      Ta    Yes      Ta    n
                    817: .It Sx \&Cd  Ta    Yes      Ta    Yes      Ta    >0
                    818: .It Sx \&Cm  Ta    Yes      Ta    Yes      Ta    n
                    819: .It Sx \&Db  Ta    \&No     Ta    \&No     Ta    1
                    820: .It Sx \&Dd  Ta    \&No     Ta    \&No     Ta    >0
                    821: .It Sx \&Dt  Ta    \&No     Ta    \&No     Ta    n
                    822: .It Sx \&Dv  Ta    Yes      Ta    Yes      Ta    n
                    823: .It Sx \&Dx  Ta    Yes      Ta    Yes      Ta    n
                    824: .It Sx \&Em  Ta    Yes      Ta    Yes      Ta    >0
                    825: .It Sx \&En  Ta    \&No     Ta    \&No     Ta    0
                    826: .It Sx \&Er  Ta    Yes      Ta    Yes      Ta    >0
                    827: .It Sx \&Es  Ta    \&No     Ta    \&No     Ta    0
                    828: .It Sx \&Ev  Ta    Yes      Ta    Yes      Ta    n
                    829: .It Sx \&Ex  Ta    \&No     Ta    \&No     Ta    n
                    830: .It Sx \&Fa  Ta    Yes      Ta    Yes      Ta    n
                    831: .It Sx \&Fd  Ta    \&No     Ta    \&No     Ta    >0
                    832: .It Sx \&Fl  Ta    Yes      Ta    Yes      Ta    n
                    833: .It Sx \&Fn  Ta    Yes      Ta    Yes      Ta    >0
                    834: .It Sx \&Fr  Ta    \&No     Ta    \&No     Ta    n
                    835: .It Sx \&Ft  Ta    Yes      Ta    Yes      Ta    n
                    836: .It Sx \&Fx  Ta    Yes      Ta    Yes      Ta    n
                    837: .It Sx \&Hf  Ta    \&No     Ta    \&No     Ta    n
                    838: .It Sx \&Ic  Ta    Yes      Ta    Yes      Ta    >0
                    839: .It Sx \&In  Ta    \&No     Ta    \&No     Ta    n
                    840: .It Sx \&Lb  Ta    \&No     Ta    \&No     Ta    1
                    841: .It Sx \&Li  Ta    Yes      Ta    Yes      Ta    n
                    842: .It Sx \&Lk  Ta    Yes      Ta    Yes      Ta    n
                    843: .It Sx \&Lp  Ta    \&No     Ta    \&No     Ta    0
                    844: .It Sx \&Ms  Ta    Yes      Ta    Yes      Ta    >0
                    845: .It Sx \&Mt  Ta    Yes      Ta    Yes      Ta    >0
                    846: .It Sx \&Nm  Ta    Yes      Ta    Yes      Ta    n
                    847: .It Sx \&No  Ta    Yes      Ta    Yes      Ta    0
                    848: .It Sx \&Ns  Ta    Yes      Ta    Yes      Ta    0
                    849: .It Sx \&Nx  Ta    Yes      Ta    Yes      Ta    n
                    850: .It Sx \&Os  Ta    \&No     Ta    \&No     Ta    n
                    851: .It Sx \&Ot  Ta    \&No     Ta    \&No     Ta    n
                    852: .It Sx \&Ox  Ta    Yes      Ta    Yes      Ta    n
                    853: .It Sx \&Pa  Ta    Yes      Ta    Yes      Ta    n
                    854: .It Sx \&Pf  Ta    \&No     Ta    Yes      Ta    1
                    855: .It Sx \&Pp  Ta    \&No     Ta    \&No     Ta    0
                    856: .It Sx \&Rv  Ta    \&No     Ta    \&No     Ta    n
                    857: .It Sx \&Sm  Ta    \&No     Ta    \&No     Ta    1
                    858: .It Sx \&St  Ta    \&No     Ta    Yes      Ta    1
                    859: .It Sx \&Sx  Ta    Yes      Ta    Yes      Ta    >0
                    860: .It Sx \&Sy  Ta    Yes      Ta    Yes      Ta    >0
                    861: .It Sx \&Tn  Ta    Yes      Ta    Yes      Ta    >0
                    862: .It Sx \&Ud  Ta    \&No     Ta    \&No     Ta    0
                    863: .It Sx \&Ux  Ta    Yes      Ta    Yes      Ta    n
                    864: .It Sx \&Va  Ta    Yes      Ta    Yes      Ta    n
                    865: .It Sx \&Vt  Ta    Yes      Ta    Yes      Ta    >0
                    866: .It Sx \&Xr  Ta    Yes      Ta    Yes      Ta    >0, <3
                    867: .It Sx \&br  Ta    \&No     Ta    \&No     Ta    0
                    868: .It Sx \&sp  Ta    \&No     Ta    \&No     Ta    1
1.57      kristaps  869: .El
1.56      kristaps  870: .
                    871: .
1.63      kristaps  872: .Sh REFERENCE
                    873: This section is a canonical reference of all macros, arranged
                    874: alphabetically.  For the scoping of individual macros, see
                    875: .Sx MACRO SYNTAX .
                    876: .
                    877: .Ss \&%A
                    878: Author name of an
                    879: .Sx \&Rs
                    880: block.  Multiple authors should each be accorded their own
1.64      kristaps  881: .Sx \%%A
1.66      kristaps  882: line.  Author names should be ordered with full or abbreviated
                    883: forename(s) first, then full surname.
1.64      kristaps  884: .
1.63      kristaps  885: .Ss \&%B
                    886: Book title of an
                    887: .Sx \&Rs
                    888: block.  This macro may also be used in a non-bibliographic context when
                    889: referring to book titles.
1.64      kristaps  890: .
1.63      kristaps  891: .Ss \&%C
                    892: Publication city or location of an
                    893: .Sx \&Rs
                    894: block.
                    895: .Pp
1.65      kristaps  896: .Em Remarks :
1.63      kristaps  897: this macro is not implemented in
                    898: .Xr groff 1 .
1.64      kristaps  899: .
1.63      kristaps  900: .Ss \&%D
                    901: Publication date of an
                    902: .Sx \&Rs
1.72      kristaps  903: block.  This should follow the reduced or canonical form syntax
                    904: described in
1.63      kristaps  905: .Sx Dates .
1.64      kristaps  906: .
1.63      kristaps  907: .Ss \&%I
                    908: Publisher or issuer name of an
                    909: .Sx \&Rs
                    910: block.
1.64      kristaps  911: .
1.63      kristaps  912: .Ss \&%J
                    913: Journal name of an
                    914: .Sx \&Rs
                    915: block.
1.64      kristaps  916: .
1.63      kristaps  917: .Ss \&%N
                    918: Issue number (usually for journals) of an
                    919: .Sx \&Rs
                    920: block.
1.64      kristaps  921: .
1.63      kristaps  922: .Ss \&%O
                    923: Optional information of an
                    924: .Sx \&Rs
                    925: block.
1.64      kristaps  926: .
1.63      kristaps  927: .Ss \&%P
                    928: Book or journal page number of an
                    929: .Sx \&Rs
                    930: block.
1.64      kristaps  931: .
1.63      kristaps  932: .Ss \&%Q
                    933: Institutional author (school, government, etc.) of an
                    934: .Sx \&Rs
                    935: block.  Multiple institutional authors should each be accorded their own
1.64      kristaps  936: .Sx \&%Q
1.63      kristaps  937: line.
1.64      kristaps  938: .
1.63      kristaps  939: .Ss \&%R
                    940: Technical report name of an
                    941: .Sx \&Rs
                    942: block.
1.64      kristaps  943: .
1.63      kristaps  944: .Ss \&%T
                    945: Article title of an
                    946: .Sx \&Rs
                    947: block.  This macro may also be used in a non-bibliographical context
                    948: when referring to article titles.
1.64      kristaps  949: .
1.69      kristaps  950: .Ss \&%U
1.70      kristaps  951: URI of reference document.
1.69      kristaps  952: .
1.63      kristaps  953: .Ss \&%V
                    954: Volume number of an
                    955: .Sx \&Rs
                    956: block.
1.64      kristaps  957: .
1.63      kristaps  958: .Ss \&Ac
                    959: Closes an
                    960: .Sx \&Ao
                    961: block.  Does not have any tail arguments.
1.64      kristaps  962: .
1.63      kristaps  963: .Ss \&Ad
                    964: Address construct: usually in the context of an computational address in
                    965: memory, not a physical (post) address.
                    966: .Pp
1.64      kristaps  967: Examples:
1.63      kristaps  968: .Bd -literal -offset indent
                    969: \&.Ad [0,$]
                    970: \&.Ad 0x00000000
                    971: .Ed
1.64      kristaps  972: .
1.63      kristaps  973: .Ss \&An
1.64      kristaps  974: Author name.  This macro may alternatively accepts the following
                    975: arguments, although these may not be specified along with a parameter:
                    976: .Bl -tag -width 12n -offset indent
                    977: .It Fl split
1.66      kristaps  978: Renders a line break before each author listing.
1.64      kristaps  979: .It Fl nosplit
                    980: The opposite of
                    981: .Fl split .
                    982: .El
                    983: .Pp
                    984: In the AUTHORS section, the default is not to split the first author
                    985: listing, but all subsequent author listings, whether or not they're
                    986: interspersed by other macros or text, are split.  Thus, specifying
                    987: .Fl split
                    988: will cause the first listing also to be split.  If not in the AUTHORS
                    989: section, the default is not to split.
                    990: .Pp
                    991: Examples:
                    992: .Bd -literal -offset indent
                    993: \&.An -nosplit
                    994: \&.An J. E. Hopcraft ,
                    995: \&.An J. D. Ullman .
                    996: .Ed
                    997: .Pp
                    998: .Em Remarks :
                    999: the effects of
                   1000: .Fl split
                   1001: or
                   1002: .Fl nosplit
                   1003: are re-set when entering the AUTHORS section, so if one specifies
                   1004: .Sx \&An Fl nosplit
                   1005: in the general document body, it must be re-specified in the AUTHORS
                   1006: section.
                   1007: .
1.63      kristaps 1008: .Ss \&Ao
                   1009: Begins a block enclosed by angled brackets.  Does not have any head
                   1010: arguments.
                   1011: .Pp
1.64      kristaps 1012: Examples:
1.63      kristaps 1013: .Bd -literal -offset indent
                   1014: \&.Fl -key= Ns Ao Ar val Ac
                   1015: .Ed
                   1016: .Pp
1.64      kristaps 1017: See also
                   1018: .Sx \&Aq .
                   1019: .
1.63      kristaps 1020: .Ss \&Ap
1.64      kristaps 1021: Inserts an apostrophe without any surrounding white-space.  This is
                   1022: generally used as a grammatic device when referring to the verb form of
                   1023: a function:
                   1024: .Bd -literal -offset indent
                   1025: \&.Fn execve Ap d
                   1026: .Ed
                   1027: .
1.63      kristaps 1028: .Ss \&Aq
1.64      kristaps 1029: Encloses its arguments in angled brackets.
                   1030: .Pp
                   1031: Examples:
                   1032: .Bd -literal -offset indent
                   1033: \&.Fl -key= Ns Aq Ar val
                   1034: .Ed
                   1035: .Pp
                   1036: .Em Remarks :
                   1037: this macro is often abused for rendering URIs, which should instead use
                   1038: .Sx \&Lk
                   1039: or
                   1040: .Sx \&Mt ,
                   1041: or to note pre-processor
                   1042: .Dq Li #include
                   1043: statements, which should use
                   1044: .Sx \&In .
                   1045: .Pp
                   1046: See also
                   1047: .Sx \&Ao .
                   1048: .
1.63      kristaps 1049: .Ss \&Ar
1.66      kristaps 1050: Command arguments.  If an argument is not provided, the string
1.64      kristaps 1051: .Dq file ...
1.66      kristaps 1052: is used as a default.
1.64      kristaps 1053: .Pp
                   1054: Examples:
                   1055: .Bd -literal -offset indent
                   1056: \&.Fl o Ns Ar file1
                   1057: \&.Ar
                   1058: \&.Ar arg1 , arg2 .
                   1059: .Ed
                   1060: .
1.63      kristaps 1061: .Ss \&At
1.64      kristaps 1062: Formats an AT&T version.  Accepts at most one parameter:
                   1063: .Bl -tag -width 12n -offset indent
                   1064: .It Cm v[1-7] | 32v
                   1065: A version of
                   1066: .At .
                   1067: .It Cm V[.[1-4]]?
                   1068: A system version of
                   1069: .At .
                   1070: .El
                   1071: .Pp
                   1072: Note that these parameters do not begin with a hyphen.
                   1073: .Pp
                   1074: Examples:
                   1075: .Bd -literal -offset indent
                   1076: \&.At
                   1077: \&.At V.1
                   1078: .Ed
1.65      kristaps 1079: .Pp
                   1080: See also
1.66      kristaps 1081: .Sx \&Bsx ,
1.65      kristaps 1082: .Sx \&Bx ,
1.66      kristaps 1083: .Sx \&Dx ,
1.65      kristaps 1084: .Sx \&Fx ,
                   1085: .Sx \&Nx ,
                   1086: .Sx \&Ox ,
                   1087: and
                   1088: .Sx \&Ux .
1.64      kristaps 1089: .
1.63      kristaps 1090: .Ss \&Bc
1.64      kristaps 1091: Closes a
                   1092: .Sx \&Bo
                   1093: block.  Does not have any tail arguments.
                   1094: .
1.63      kristaps 1095: .Ss \&Bd
1.64      kristaps 1096: Begins a display block.  A display is collection of macros or text which
                   1097: may be collectively offset or justified in a manner different from that
                   1098: of the enclosing context.  By default, the block is preceded by a
                   1099: vertical space.
                   1100: .Pp
                   1101: Each display is associated with a type, which must be one of the
                   1102: following arguments:
                   1103: .Bl -tag -width 12n -offset indent
                   1104: .It Fl ragged
                   1105: Only left-justify the block.
                   1106: .It Fl unfilled
                   1107: Do not justify the block at all.
                   1108: .It Fl filled
                   1109: Left- and right-justify the block.
                   1110: .It Fl literal
                   1111: Alias for
                   1112: .Fl unfilled .
                   1113: .It Fl centered
                   1114: Centre-justify each line.
                   1115: .El
                   1116: .Pp
                   1117: The type must be provided first.  Secondary arguments are as follows:
                   1118: .Bl -tag -width 12n -offset indent
                   1119: .It Fl offset Ar width
                   1120: Offset by the value of
                   1121: .Ar width ,
                   1122: which is interpreted as one of the following, specified in order:
                   1123: .Bl -item
                   1124: .It
                   1125: As one of the pre-defined strings
                   1126: .Ar indent ,
                   1127: the width of standard indentation;
                   1128: .Ar indent-two ,
                   1129: twice
                   1130: .Ar indent ;
                   1131: .Ar left ,
                   1132: which has no effect ;
                   1133: .Ar right ,
                   1134: which justifies to the right margin; and
                   1135: .Ar center ,
                   1136: which aligns around an imagined centre axis.
                   1137: .It
                   1138: As a precalculated width for a named macro.  The most popular is the
                   1139: imaginary macro
1.67      kristaps 1140: .Ar \&Ds ,
1.64      kristaps 1141: which resolves to
                   1142: .Ar 6n .
                   1143: .It
                   1144: As a scaling unit following the syntax described in
                   1145: .Sx Scaling Widths .
                   1146: .It
                   1147: As the calculated string length of the opaque string.
                   1148: .El
                   1149: .Pp
                   1150: If unset, it will revert to the value of
                   1151: .Ar 8n
                   1152: as described in
                   1153: .Sx Scaling Widths .
                   1154: .It Fl compact
                   1155: Do not assert a vertical space before the block.
                   1156: .It Fl file Ar file
                   1157: Prepend the file
                   1158: .Ar file
                   1159: before any text or macros within the block.
                   1160: .El
                   1161: .Pp
                   1162: Examples:
                   1163: .Bd -literal -offset indent
                   1164: \&.Bd \-unfilled \-offset two-indent \-compact
1.65      kristaps 1165:    Hello       world.
1.64      kristaps 1166: \&.Ed
                   1167: .Ed
1.66      kristaps 1168: .Pp
                   1169: See also
                   1170: .Sx \&D1
                   1171: and
                   1172: .Sx \&Dl .
1.64      kristaps 1173: .
1.63      kristaps 1174: .Ss \&Bf
                   1175: .Ss \&Bk
                   1176: .Ss \&Bl
1.80    ! kristaps 1177: .\" Begins a list composed of one or more list entries.  A list entry is
        !          1178: .\" specified by the
        !          1179: .\" .Sx \&It
        !          1180: .\" macro, which consists of a head and optional body.  By default, a list
        !          1181: .\" is preceded by a blank line.  A list must specify one of the following
        !          1182: .\" list types:
        !          1183: .\" .Bl -tag -width 12n
        !          1184: .\" .It Fl bullet
        !          1185: .\" A list offset by a bullet.  The head of list entries must be empty.
        !          1186: .\" List entry bodies are justified after the bullet.
        !          1187: .\" .It Fl column
        !          1188: .\" A columnated list.  The number of columns is specified as arguments to
        !          1189: .\" the
        !          1190: .\" .Sx \&Bl
        !          1191: .\" macro (the deprecated form of following the invocation of
        !          1192: .\" .Fl column
        !          1193: .\" is also accepted).  Arguments dictate the width of columns specified in
        !          1194: .\" list entries.  List entry bodies must be left empty.  Columns specified
        !          1195: .\" in the list entry head are justified to their position in the sequence
        !          1196: .\" of columns.
        !          1197: .\" .It Fl dash
        !          1198: .\" A list offset by a dash (hyphen).  The head of list entries must be
        !          1199: .\" empty.  List entry bodies are justified past the dash.
        !          1200: .\" .It Fl diag
        !          1201: .\" Like
        !          1202: .\" .Fl inset
        !          1203: .\" lists, but with additional formatting to the head.
        !          1204: .\" .It Fl enum
        !          1205: .\" A list offset by a number indicating list entry position.  The head of
        !          1206: .\" list entries must be empty.  List entry bodies are justified past the
        !          1207: .\" enumeration.
        !          1208: .\" .It Fl hang
        !          1209: .\" Like
        !          1210: .\" .Fl tag ,
        !          1211: .\" but instead of list bodies justifying to the head on the first line,
        !          1212: .\" they trail the head text.
        !          1213: .\" .It Fl hyphen
        !          1214: .\" Synonym for
        !          1215: .\" .Fl dash .
        !          1216: .\" .It Fl inset
        !          1217: .\" Like
        !          1218: .\" .Fl tag ,
        !          1219: .\" but list entry bodies aren't justified.
        !          1220: .\" .It Fl item
        !          1221: .\" An un-justified list.  This produces blocks of text.
        !          1222: .\" .It Fl ohang
        !          1223: .\" List bodies are placed on the line following the head.
        !          1224: .\" .It Fl tag
        !          1225: .\" A list offset by list entry heads.  List entry bodies are justified
        !          1226: .\" after the head.
        !          1227: .\" .El
        !          1228: .\" .Pp
        !          1229: .\" More...
        !          1230: .\" .
1.63      kristaps 1231: .Ss \&Bo
1.65      kristaps 1232: Begins a block enclosed by square brackets.  Does not have any head
                   1233: arguments.
                   1234: .Pp
                   1235: Examples:
                   1236: .Bd -literal -offset indent
                   1237: \&.Bo 1 ,
                   1238: \&.Dv BUFSIZ Bc
                   1239: .Ed
                   1240: .Pp
                   1241: See also
                   1242: .Sx \&Bq .
                   1243: .
1.63      kristaps 1244: .Ss \&Bq
1.65      kristaps 1245: Encloses its arguments in square brackets.
                   1246: .Pp
                   1247: Examples:
                   1248: .Bd -literal -offset indent
                   1249: \&.Bq 1 , Dv BUFSIZ
                   1250: .Ed
                   1251: .Pp
                   1252: .Em Remarks :
                   1253: this macro is sometimes abused to emulate optional arguments for
                   1254: commands; the correct macros to use for this purpose are
                   1255: .Sx \&Op ,
                   1256: .Sx \&Oo ,
                   1257: and
                   1258: .Sx \&Oc .
                   1259: .Pp
                   1260: See also
                   1261: .Sx \&Bo .
                   1262: .
1.63      kristaps 1263: .Ss \&Brc
1.65      kristaps 1264: Closes a
                   1265: .Sx \&Bro
                   1266: block.  Does not have any tail arguments.
                   1267: .
1.63      kristaps 1268: .Ss \&Bro
1.65      kristaps 1269: Begins a block enclosed by curly braces.  Does not have any head
                   1270: arguments.
                   1271: .Pp
                   1272: Examples:
                   1273: .Bd -literal -offset indent
                   1274: \&.Bro 1 , ... ,
                   1275: \&.Va n Brc
                   1276: .Ed
                   1277: .Pp
                   1278: See also
                   1279: .Sx \&Brq .
                   1280: .
1.63      kristaps 1281: .Ss \&Brq
1.65      kristaps 1282: Encloses its arguments in curly braces.
                   1283: .Pp
                   1284: Examples:
                   1285: .Bd -literal -offset indent
                   1286: \&.Brq 1 , ... , Va n
                   1287: .Ed
                   1288: .Pp
                   1289: See also
                   1290: .Sx \&Bro .
                   1291: .
1.63      kristaps 1292: .Ss \&Bsx
1.65      kristaps 1293: Format the BSD/OS version provided as an argument, or a default value if
                   1294: no argument is provided.
                   1295: .Pp
                   1296: Examples:
                   1297: .Bd -literal -offset indent
                   1298: \&.Bsx 1.0
                   1299: \&.Bsx
                   1300: .Ed
                   1301: .Pp
                   1302: See also
                   1303: .Sx \&At ,
                   1304: .Sx \&Bx ,
1.66      kristaps 1305: .Sx \&Dx ,
1.65      kristaps 1306: .Sx \&Fx ,
                   1307: .Sx \&Nx ,
                   1308: .Sx \&Ox ,
                   1309: and
                   1310: .Sx \&Ux .
                   1311: .
1.63      kristaps 1312: .Ss \&Bt
1.66      kristaps 1313: Prints
                   1314: .Dq is currently in beta test.
                   1315: .
1.63      kristaps 1316: .Ss \&Bx
1.65      kristaps 1317: Format the BSD version provided as an argument, or a default value if no
                   1318: argument is provided.
                   1319: .Pp
                   1320: Examples:
                   1321: .Bd -literal -offset indent
                   1322: \&.Bx 4.4
                   1323: \&.Bx
                   1324: .Ed
                   1325: .Pp
                   1326: See also
                   1327: .Sx \&At ,
                   1328: .Sx \&Bsx ,
1.66      kristaps 1329: .Sx \&Dx ,
1.65      kristaps 1330: .Sx \&Fx ,
                   1331: .Sx \&Nx ,
                   1332: .Sx \&Ox ,
                   1333: and
                   1334: .Sx \&Ux .
                   1335: .
1.63      kristaps 1336: .Ss \&Cd
1.66      kristaps 1337: Configuration declaration (suggested for use only in section four
                   1338: manuals).  This denotes strings accepted by
                   1339: .Xr config 8 .
                   1340: .Pp
                   1341: Examples:
                   1342: .Bd -literal -offset indent
                   1343: \&.Cd device le0 at scode?
                   1344: .Ed
                   1345: .Pp
                   1346: .Em Remarks :
                   1347: this macro is commonly abused by using quoted literals to retain
                   1348: white-space and align consecutive
                   1349: .Sx \&Cd
                   1350: declarations.  This practise is discouraged.
                   1351: .
1.63      kristaps 1352: .Ss \&Cm
1.66      kristaps 1353: Command modifiers.  Useful when specifying configuration options or
                   1354: keys.
                   1355: .Pp
                   1356: Examples:
                   1357: .Bd -literal -offset indent
                   1358: \&.Cm ControlPath
                   1359: \&.Cm ControlMaster
                   1360: .Ed
                   1361: .Pp
                   1362: See also
                   1363: .Sx \&Fl .
                   1364: .
1.63      kristaps 1365: .Ss \&D1
1.66      kristaps 1366: One-line indented display.  This is formatted by the default rules and
                   1367: is useful for simple indented statements.  It is followed by a newline.
                   1368: .Pp
                   1369: Examples:
                   1370: .Bd -literal -offset indent
                   1371: \&.D1 Fl abcdefgh
                   1372: .Ed
                   1373: .Pp
                   1374: See also
                   1375: .Sx \&Bd
                   1376: and
                   1377: .Sx \&Dl .
                   1378: .
1.63      kristaps 1379: .Ss \&Db
                   1380: .Ss \&Dc
1.66      kristaps 1381: Closes a
                   1382: .Sx \&Do
                   1383: block.  Does not have any tail arguments.
                   1384: .
1.63      kristaps 1385: .Ss \&Dd
1.66      kristaps 1386: Document date.  This is the mandatory first macro of any
                   1387: .Nm
                   1388: manual.  Its calling syntax is as follows:
                   1389: .Pp
                   1390: .D1 \. Ns Sx \&Dd Cm date
                   1391: .Pp
                   1392: The
                   1393: .Cm date
                   1394: field may be either
                   1395: .Ar $\&Mdocdate$ ,
                   1396: which signifies the current manual revision date dictated by
1.72      kristaps 1397: .Xr cvs 1 ,
1.66      kristaps 1398: or instead a valid canonical date as specified by
                   1399: .Sx Dates .
1.72      kristaps 1400: If a date does not conform, the current date is used instead.
1.66      kristaps 1401: .Pp
                   1402: Examples:
                   1403: .Bd -literal -offset indent
                   1404: \&.Dd $\&Mdocdate$
                   1405: \&.Dd $\&Mdocdate: July 21 2007$
                   1406: \&.Dd July 21, 2007
                   1407: .Ed
                   1408: .Pp
                   1409: See also
                   1410: .Sx \&Dt
                   1411: and
                   1412: .Sx \&Os .
                   1413: .
1.63      kristaps 1414: .Ss \&Dl
1.66      kristaps 1415: One-line intended display.  This is formatted as literal text and is
                   1416: useful for commands and invocations.  It is followed by a newline.
                   1417: .Pp
                   1418: Examples:
                   1419: .Bd -literal -offset indent
                   1420: \&.Dl % mandoc mdoc.7 | less
                   1421: .Ed
                   1422: .Pp
                   1423: See also
                   1424: .Sx \&Bd
                   1425: and
                   1426: .Sx \&D1 .
                   1427: .
1.63      kristaps 1428: .Ss \&Do
1.66      kristaps 1429: Begins a block enclosed by double quotes.  Does not have any head
                   1430: arguments.
                   1431: .Pp
                   1432: Examples:
                   1433: .Bd -literal -offset indent
                   1434: \&.D1 Do April is the cruellest month Dc \e(em T.S. Eliot
                   1435: .Ed
                   1436: .Pp
                   1437: See also
                   1438: .Sx \&Dq .
                   1439: .
1.63      kristaps 1440: .Ss \&Dq
1.66      kristaps 1441: Encloses its arguments in double quotes.
                   1442: .Pp
                   1443: Examples:
                   1444: .Bd -literal -offset indent
                   1445: \&.Dq April is the cruellest month
                   1446: \e(em T.S. Eliot
                   1447: .Ed
                   1448: .Pp
                   1449: See also
                   1450: .Sx \&Do .
                   1451: .
1.63      kristaps 1452: .Ss \&Dt
1.66      kristaps 1453: Document title.  This is the mandatory second macro of any
                   1454: .Nm
                   1455: file.  Its calling syntax is as follows:
                   1456: .Pp
                   1457: .D1 \. Ns Sx \&Dt Cm title section Op Cm volume | arch
                   1458: .Pp
                   1459: Its arguments are as follows:
                   1460: .Bl -tag -width Ds -offset Ds
                   1461: .It Cm title
                   1462: The document's title (name).  This should be capitalised and is
                   1463: required.
                   1464: .It Cm section
                   1465: The manual section.  This may be one of
                   1466: .Ar 1
                   1467: .Pq utilities ,
                   1468: .Ar 2
                   1469: .Pq system calls ,
                   1470: .Ar 3
                   1471: .Pq libraries ,
                   1472: .Ar 3p
                   1473: .Pq Perl libraries ,
                   1474: .Ar 4
                   1475: .Pq devices ,
                   1476: .Ar 5
                   1477: .Pq file formats ,
                   1478: .Ar 6
                   1479: .Pq games ,
                   1480: .Ar 7
                   1481: .Pq miscellaneous ,
                   1482: .Ar 8
                   1483: .Pq system utilities ,
                   1484: .Ar 9
                   1485: .Pq kernel functions ,
                   1486: .Ar X11
                   1487: .Pq X Window System ,
                   1488: .Ar X11R6
                   1489: .Pq X Window System ,
                   1490: .Ar unass
                   1491: .Pq unassociated ,
                   1492: .Ar local
                   1493: .Pq local system ,
                   1494: .Ar draft
                   1495: .Pq draft manual ,
                   1496: or
                   1497: .Ar paper
                   1498: .Pq paper .
                   1499: It is also required and should correspond to the manual's filename
                   1500: suffix.
                   1501: .It Cm volume
                   1502: This overrides the volume inferred from
                   1503: .Ar section .
                   1504: This field is optional, and if specified, must be one of
                   1505: .Ar USD
                   1506: .Pq users' supplementary documents ,
                   1507: .Ar PS1
                   1508: .Pq programmers' supplementary documents ,
                   1509: .Ar AMD
                   1510: .Pq administrators' supplementary documents ,
                   1511: .Ar SMM
                   1512: .Pq system managers' manuals ,
                   1513: .Ar URM
                   1514: .Pq users' reference manuals ,
                   1515: .Ar PRM
                   1516: .Pq programmers' reference manuals ,
                   1517: .Ar KM
                   1518: .Pq kernel manuals ,
                   1519: .Ar IND
                   1520: .Pq master index ,
                   1521: .Ar MMI
                   1522: .Pq master index ,
                   1523: .Ar LOCAL
                   1524: .Pq local manuals ,
                   1525: .Ar LOC
                   1526: .Pq local manuals ,
                   1527: or
                   1528: .Ar CON
                   1529: .Pq contributed manuals .
                   1530: .It Cm arch
                   1531: This specifies a specific relevant architecture.  If
                   1532: .Cm volume
                   1533: is not provided, it may be used in its place, else it may be used
                   1534: subsequent that.  It, too, is optional.  It must be one of
                   1535: .Ar alpha ,
                   1536: .Ar amd64 ,
                   1537: .Ar amiga ,
                   1538: .Ar arc ,
                   1539: .Ar arm ,
                   1540: .Ar armish ,
                   1541: .Ar aviion ,
                   1542: .Ar hp300 ,
                   1543: .Ar hppa ,
                   1544: .Ar hppa64 ,
                   1545: .Ar i386 ,
                   1546: .Ar landisk ,
                   1547: .Ar luna88k ,
                   1548: .Ar mac68k ,
                   1549: .Ar macppc ,
                   1550: .Ar mvme68k ,
                   1551: .Ar mvme88k ,
                   1552: .Ar mvmeppc ,
                   1553: .Ar pmax ,
                   1554: .Ar sgi ,
                   1555: .Ar socppc ,
                   1556: .Ar sparc ,
                   1557: .Ar sparc64 ,
                   1558: .Ar sun3 ,
                   1559: .Ar vax ,
                   1560: or
                   1561: .Ar zaurus .
                   1562: .El
                   1563: .Pp
                   1564: Examples:
                   1565: .Bd -literal -offset indent
                   1566: \&.Dt FOO 1
                   1567: \&.Dt FOO 4 KM
                   1568: \&.Dt FOO 9 i386
                   1569: \&.Dt FOO 9 KM i386
                   1570: .Ed
                   1571: .Pp
                   1572: See also
                   1573: .Sx \&Dd
                   1574: and
                   1575: .Sx \&Os .
                   1576: .
1.63      kristaps 1577: .Ss \&Dv
1.66      kristaps 1578: Defined variables such as preprocessor constants.
                   1579: .Pp
                   1580: Examples:
                   1581: .Bd -literal -offset indent
                   1582: \&.Dv BUFSIZ
                   1583: \&.Dv STDOUT_FILENO
                   1584: .Ed
                   1585: .Pp
                   1586: See also
                   1587: .Sx \&Er .
                   1588: .
1.63      kristaps 1589: .Ss \&Dx
1.71      kristaps 1590: Format the DragonFly BSD version provided as an argument, or a default
1.66      kristaps 1591: value if no argument is provided.
                   1592: .Pp
                   1593: Examples:
                   1594: .Bd -literal -offset indent
                   1595: \&.Dx 2.4.1
                   1596: \&.Dx
                   1597: .Ed
                   1598: .Pp
                   1599: See also
                   1600: .Sx \&At ,
                   1601: .Sx \&Bsx ,
                   1602: .Sx \&Bx ,
                   1603: .Sx \&Fx ,
                   1604: .Sx \&Nx ,
                   1605: .Sx \&Ox ,
                   1606: and
                   1607: .Sx \&Ux .
                   1608: .
1.63      kristaps 1609: .Ss \&Ec
                   1610: .Ss \&Ed
                   1611: .Ss \&Ef
                   1612: .Ss \&Ek
                   1613: .Ss \&El
                   1614: .Ss \&Em
1.66      kristaps 1615: Denotes text that should be emphasised.  Note that this is a
                   1616: presentation term and should not be used for stylistically decorating
                   1617: technical terms.
                   1618: .Pp
                   1619: Examples:
                   1620: .Bd -literal -offset indent
                   1621: \&.Ed Warnings!
                   1622: \&.Ed Remarks :
                   1623: .Ed
                   1624: .
1.63      kristaps 1625: .Ss \&En
                   1626: .Ss \&Eo
                   1627: .Ss \&Er
1.66      kristaps 1628: Error constants (suggested for use only in section two manuals).
                   1629: .Pp
                   1630: Examples:
                   1631: .Bd -literal -offset indent
                   1632: \&.Er EPERM
                   1633: \&.Er ENOENT
                   1634: .Ed
                   1635: .Pp
                   1636: See also
                   1637: .Sx \&Dv .
                   1638: .
1.63      kristaps 1639: .Ss \&Es
1.66      kristaps 1640: .
1.63      kristaps 1641: .Ss \&Ev
1.66      kristaps 1642: Environmental variables such as those specified in
                   1643: .Xr environ 7 .
                   1644: .Pp
                   1645: Examples:
                   1646: .Bd -literal -offset indent
                   1647: \&.Ev DISPLAY
                   1648: \&.Ev PATH
                   1649: .Ed
                   1650: .
1.63      kristaps 1651: .Ss \&Ex
1.66      kristaps 1652: Inserts text regarding a utility's exit values.  This macro must have
                   1653: first the
                   1654: .Fl std
                   1655: argument specified, then an optional
                   1656: .Ar utility .
                   1657: If
                   1658: .Ar utility
                   1659: is not provided, the document's name as stipulated in
                   1660: .Sx \&Nm
                   1661: is provided.
1.63      kristaps 1662: .Ss \&Fa
                   1663: .Ss \&Fc
                   1664: .Ss \&Fd
                   1665: .Ss \&Fl
1.79      kristaps 1666: Command-line flag.  Used when listing arguments to command-line
                   1667: utilities.  Prints a fixed-width hyphen
                   1668: .Sq \-
                   1669: before each delimited argument.  If no arguments are provided, a hyphen
                   1670: is still printed.
                   1671: .Pp
                   1672: Examples:
                   1673: .Bd -literal -offset indent
                   1674: \&.Fl a b c
                   1675: \&.Fl
                   1676: \&.Op Fl o Ns Ar file
                   1677: .Ed
                   1678: .Pp
                   1679: See also
                   1680: .Sx \&Cm .
                   1681: .
1.63      kristaps 1682: .Ss \&Fn
                   1683: .Ss \&Fo
                   1684: .Ss \&Fr
                   1685: .Ss \&Ft
                   1686: .Ss \&Fx
1.65      kristaps 1687: Format the FreeBSD version provided as an argument, or a default value
                   1688: if no argument is provided.
                   1689: .Pp
                   1690: Examples:
                   1691: .Bd -literal -offset indent
                   1692: \&.Fx 7.1
                   1693: \&.Fx
                   1694: .Ed
                   1695: .Pp
                   1696: See also
                   1697: .Sx \&At ,
1.66      kristaps 1698: .Sx \&Bsx ,
1.65      kristaps 1699: .Sx \&Bx ,
1.66      kristaps 1700: .Sx \&Dx ,
1.65      kristaps 1701: .Sx \&Nx ,
                   1702: .Sx \&Ox ,
                   1703: and
                   1704: .Sx \&Ux .
                   1705: .
1.63      kristaps 1706: .Ss \&Hf
                   1707: .Ss \&Ic
                   1708: .Ss \&In
                   1709: .Ss \&It
                   1710: .Ss \&Lb
                   1711: .Ss \&Li
                   1712: .Ss \&Lk
1.70      kristaps 1713: Format a hyperlink.  The calling syntax is as follows:
                   1714: .Pp
                   1715: .D1 \. Ns Sx \&Lk Cm uri Op Cm name
                   1716: .Pp
                   1717: Examples:
                   1718: .Bd -literal -offset indent
                   1719: \&.Lk http://bsd.lv "The BSD.lv Project"
                   1720: \&.Lk http://bsd.lv
                   1721: .Ed
                   1722: .Pp
                   1723: See also
                   1724: .Sx \&Mt .
                   1725: .
1.63      kristaps 1726: .Ss \&Lp
                   1727: .Ss \&Ms
                   1728: .Ss \&Mt
                   1729: .Ss \&Nd
                   1730: .Ss \&Nm
                   1731: .Ss \&No
                   1732: .Ss \&Ns
                   1733: .Ss \&Nx
1.65      kristaps 1734: Format the NetBSD version provided as an argument, or a default value if
                   1735: no argument is provided.
                   1736: .Pp
                   1737: Examples:
                   1738: .Bd -literal -offset indent
                   1739: \&.Nx 5.01
                   1740: \&.Nx
                   1741: .Ed
                   1742: .Pp
                   1743: See also
                   1744: .Sx \&At ,
1.66      kristaps 1745: .Sx \&Bsx ,
1.65      kristaps 1746: .Sx \&Bx ,
1.66      kristaps 1747: .Sx \&Dx ,
1.65      kristaps 1748: .Sx \&Fx ,
                   1749: .Sx \&Ox ,
                   1750: and
                   1751: .Sx \&Ux .
                   1752: .
1.63      kristaps 1753: .Ss \&Oc
                   1754: .Ss \&Oo
                   1755: .Ss \&Op
                   1756: .Ss \&Os
1.66      kristaps 1757: Document operating system version.  This is the mandatory third macro of
                   1758: any
                   1759: .Nm
                   1760: file.  Its calling syntax is as follows:
                   1761: .Pp
                   1762: .D1 \. Ns Sx \&Os Op Cm system
                   1763: .Pp
                   1764: The optional
                   1765: .Cm system
                   1766: parameter specifies the relevant operating system or environment.  Left
                   1767: unspecified, it defaults to the local operating system version.  This is
                   1768: the suggested form.
                   1769: .Pp
                   1770: Examples:
                   1771: .Bd -literal -offset indent
                   1772: \&.Os
                   1773: \&.Os KTH/CSC/TCS
                   1774: \&.Os BSD 4.3
                   1775: .Ed
                   1776: .Pp
                   1777: See also
                   1778: .Sx \&Dd
                   1779: and
                   1780: .Sx \&Dt .
                   1781: .
1.63      kristaps 1782: .Ss \&Ot
1.66      kristaps 1783: Unknown usage.
                   1784: .Pp
                   1785: .Em Remarks :
                   1786: this macro has been deprecated.
                   1787: .
1.63      kristaps 1788: .Ss \&Ox
1.65      kristaps 1789: Format the OpenBSD version provided as an argument, or a default value
                   1790: if no argument is provided.
                   1791: .Pp
                   1792: Examples:
                   1793: .Bd -literal -offset indent
                   1794: \&.Ox 4.5
                   1795: \&.Ox
                   1796: .Ed
                   1797: .Pp
                   1798: See also
                   1799: .Sx \&At ,
                   1800: .Sx \&Bsx ,
                   1801: .Sx \&Bx ,
1.66      kristaps 1802: .Sx \&Dx ,
1.65      kristaps 1803: .Sx \&Fx ,
                   1804: .Sx \&Nx ,
                   1805: and
                   1806: .Sx \&Ux .
                   1807: .
1.63      kristaps 1808: .Ss \&Pa
                   1809: .Ss \&Pc
                   1810: .Ss \&Pf
                   1811: .Ss \&Po
                   1812: .Ss \&Pp
                   1813: .Ss \&Pq
                   1814: .Ss \&Qc
                   1815: .Ss \&Ql
                   1816: .Ss \&Qo
                   1817: .Ss \&Qq
1.64      kristaps 1818: .
1.63      kristaps 1819: .Ss \&Re
                   1820: Closes a
                   1821: .Sx \&Rs
                   1822: block.  Does not have any tail arguments.
1.64      kristaps 1823: .
1.63      kristaps 1824: .Ss \&Rs
                   1825: Begins a bibliographic
                   1826: .Pq Dq reference
1.68      kristaps 1827: block.  Does not have any head arguments.  The block macro may only
1.63      kristaps 1828: contain
                   1829: .Sx \&%A ,
                   1830: .Sx \&%B ,
                   1831: .Sx \&%C ,
                   1832: .Sx \&%D ,
                   1833: .Sx \&%I ,
                   1834: .Sx \&%J ,
                   1835: .Sx \&%N ,
                   1836: .Sx \&%O ,
                   1837: .Sx \&%P ,
                   1838: .Sx \&%Q ,
                   1839: .Sx \&%R ,
                   1840: .Sx \&%T ,
                   1841: and
                   1842: .Sx \&%V
                   1843: child macros (at least one must be specified).
                   1844: .Pp
1.64      kristaps 1845: Examples:
1.63      kristaps 1846: .Bd -literal -offset indent
                   1847: \&.Rs
                   1848: \&.%A J. E. Hopcroft
                   1849: \&.%A J. D. Ullman
                   1850: \&.%B Introduction to Automata Theory, Languages, and Computation
                   1851: \&.%I Addison-Wesley
                   1852: \&.%C Reading, Massachusettes
                   1853: \&.%D 1979
                   1854: \&.Re
                   1855: .Ed
                   1856: .Pp
                   1857: If an
                   1858: .Sx \&Rs
                   1859: block is used within a SEE ALSO section, a vertical space is asserted
                   1860: before the rendered output, else the block continues on the current
                   1861: line.
1.64      kristaps 1862: .
1.63      kristaps 1863: .Ss \&Rv
                   1864: .Ss \&Sc
                   1865: .Ss \&Sh
                   1866: .Ss \&Sm
                   1867: .Ss \&So
                   1868: .Ss \&Sq
                   1869: .Ss \&Ss
                   1870: .Ss \&St
                   1871: .Ss \&Sx
                   1872: .Ss \&Sy
                   1873: .Ss \&Tn
                   1874: .Ss \&Ud
                   1875: .Ss \&Ux
1.65      kristaps 1876: Format the UNIX name.  Accepts no argument.
                   1877: .Pp
                   1878: Examples:
                   1879: .Bd -literal -offset indent
                   1880: \&.Ux
                   1881: .Ed
                   1882: .Pp
                   1883: See also
                   1884: .Sx \&At ,
1.66      kristaps 1885: .Sx \&Bsx ,
1.65      kristaps 1886: .Sx \&Bx ,
1.66      kristaps 1887: .Sx \&Dx ,
1.65      kristaps 1888: .Sx \&Fx ,
                   1889: .Sx \&Nx ,
                   1890: and
                   1891: .Sx \&Ox .
                   1892: .
1.63      kristaps 1893: .Ss \&Va
                   1894: .Ss \&Vt
                   1895: .Ss \&Xc
                   1896: .Ss \&Xo
                   1897: .Ss \&Xr
                   1898: .Ss \&br
                   1899: .Ss \&sp
                   1900: .
                   1901: .
1.4       kristaps 1902: .Sh COMPATIBILITY
1.28      kristaps 1903: This section documents compatibility with other roff implementations, at
1.50      kristaps 1904: this time limited to
1.57      kristaps 1905: .Xr groff 1 .
1.50      kristaps 1906: The term
1.57      kristaps 1907: .Qq historic groff
1.50      kristaps 1908: refers to those versions before the
1.57      kristaps 1909: .Pa doc.tmac
1.50      kristaps 1910: file re-write
1.57      kristaps 1911: .Pq somewhere between 1.15 and 1.19 .
                   1912: .
                   1913: .Pp
                   1914: .Bl -dash -compact
                   1915: .It
1.80    ! kristaps 1916: In
        !          1917: .Xr groff 1 ,
        !          1918: the
        !          1919: .Sx \&Pa
        !          1920: macro does not format its arguments when used in the FILES section under
        !          1921: certain list types.  This irregular behaviour has been discontinued.
        !          1922: .It
1.79      kristaps 1923: Historic
                   1924: .Xr groff 1
                   1925: does not print a dash for empty
                   1926: .Sx \&Fl
                   1927: arguments.  This behaviour has been discontinued.
                   1928: .It
1.77      kristaps 1929: .Xr groff 1
                   1930: behaves strangely (even between versions) when specifying
                   1931: .Sq \ef
                   1932: escapes within line-macro scopes.  These aberrations have been
                   1933: normalised.
                   1934: .It
1.61      kristaps 1935: Negative scaling units are now truncated to zero instead of creating
                   1936: interesting conditions, such as with
1.78      kristaps 1937: .Sx \&sp
1.80    ! kristaps 1938: .Fl 1i .
1.61      kristaps 1939: Furthermore, the
                   1940: .Sq f
                   1941: scaling unit, while accepted, is rendered as the default unit.
                   1942: .It
1.48      kristaps 1943: In quoted literals, groff allowed pair-wise double-quotes to produce a
                   1944: standalone double-quote in formatted output.  This idiosyncratic
                   1945: behaviour is no longer applicable.
1.57      kristaps 1946: .It
1.64      kristaps 1947: Display types
1.78      kristaps 1948: .Sx \&Bd
1.77      kristaps 1949: .Fl center
1.64      kristaps 1950: and
                   1951: .Fl right
                   1952: are aliases for
                   1953: .Fl left .
1.50      kristaps 1954: The
1.64      kristaps 1955: .Fl file Ar file
                   1956: argument is ignored.  Since text is not right-justified,
                   1957: .Fl ragged
                   1958: and
                   1959: .Fl filled
                   1960: are aliases, as are
                   1961: .Fl literal
                   1962: and
                   1963: .Fl unfilled .
1.57      kristaps 1964: .It
1.35      kristaps 1965: Blocks of whitespace are stripped from both macro and free-form text
                   1966: lines (except when in literal mode), while groff would retain whitespace
                   1967: in free-form text lines.
1.57      kristaps 1968: .It
1.28      kristaps 1969: Historic groff has many un-callable macros.  Most of these (excluding
                   1970: some block-level macros) are now callable, conforming to the
                   1971: non-historic groff version.
1.57      kristaps 1972: .It
1.50      kristaps 1973: The vertical bar
1.57      kristaps 1974: .Sq \(ba
1.28      kristaps 1975: made historic groff
1.57      kristaps 1976: .Qq go orbital
1.28      kristaps 1977: but is a proper delimiter in this implementation.
1.57      kristaps 1978: .It
1.78      kristaps 1979: .Sx \&It
1.77      kristaps 1980: .Fl nested
1.28      kristaps 1981: is assumed for all lists (it wasn't in historic groff): any list may be
                   1982: nested and
1.64      kristaps 1983: .Fl enum
1.4       kristaps 1984: lists will restart the sequence only for the sub-list.
1.57      kristaps 1985: .It
1.4       kristaps 1986: Some manuals use
1.64      kristaps 1987: .Sx \&Li
1.4       kristaps 1988: incorrectly by following it with a reserved character and expecting the
                   1989: delimiter to render.  This is not supported.
1.57      kristaps 1990: .It
1.50      kristaps 1991: In groff, the
1.64      kristaps 1992: .Sx \&Fo
1.41      kristaps 1993: macro only produces the first parameter.  This is no longer the case.
1.57      kristaps 1994: .El
1.56      kristaps 1995: .
                   1996: .
1.2       kristaps 1997: .Sh SEE ALSO
1.57      kristaps 1998: .Xr mandoc 1 ,
                   1999: .Xr mandoc_char 7
1.56      kristaps 2000: .
                   2001: .
1.2       kristaps 2002: .Sh AUTHORS
                   2003: The
1.57      kristaps 2004: .Nm
1.50      kristaps 2005: reference was written by
1.57      kristaps 2006: .An Kristaps Dzonsons Aq kristaps@kth.se .
1.64      kristaps 2007: .\"
                   2008: .\" XXX: this really isn't the place for these caveats.
                   2009: .\" .
                   2010: .\" .
                   2011: .\" .Sh CAVEATS
                   2012: .\" There are many ambiguous parts of mdoc.
                   2013: .\" .
                   2014: .\" .Pp
                   2015: .\" .Bl -dash -compact
                   2016: .\" .It
                   2017: .\" .Sq \&Fa
                   2018: .\" should be
                   2019: .\" .Sq \&Va
                   2020: .\" as function arguments are variables.
                   2021: .\" .It
                   2022: .\" .Sq \&Ft
                   2023: .\" should be
                   2024: .\" .Sq \&Vt
                   2025: .\" as function return types are still types.  Furthermore, the
                   2026: .\" .Sq \&Ft
                   2027: .\" should be removed and
                   2028: .\" .Sq \&Fo ,
                   2029: .\" which ostensibly follows it, should follow the same convention as
                   2030: .\" .Sq \&Va .
                   2031: .\" .It
                   2032: .\" .Sq \&Va
                   2033: .\" should formalise that only one or two arguments are acceptable: a
                   2034: .\" variable name and optional, preceding type.
                   2035: .\" .It
                   2036: .\" .Sq \&Fd
                   2037: .\" is ambiguous.  It's commonly used to indicate an include file in the
                   2038: .\" synopsis section.
                   2039: .\" .Sq \&In
                   2040: .\" should be used, instead.
                   2041: .\" .It
                   2042: .\" Only the
                   2043: .\" .Sq \-literal
                   2044: .\" argument to
                   2045: .\" .Sq \&Bd
                   2046: .\" makes sense.  The remaining ones should be removed.
                   2047: .\" .It
                   2048: .\" The
                   2049: .\" .Sq \&Xo
                   2050: .\" and
                   2051: .\" .Sq \&Xc
                   2052: .\" macros should be deprecated.
                   2053: .\" .It
                   2054: .\" The
                   2055: .\" .Sq \&Dt
                   2056: .\" macro lacks clarity.  It should be absolutely clear which title will
                   2057: .\" render when formatting the manual page.
                   2058: .\" .It
                   2059: .\" A
                   2060: .\" .Sq \&Lx
                   2061: .\" should be provided for Linux (\(`a la
                   2062: .\" .Sq \&Ox ,
                   2063: .\" .Sq \&Nx
                   2064: .\" etc.).
                   2065: .\" .It
                   2066: .\" There's no way to refer to references in
                   2067: .\" .Sq \&Rs/Re
                   2068: .\" blocks.
                   2069: .\" .It
                   2070: .\" The \-split and \-nosplit dictates via
                   2071: .\" .Sq \&An
                   2072: .\" are re-set when entering and leaving the AUTHORS section.
                   2073: .\" .El
                   2074: .\" .

CVSweb