xref: /freebsd/contrib/mandoc/man.7 (revision 6d38604fc532a3fc060788e3ce40464b46047eaf)
1*6d38604fSBaptiste Daroussin.\"	$Id: man.7,v 1.148 2021/08/05 14:31:14 schwarze Exp $
261d06d6bSBaptiste Daroussin.\"
361d06d6bSBaptiste Daroussin.\" Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
4*6d38604fSBaptiste Daroussin.\" Copyright (c) 2011-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org>
57295610fSBaptiste Daroussin.\" Copyright (c) 2017 Anthony Bentley <bentley@openbsd.org>
661d06d6bSBaptiste Daroussin.\" Copyright (c) 2010 Joerg Sonnenberger <joerg@netbsd.org>
761d06d6bSBaptiste Daroussin.\"
861d06d6bSBaptiste Daroussin.\" Permission to use, copy, modify, and distribute this software for any
961d06d6bSBaptiste Daroussin.\" purpose with or without fee is hereby granted, provided that the above
1061d06d6bSBaptiste Daroussin.\" copyright notice and this permission notice appear in all copies.
1161d06d6bSBaptiste Daroussin.\"
1261d06d6bSBaptiste Daroussin.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1361d06d6bSBaptiste Daroussin.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1461d06d6bSBaptiste Daroussin.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1561d06d6bSBaptiste Daroussin.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1661d06d6bSBaptiste Daroussin.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1761d06d6bSBaptiste Daroussin.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1861d06d6bSBaptiste Daroussin.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1961d06d6bSBaptiste Daroussin.\"
20*6d38604fSBaptiste Daroussin.Dd $Mdocdate: August 5 2021 $
2161d06d6bSBaptiste Daroussin.Dt MAN 7
2261d06d6bSBaptiste Daroussin.Os
2361d06d6bSBaptiste Daroussin.Sh NAME
2461d06d6bSBaptiste Daroussin.Nm man
2561d06d6bSBaptiste Daroussin.Nd legacy formatting language for manual pages
2661d06d6bSBaptiste Daroussin.Sh DESCRIPTION
277295610fSBaptiste DaroussinThe
2861d06d6bSBaptiste Daroussin.Nm man
297295610fSBaptiste Daroussinlanguage was the standard formatting language for
307295610fSBaptiste Daroussin.At
317295610fSBaptiste Daroussinmanual pages from 1979 to 1989.
327295610fSBaptiste DaroussinDo not use it to write new manual pages: it is a purely presentational
337295610fSBaptiste Daroussinlanguage and lacks support for semantic markup.
3461d06d6bSBaptiste DaroussinUse the
3561d06d6bSBaptiste Daroussin.Xr mdoc 7
3661d06d6bSBaptiste Daroussinlanguage, instead.
3761d06d6bSBaptiste Daroussin.Pp
3861d06d6bSBaptiste DaroussinIn a
3961d06d6bSBaptiste Daroussin.Nm
4061d06d6bSBaptiste Daroussindocument, lines beginning with the control character
4161d06d6bSBaptiste Daroussin.Sq \&.
4261d06d6bSBaptiste Daroussinare called
4361d06d6bSBaptiste Daroussin.Dq macro lines .
4461d06d6bSBaptiste DaroussinThe first word is the macro name.
4561d06d6bSBaptiste DaroussinIt usually consists of two capital letters.
467295610fSBaptiste DaroussinFor a list of portable macros, see
4761d06d6bSBaptiste Daroussin.Sx MACRO OVERVIEW .
4861d06d6bSBaptiste DaroussinThe words following the macro name are arguments to the macro.
4961d06d6bSBaptiste Daroussin.Pp
5061d06d6bSBaptiste DaroussinLines not beginning with the control character are called
5161d06d6bSBaptiste Daroussin.Dq text lines .
5261d06d6bSBaptiste DaroussinThey provide free-form text to be printed; the formatting of the text
5361d06d6bSBaptiste Daroussindepends on the respective processing context:
5461d06d6bSBaptiste Daroussin.Bd -literal -offset indent
5561d06d6bSBaptiste Daroussin\&.SH Macro lines change control state.
5661d06d6bSBaptiste DaroussinText lines are interpreted within the current state.
5761d06d6bSBaptiste Daroussin.Ed
5861d06d6bSBaptiste Daroussin.Pp
5961d06d6bSBaptiste DaroussinMany aspects of the basic syntax of the
6061d06d6bSBaptiste Daroussin.Nm
6161d06d6bSBaptiste Daroussinlanguage are based on the
6261d06d6bSBaptiste Daroussin.Xr roff 7
6361d06d6bSBaptiste Daroussinlanguage; see the
6461d06d6bSBaptiste Daroussin.Em LANGUAGE SYNTAX
6561d06d6bSBaptiste Daroussinand
6661d06d6bSBaptiste Daroussin.Em MACRO SYNTAX
6761d06d6bSBaptiste Daroussinsections in the
6861d06d6bSBaptiste Daroussin.Xr roff 7
6961d06d6bSBaptiste Daroussinmanual for details, in particular regarding
7061d06d6bSBaptiste Daroussincomments, escape sequences, whitespace, and quoting.
717295610fSBaptiste Daroussin.Pp
7261d06d6bSBaptiste DaroussinEach
7361d06d6bSBaptiste Daroussin.Nm
747295610fSBaptiste Daroussindocument starts with the
757295610fSBaptiste Daroussin.Ic TH
767295610fSBaptiste Daroussinmacro specifying the document's name and section, followed by the
777295610fSBaptiste Daroussin.Sx NAME
787295610fSBaptiste Daroussinsection formatted as follows:
7961d06d6bSBaptiste Daroussin.Bd -literal -offset indent
807295610fSBaptiste Daroussin\&.TH PROGNAME 1 1979-01-10
8161d06d6bSBaptiste Daroussin\&.SH NAME
8261d06d6bSBaptiste Daroussin\efBprogname\efR \e(en one line about what it does
8361d06d6bSBaptiste Daroussin.Ed
8461d06d6bSBaptiste Daroussin.Sh MACRO OVERVIEW
8561d06d6bSBaptiste DaroussinThis overview is sorted such that macros of similar purpose are listed
867295610fSBaptiste Daroussintogether.
877295610fSBaptiste DaroussinDeprecated and non-portable macros are not included in the overview,
887295610fSBaptiste Daroussinbut can be found in the alphabetical reference below.
8961d06d6bSBaptiste Daroussin.Ss Page header and footer meta-data
907295610fSBaptiste Daroussin.Bl -column "RS, RE" description
917295610fSBaptiste Daroussin.It Ic TH Ta set the title: Ar name section date Op Ar source Op Ar volume
927295610fSBaptiste Daroussin.It Ic AT Ta display AT&T UNIX version in the page footer (<= 1 argument)
937295610fSBaptiste Daroussin.It Ic UC Ta display BSD version in the page footer (<= 1 argument)
9461d06d6bSBaptiste Daroussin.El
9561d06d6bSBaptiste Daroussin.Ss Sections and paragraphs
967295610fSBaptiste Daroussin.Bl -column "RS, RE" description
977295610fSBaptiste Daroussin.It Ic SH Ta section header (one line)
987295610fSBaptiste Daroussin.It Ic SS Ta subsection header (one line)
997295610fSBaptiste Daroussin.It Ic PP Ta start an undecorated paragraph (no arguments)
1007295610fSBaptiste Daroussin.It Ic RS , RE Ta reset the left margin: Op Ar width
1017295610fSBaptiste Daroussin.It Ic IP Ta indented paragraph: Op Ar head Op Ar width
1027295610fSBaptiste Daroussin.It Ic TP Ta tagged paragraph: Op Ar width
1037295610fSBaptiste Daroussin.It Ic PD Ta set vertical paragraph distance: Op Ar height
1047295610fSBaptiste Daroussin.It Ic in Ta additional indent: Op Ar width
10561d06d6bSBaptiste Daroussin.El
10661d06d6bSBaptiste Daroussin.Ss Physical markup
1077295610fSBaptiste Daroussin.Bl -column "RS, RE" description
1087295610fSBaptiste Daroussin.It Ic B Ta boldface font
1097295610fSBaptiste Daroussin.It Ic I Ta italic font
1107295610fSBaptiste Daroussin.It Ic SB Ta small boldface font
1117295610fSBaptiste Daroussin.It Ic SM Ta small roman font
1127295610fSBaptiste Daroussin.It Ic BI Ta alternate between boldface and italic fonts
1137295610fSBaptiste Daroussin.It Ic BR Ta alternate between boldface and roman fonts
1147295610fSBaptiste Daroussin.It Ic IB Ta alternate between italic and boldface fonts
1157295610fSBaptiste Daroussin.It Ic IR Ta alternate between italic and roman fonts
1167295610fSBaptiste Daroussin.It Ic RB Ta alternate between roman and boldface fonts
1177295610fSBaptiste Daroussin.It Ic RI Ta alternate between roman and italic fonts
11861d06d6bSBaptiste Daroussin.El
11961d06d6bSBaptiste Daroussin.Sh MACRO REFERENCE
12061d06d6bSBaptiste DaroussinThis section is a canonical reference to all macros, arranged
12161d06d6bSBaptiste Daroussinalphabetically.
12261d06d6bSBaptiste DaroussinFor the scoping of individual macros, see
12361d06d6bSBaptiste Daroussin.Sx MACRO SYNTAX .
1247295610fSBaptiste Daroussin.Bl -tag -width 3n
1257295610fSBaptiste Daroussin.It Ic AT
12661d06d6bSBaptiste DaroussinSets the volume for the footer for compatibility with man pages from
12761d06d6bSBaptiste Daroussin.At
12861d06d6bSBaptiste Daroussinreleases.
12961d06d6bSBaptiste DaroussinThe optional arguments specify which release it is from.
130*6d38604fSBaptiste DaroussinThis macro is an extension that first appeared in
131*6d38604fSBaptiste Daroussin.Bx 4.3 .
1327295610fSBaptiste Daroussin.It Ic B
13361d06d6bSBaptiste DaroussinText is rendered in bold face.
1347295610fSBaptiste Daroussin.It Ic BI
13561d06d6bSBaptiste DaroussinText is rendered alternately in bold face and italic.
13661d06d6bSBaptiste DaroussinThus,
13761d06d6bSBaptiste Daroussin.Sq .BI this word and that
13861d06d6bSBaptiste Daroussincauses
13961d06d6bSBaptiste Daroussin.Sq this
14061d06d6bSBaptiste Daroussinand
14161d06d6bSBaptiste Daroussin.Sq and
14261d06d6bSBaptiste Daroussinto render in bold face, while
14361d06d6bSBaptiste Daroussin.Sq word
14461d06d6bSBaptiste Daroussinand
14561d06d6bSBaptiste Daroussin.Sq that
14661d06d6bSBaptiste Daroussinrender in italics.
14761d06d6bSBaptiste DaroussinWhitespace between arguments is omitted in output.
14861d06d6bSBaptiste Daroussin.Pp
1497295610fSBaptiste DaroussinExample:
15061d06d6bSBaptiste Daroussin.Pp
15161d06d6bSBaptiste Daroussin.Dl \&.BI bold italic bold italic
1527295610fSBaptiste Daroussin.It Ic BR
15361d06d6bSBaptiste DaroussinText is rendered alternately in bold face and roman (the default font).
15461d06d6bSBaptiste DaroussinWhitespace between arguments is omitted in output.
15561d06d6bSBaptiste DaroussinSee also
1567295610fSBaptiste Daroussin.Ic BI .
1577295610fSBaptiste Daroussin.It Ic DT
15861d06d6bSBaptiste DaroussinRestore the default tabulator positions.
15961d06d6bSBaptiste DaroussinThey are at intervals of 0.5 inches.
16061d06d6bSBaptiste DaroussinThis has no effect unless the tabulator positions were changed with the
16161d06d6bSBaptiste Daroussin.Xr roff 7
1627295610fSBaptiste Daroussin.Ic ta
16361d06d6bSBaptiste Daroussinrequest.
1647295610fSBaptiste Daroussin.It Ic EE
16545a5aec3SBaptiste DaroussinThis is a non-standard Version 9
16645a5aec3SBaptiste Daroussin.At
16745a5aec3SBaptiste Daroussinextension later adopted by GNU.
16861d06d6bSBaptiste DaroussinIn
16961d06d6bSBaptiste Daroussin.Xr mandoc 1 ,
1707295610fSBaptiste Daroussinit does the same as the
1717295610fSBaptiste Daroussin.Xr roff 7
1727295610fSBaptiste Daroussin.Ic fi
1737295610fSBaptiste Daroussinrequest (switch to fill mode).
1747295610fSBaptiste Daroussin.It Ic EX
17545a5aec3SBaptiste DaroussinThis is a non-standard Version 9
17645a5aec3SBaptiste Daroussin.At
17745a5aec3SBaptiste Daroussinextension later adopted by GNU.
17861d06d6bSBaptiste DaroussinIn
17961d06d6bSBaptiste Daroussin.Xr mandoc 1 ,
1807295610fSBaptiste Daroussinit does the same as the
1817295610fSBaptiste Daroussin.Xr roff 7
1827295610fSBaptiste Daroussin.Ic nf
1837295610fSBaptiste Daroussinrequest (switch to no-fill mode).
1847295610fSBaptiste Daroussin.It Ic HP
18561d06d6bSBaptiste DaroussinBegin a paragraph whose initial output line is left-justified, but
18661d06d6bSBaptiste Daroussinsubsequent output lines are indented, with the following syntax:
1877295610fSBaptiste Daroussin.Pp
1887295610fSBaptiste Daroussin.D1 Pf . Ic HP Op Ar width
18961d06d6bSBaptiste Daroussin.Pp
19061d06d6bSBaptiste DaroussinThe
19161d06d6bSBaptiste Daroussin.Ar width
19261d06d6bSBaptiste Daroussinargument is a
19361d06d6bSBaptiste Daroussin.Xr roff 7
19461d06d6bSBaptiste Daroussinscaling width.
1957295610fSBaptiste DaroussinIf specified, it's saved for later paragraph left margins;
1967295610fSBaptiste Daroussinif unspecified, the saved or default width is used.
19761d06d6bSBaptiste Daroussin.Pp
1987295610fSBaptiste DaroussinThis macro is portable, but deprecated
1997295610fSBaptiste Daroussinbecause it has no good representation in HTML output,
2007295610fSBaptiste Daroussinusually ending up indistinguishable from
2017295610fSBaptiste Daroussin.Ic PP .
2027295610fSBaptiste Daroussin.It Ic I
20361d06d6bSBaptiste DaroussinText is rendered in italics.
2047295610fSBaptiste Daroussin.It Ic IB
20561d06d6bSBaptiste DaroussinText is rendered alternately in italics and bold face.
20661d06d6bSBaptiste DaroussinWhitespace between arguments is omitted in output.
20761d06d6bSBaptiste DaroussinSee also
2087295610fSBaptiste Daroussin.Ic BI .
2097295610fSBaptiste Daroussin.It Ic IP
21061d06d6bSBaptiste DaroussinBegin an indented paragraph with the following syntax:
2117295610fSBaptiste Daroussin.Pp
2127295610fSBaptiste Daroussin.D1 Pf . Ic IP Op Ar head Op Ar width
21361d06d6bSBaptiste Daroussin.Pp
21461d06d6bSBaptiste DaroussinThe
21561d06d6bSBaptiste Daroussin.Ar width
21661d06d6bSBaptiste Daroussinargument is a
21761d06d6bSBaptiste Daroussin.Xr roff 7
21861d06d6bSBaptiste Daroussinscaling width defining the left margin.
21961d06d6bSBaptiste DaroussinIt's saved for later paragraph left-margins; if unspecified, the saved or
22061d06d6bSBaptiste Daroussindefault width is used.
22161d06d6bSBaptiste Daroussin.Pp
22261d06d6bSBaptiste DaroussinThe
22361d06d6bSBaptiste Daroussin.Ar head
22461d06d6bSBaptiste Daroussinargument is used as a leading term, flushed to the left margin.
22561d06d6bSBaptiste DaroussinThis is useful for bulleted paragraphs and so on.
2267295610fSBaptiste Daroussin.It Ic IR
22761d06d6bSBaptiste DaroussinText is rendered alternately in italics and roman (the default font).
22861d06d6bSBaptiste DaroussinWhitespace between arguments is omitted in output.
22961d06d6bSBaptiste DaroussinSee also
2307295610fSBaptiste Daroussin.Ic BI .
2317295610fSBaptiste Daroussin.It Ic LP
2327295610fSBaptiste DaroussinA synonym for
2337295610fSBaptiste Daroussin.Ic PP .
2347295610fSBaptiste Daroussin.It Ic ME
2357295610fSBaptiste DaroussinEnd a mailto block started with
2367295610fSBaptiste Daroussin.Ic MT .
2377295610fSBaptiste DaroussinThis is a non-standard GNU extension.
2387295610fSBaptiste Daroussin.It Ic MT
23961d06d6bSBaptiste DaroussinBegin a mailto block.
2407295610fSBaptiste DaroussinThis is a non-standard GNU extension.
24161d06d6bSBaptiste DaroussinIt has the following syntax:
2427295610fSBaptiste Daroussin.Bd -unfilled -offset indent
2437295610fSBaptiste Daroussin.Pf . Ic MT Ar address
24461d06d6bSBaptiste Daroussinlink description to be shown
2457295610fSBaptiste Daroussin.Pf . Ic ME
24661d06d6bSBaptiste Daroussin.Ed
2477295610fSBaptiste Daroussin.It Ic OP
24861d06d6bSBaptiste DaroussinOptional command-line argument.
249*6d38604fSBaptiste DaroussinThis is a non-standard DWB extension.
25061d06d6bSBaptiste DaroussinIt has the following syntax:
2517295610fSBaptiste Daroussin.Pp
2527295610fSBaptiste Daroussin.D1 Pf . Ic OP Ar key Op Ar value
25361d06d6bSBaptiste Daroussin.Pp
25461d06d6bSBaptiste DaroussinThe
25561d06d6bSBaptiste Daroussin.Ar key
25661d06d6bSBaptiste Daroussinis usually a command-line flag and
25761d06d6bSBaptiste Daroussin.Ar value
25861d06d6bSBaptiste Daroussinits argument.
2597295610fSBaptiste Daroussin.It Ic P
260*6d38604fSBaptiste DaroussinThis synonym for
261*6d38604fSBaptiste Daroussin.Ic PP
262*6d38604fSBaptiste Daroussinis an
263*6d38604fSBaptiste Daroussin.At III
264*6d38604fSBaptiste Daroussinextension later adopted by
265*6d38604fSBaptiste Daroussin.Bx 4.3 .
2667295610fSBaptiste Daroussin.It Ic PD
26761d06d6bSBaptiste DaroussinSpecify the vertical space to be inserted before each new paragraph.
26861d06d6bSBaptiste Daroussin.br
26961d06d6bSBaptiste DaroussinThe syntax is as follows:
2707295610fSBaptiste Daroussin.Pp
2717295610fSBaptiste Daroussin.D1 Pf . Ic PD Op Ar height
27261d06d6bSBaptiste Daroussin.Pp
27361d06d6bSBaptiste DaroussinThe
27461d06d6bSBaptiste Daroussin.Ar height
27561d06d6bSBaptiste Daroussinargument is a
27661d06d6bSBaptiste Daroussin.Xr roff 7
27761d06d6bSBaptiste Daroussinscaling width.
27861d06d6bSBaptiste DaroussinIt defaults to
27961d06d6bSBaptiste Daroussin.Cm 1v .
28061d06d6bSBaptiste DaroussinIf the unit is omitted,
28161d06d6bSBaptiste Daroussin.Cm v
28261d06d6bSBaptiste Daroussinis assumed.
28361d06d6bSBaptiste Daroussin.Pp
28461d06d6bSBaptiste DaroussinThis macro affects the spacing before any subsequent instances of
2857295610fSBaptiste Daroussin.Ic HP ,
2867295610fSBaptiste Daroussin.Ic IP ,
2877295610fSBaptiste Daroussin.Ic LP ,
2887295610fSBaptiste Daroussin.Ic P ,
2897295610fSBaptiste Daroussin.Ic PP ,
2907295610fSBaptiste Daroussin.Ic SH ,
2917295610fSBaptiste Daroussin.Ic SS ,
2927295610fSBaptiste Daroussin.Ic SY ,
29361d06d6bSBaptiste Daroussinand
2947295610fSBaptiste Daroussin.Ic TP .
2957295610fSBaptiste Daroussin.It Ic PP
2967295610fSBaptiste DaroussinBegin an undecorated paragraph.
2977295610fSBaptiste DaroussinThe scope of a paragraph is closed by a subsequent paragraph,
2987295610fSBaptiste Daroussinsub-section, section, or end of file.
2997295610fSBaptiste DaroussinThe saved paragraph left-margin width is reset to the default.
3007295610fSBaptiste Daroussin.It Ic RB
30161d06d6bSBaptiste DaroussinText is rendered alternately in roman (the default font) and bold face.
30261d06d6bSBaptiste DaroussinWhitespace between arguments is omitted in output.
30361d06d6bSBaptiste DaroussinSee also
3047295610fSBaptiste Daroussin.Ic BI .
3057295610fSBaptiste Daroussin.It Ic RE
30661d06d6bSBaptiste DaroussinExplicitly close out the scope of a prior
3077295610fSBaptiste Daroussin.Ic RS .
30861d06d6bSBaptiste DaroussinThe default left margin is restored to the state before that
3097295610fSBaptiste Daroussin.Ic RS
31061d06d6bSBaptiste Daroussininvocation.
31161d06d6bSBaptiste Daroussin.Pp
31261d06d6bSBaptiste DaroussinThe syntax is as follows:
3137295610fSBaptiste Daroussin.Pp
3147295610fSBaptiste Daroussin.D1 Pf . Ic RE Op Ar level
31561d06d6bSBaptiste Daroussin.Pp
31661d06d6bSBaptiste DaroussinWithout an argument, the most recent
3177295610fSBaptiste Daroussin.Ic RS
31861d06d6bSBaptiste Daroussinblock is closed out.
31961d06d6bSBaptiste DaroussinIf
32061d06d6bSBaptiste Daroussin.Ar level
32161d06d6bSBaptiste Daroussinis 1, all open
3227295610fSBaptiste Daroussin.Ic RS
32361d06d6bSBaptiste Daroussinblocks are closed out.
32461d06d6bSBaptiste DaroussinOtherwise,
32561d06d6bSBaptiste Daroussin.Ar level No \(mi 1
32661d06d6bSBaptiste Daroussinnested
3277295610fSBaptiste Daroussin.Ic RS
32861d06d6bSBaptiste Daroussinblocks remain open.
3297295610fSBaptiste Daroussin.It Ic RI
33061d06d6bSBaptiste DaroussinText is rendered alternately in roman (the default font) and italics.
33161d06d6bSBaptiste DaroussinWhitespace between arguments is omitted in output.
33261d06d6bSBaptiste DaroussinSee also
3337295610fSBaptiste Daroussin.Ic BI .
3347295610fSBaptiste Daroussin.It Ic RS
33561d06d6bSBaptiste DaroussinTemporarily reset the default left margin.
33661d06d6bSBaptiste DaroussinThis has the following syntax:
3377295610fSBaptiste Daroussin.Pp
3387295610fSBaptiste Daroussin.D1 Pf . Ic RS Op Ar width
33961d06d6bSBaptiste Daroussin.Pp
34061d06d6bSBaptiste DaroussinThe
34161d06d6bSBaptiste Daroussin.Ar width
34261d06d6bSBaptiste Daroussinargument is a
34361d06d6bSBaptiste Daroussin.Xr roff 7
34461d06d6bSBaptiste Daroussinscaling width.
34561d06d6bSBaptiste DaroussinIf not specified, the saved or default width is used.
34661d06d6bSBaptiste Daroussin.Pp
34761d06d6bSBaptiste DaroussinSee also
3487295610fSBaptiste Daroussin.Ic RE .
3497295610fSBaptiste Daroussin.It Ic SB
35061d06d6bSBaptiste DaroussinText is rendered in small size (one point smaller than the default font)
35161d06d6bSBaptiste Daroussinbold face.
352*6d38604fSBaptiste DaroussinThis macro is an extension that probably first appeared in SunOS 4.0
353*6d38604fSBaptiste Daroussinand was later adopted by GNU and by
354*6d38604fSBaptiste Daroussin.Bx 4.4 .
3557295610fSBaptiste Daroussin.It Ic SH
35661d06d6bSBaptiste DaroussinBegin a section.
35761d06d6bSBaptiste DaroussinThe scope of a section is only closed by another section or the end of
35861d06d6bSBaptiste Daroussinfile.
35961d06d6bSBaptiste DaroussinThe paragraph left-margin width is reset to the default.
3607295610fSBaptiste Daroussin.It Ic SM
36161d06d6bSBaptiste DaroussinText is rendered in small size (one point smaller than the default
36261d06d6bSBaptiste Daroussinfont).
3637295610fSBaptiste Daroussin.It Ic SS
36461d06d6bSBaptiste DaroussinBegin a sub-section.
36561d06d6bSBaptiste DaroussinThe scope of a sub-section is closed by a subsequent sub-section,
36661d06d6bSBaptiste Daroussinsection, or end of file.
36761d06d6bSBaptiste DaroussinThe paragraph left-margin width is reset to the default.
3687295610fSBaptiste Daroussin.It Ic SY
3697295610fSBaptiste DaroussinBegin a synopsis block with the following syntax:
3707295610fSBaptiste Daroussin.Bd -unfilled -offset indent
3717295610fSBaptiste Daroussin.Pf . Ic SY Ar command
3727295610fSBaptiste Daroussin.Ar arguments
3737295610fSBaptiste Daroussin.Pf . Ic YS
37461d06d6bSBaptiste Daroussin.Ed
37561d06d6bSBaptiste Daroussin.Pp
3767295610fSBaptiste DaroussinThis is a non-standard GNU extension
3777295610fSBaptiste Daroussinand very rarely used even in GNU manual pages.
3787295610fSBaptiste DaroussinFormatting is similar to
3797295610fSBaptiste Daroussin.Ic IP .
3807295610fSBaptiste Daroussin.It Ic TH
3817295610fSBaptiste DaroussinSet the name of the manual page for use in the page header
3827295610fSBaptiste Daroussinand footer with the following syntax:
3837295610fSBaptiste Daroussin.Pp
3847295610fSBaptiste Daroussin.D1 Pf . Ic TH Ar name section date Op Ar source Op Ar volume
3857295610fSBaptiste Daroussin.Pp
38661d06d6bSBaptiste DaroussinConventionally, the document
3877295610fSBaptiste Daroussin.Ar name
38861d06d6bSBaptiste Daroussinis given in all caps.
3897295610fSBaptiste DaroussinThe
3907295610fSBaptiste Daroussin.Ar section
3917295610fSBaptiste Daroussinis usually a single digit, in a few cases followed by a letter.
39261d06d6bSBaptiste DaroussinThe recommended
39361d06d6bSBaptiste Daroussin.Ar date
39461d06d6bSBaptiste Daroussinformat is
39561d06d6bSBaptiste Daroussin.Sy YYYY-MM-DD
39661d06d6bSBaptiste Daroussinas specified in the ISO-8601 standard;
39761d06d6bSBaptiste Daroussinif the argument does not conform, it is printed verbatim.
39861d06d6bSBaptiste DaroussinIf the
39961d06d6bSBaptiste Daroussin.Ar date
40061d06d6bSBaptiste Daroussinis empty or not specified, the current date is used.
40161d06d6bSBaptiste DaroussinThe optional
40261d06d6bSBaptiste Daroussin.Ar source
40361d06d6bSBaptiste Daroussinstring specifies the organisation providing the utility.
40461d06d6bSBaptiste DaroussinWhen unspecified,
40561d06d6bSBaptiste Daroussin.Xr mandoc 1
40661d06d6bSBaptiste Daroussinuses its
40761d06d6bSBaptiste Daroussin.Fl Ios
40861d06d6bSBaptiste Daroussinargument.
40961d06d6bSBaptiste DaroussinThe
41061d06d6bSBaptiste Daroussin.Ar volume
4117295610fSBaptiste Daroussinstring replaces the default volume title of the
4127295610fSBaptiste Daroussin.Ar section .
41361d06d6bSBaptiste Daroussin.Pp
41461d06d6bSBaptiste DaroussinExamples:
41561d06d6bSBaptiste Daroussin.Pp
41661d06d6bSBaptiste Daroussin.Dl \&.TH CVS 5 "1992-02-12" GNU
4177295610fSBaptiste Daroussin.It Ic TP
41861d06d6bSBaptiste DaroussinBegin a paragraph where the head, if exceeding the indentation width, is
4197295610fSBaptiste Daroussinfollowed by a newline; if not, the body follows on the same line after
4207295610fSBaptiste Daroussinadvancing to the indentation width.
42161d06d6bSBaptiste DaroussinSubsequent output lines are indented.
42261d06d6bSBaptiste DaroussinThe syntax is as follows:
4237295610fSBaptiste Daroussin.Bd -unfilled -offset indent
4247295610fSBaptiste Daroussin.Pf . Ic TP Op Ar width
4257295610fSBaptiste Daroussin.Ar head No \e" one line
4267295610fSBaptiste Daroussin.Ar body
42761d06d6bSBaptiste Daroussin.Ed
42861d06d6bSBaptiste Daroussin.Pp
42961d06d6bSBaptiste DaroussinThe
43061d06d6bSBaptiste Daroussin.Ar width
43161d06d6bSBaptiste Daroussinargument is a
43261d06d6bSBaptiste Daroussin.Xr roff 7
43361d06d6bSBaptiste Daroussinscaling width.
43461d06d6bSBaptiste DaroussinIf specified, it's saved for later paragraph left-margins; if
43561d06d6bSBaptiste Daroussinunspecified, the saved or default width is used.
4367295610fSBaptiste Daroussin.It Ic TQ
4377295610fSBaptiste DaroussinLike
4387295610fSBaptiste Daroussin.Ic TP ,
4397295610fSBaptiste Daroussinexcept that no vertical spacing is inserted before the paragraph.
4407295610fSBaptiste DaroussinThis is a non-standard GNU extension
4417295610fSBaptiste Daroussinand very rarely used even in GNU manual pages.
4427295610fSBaptiste Daroussin.It Ic UC
44361d06d6bSBaptiste DaroussinSets the volume for the footer for compatibility with man pages from
44461d06d6bSBaptiste Daroussin.Bx
44561d06d6bSBaptiste Daroussinreleases.
44661d06d6bSBaptiste DaroussinThe optional first argument specifies which release it is from.
447*6d38604fSBaptiste DaroussinThis macro is an extension that first appeared in
448*6d38604fSBaptiste Daroussin.Bx 3 .
4497295610fSBaptiste Daroussin.It Ic UE
4507295610fSBaptiste DaroussinEnd a uniform resource identifier block started with
4517295610fSBaptiste Daroussin.Ic UR .
4527295610fSBaptiste DaroussinThis is a non-standard GNU extension.
4537295610fSBaptiste Daroussin.It Ic UR
45461d06d6bSBaptiste DaroussinBegin a uniform resource identifier block.
4557295610fSBaptiste DaroussinThis is a non-standard GNU extension.
45661d06d6bSBaptiste DaroussinIt has the following syntax:
4577295610fSBaptiste Daroussin.Bd -unfilled -offset indent
4587295610fSBaptiste Daroussin.Pf . Ic UR Ar uri
45961d06d6bSBaptiste Daroussinlink description to be shown
4607295610fSBaptiste Daroussin.Pf . Ic UE
46161d06d6bSBaptiste Daroussin.Ed
4627295610fSBaptiste Daroussin.It Ic YS
4637295610fSBaptiste DaroussinEnd a synopsis block started with
4647295610fSBaptiste Daroussin.Ic SY .
4657295610fSBaptiste DaroussinThis is a non-standard GNU extension.
4667295610fSBaptiste Daroussin.It Ic in
46761d06d6bSBaptiste DaroussinIndent relative to the current indentation:
46861d06d6bSBaptiste Daroussin.Pp
4697295610fSBaptiste Daroussin.D1 Pf . Ic in Op Ar width
47061d06d6bSBaptiste Daroussin.Pp
47161d06d6bSBaptiste DaroussinIf
47261d06d6bSBaptiste Daroussin.Ar width
47361d06d6bSBaptiste Daroussinis signed, the new offset is relative.
47461d06d6bSBaptiste DaroussinOtherwise, it is absolute.
47561d06d6bSBaptiste DaroussinThis value is reset upon the next paragraph, section, or sub-section.
4767295610fSBaptiste Daroussin.El
47761d06d6bSBaptiste Daroussin.Sh MACRO SYNTAX
47861d06d6bSBaptiste DaroussinThe
47961d06d6bSBaptiste Daroussin.Nm
48061d06d6bSBaptiste Daroussinmacros are classified by scope: line scope or block scope.
48161d06d6bSBaptiste DaroussinLine macros are only scoped to the current line (and, in some
48261d06d6bSBaptiste Daroussinsituations, the subsequent line).
48361d06d6bSBaptiste DaroussinBlock macros are scoped to the current line and subsequent lines until
48461d06d6bSBaptiste Daroussinclosed by another block macro.
48561d06d6bSBaptiste Daroussin.Ss Line Macros
48661d06d6bSBaptiste DaroussinLine macros are generally scoped to the current line, with the body
48761d06d6bSBaptiste Daroussinconsisting of zero or more arguments.
48861d06d6bSBaptiste DaroussinIf a macro is scoped to the next line and the line arguments are empty,
48961d06d6bSBaptiste Daroussinthe next line, which must be text, is used instead.
49061d06d6bSBaptiste DaroussinThus:
49161d06d6bSBaptiste Daroussin.Bd -literal -offset indent
49261d06d6bSBaptiste Daroussin\&.I
49361d06d6bSBaptiste Daroussinfoo
49461d06d6bSBaptiste Daroussin.Ed
49561d06d6bSBaptiste Daroussin.Pp
49661d06d6bSBaptiste Daroussinis equivalent to
4977295610fSBaptiste Daroussin.Sq .I foo .
49861d06d6bSBaptiste DaroussinIf next-line macros are invoked consecutively, only the last is used.
49961d06d6bSBaptiste DaroussinIf a next-line macro is followed by a non-next-line macro, an error is
50061d06d6bSBaptiste Daroussinraised.
50161d06d6bSBaptiste Daroussin.Pp
50261d06d6bSBaptiste DaroussinThe syntax is as follows:
50361d06d6bSBaptiste Daroussin.Bd -literal -offset indent
50461d06d6bSBaptiste Daroussin\&.YO \(lBbody...\(rB
50561d06d6bSBaptiste Daroussin\(lBbody...\(rB
50661d06d6bSBaptiste Daroussin.Ed
50761d06d6bSBaptiste Daroussin.Bl -column "MacroX" "ArgumentsX" "ScopeXXXXX" "CompatX" -offset indent
50861d06d6bSBaptiste Daroussin.It Em Macro Ta Em Arguments Ta Em Scope     Ta Em Notes
5097295610fSBaptiste Daroussin.It Ic AT  Ta    <=1       Ta    current   Ta    \&
5107295610fSBaptiste Daroussin.It Ic B   Ta    n         Ta    next-line Ta    \&
5117295610fSBaptiste Daroussin.It Ic BI  Ta    n         Ta    current   Ta    \&
5127295610fSBaptiste Daroussin.It Ic BR  Ta    n         Ta    current   Ta    \&
5137295610fSBaptiste Daroussin.It Ic DT  Ta    0         Ta    current   Ta    \&
51445a5aec3SBaptiste Daroussin.It Ic EE  Ta    0         Ta    current   Ta    Version 9 At
51545a5aec3SBaptiste Daroussin.It Ic EX  Ta    0         Ta    current   Ta    Version 9 At
5167295610fSBaptiste Daroussin.It Ic I   Ta    n         Ta    next-line Ta    \&
5177295610fSBaptiste Daroussin.It Ic IB  Ta    n         Ta    current   Ta    \&
5187295610fSBaptiste Daroussin.It Ic IR  Ta    n         Ta    current   Ta    \&
519*6d38604fSBaptiste Daroussin.It Ic OP  Ta    >=1       Ta    current   Ta    DWB
5207295610fSBaptiste Daroussin.It Ic PD  Ta    1         Ta    current   Ta    \&
5217295610fSBaptiste Daroussin.It Ic RB  Ta    n         Ta    current   Ta    \&
5227295610fSBaptiste Daroussin.It Ic RI  Ta    n         Ta    current   Ta    \&
5237295610fSBaptiste Daroussin.It Ic SB  Ta    n         Ta    next-line Ta    \&
5247295610fSBaptiste Daroussin.It Ic SM  Ta    n         Ta    next-line Ta    \&
5257295610fSBaptiste Daroussin.It Ic TH  Ta    >1, <6    Ta    current   Ta    \&
5267295610fSBaptiste Daroussin.It Ic UC  Ta    <=1       Ta    current   Ta    \&
5277295610fSBaptiste Daroussin.It Ic in  Ta    1         Ta    current   Ta    Xr roff 7
52861d06d6bSBaptiste Daroussin.El
52961d06d6bSBaptiste Daroussin.Ss Block Macros
53061d06d6bSBaptiste DaroussinBlock macros comprise a head and body.
53161d06d6bSBaptiste DaroussinAs with in-line macros, the head is scoped to the current line and, in
53261d06d6bSBaptiste Daroussinone circumstance, the next line (the next-line stipulations as in
53361d06d6bSBaptiste Daroussin.Sx Line Macros
53461d06d6bSBaptiste Daroussinapply here as well).
53561d06d6bSBaptiste Daroussin.Pp
53661d06d6bSBaptiste DaroussinThe syntax is as follows:
53761d06d6bSBaptiste Daroussin.Bd -literal -offset indent
53861d06d6bSBaptiste Daroussin\&.YO \(lBhead...\(rB
53961d06d6bSBaptiste Daroussin\(lBhead...\(rB
54061d06d6bSBaptiste Daroussin\(lBbody...\(rB
54161d06d6bSBaptiste Daroussin.Ed
54261d06d6bSBaptiste Daroussin.Pp
54361d06d6bSBaptiste DaroussinThe closure of body scope may be to the section, where a macro is closed
54461d06d6bSBaptiste Daroussinby
5457295610fSBaptiste Daroussin.Ic SH ;
54661d06d6bSBaptiste Daroussinsub-section, closed by a section or
5477295610fSBaptiste Daroussin.Ic SS ;
5487295610fSBaptiste Daroussinor paragraph, closed by a section, sub-section,
5497295610fSBaptiste Daroussin.Ic HP ,
5507295610fSBaptiste Daroussin.Ic IP ,
5517295610fSBaptiste Daroussin.Ic LP ,
5527295610fSBaptiste Daroussin.Ic P ,
5537295610fSBaptiste Daroussin.Ic PP ,
5547295610fSBaptiste Daroussin.Ic RE ,
5557295610fSBaptiste Daroussin.Ic SY ,
55661d06d6bSBaptiste Daroussinor
5577295610fSBaptiste Daroussin.Ic TP .
55861d06d6bSBaptiste DaroussinNo closure refers to an explicit block closing macro.
55961d06d6bSBaptiste Daroussin.Pp
56061d06d6bSBaptiste DaroussinAs a rule, block macros may not be nested; thus, calling a block macro
56161d06d6bSBaptiste Daroussinwhile another block macro scope is open, and the open scope is not
56261d06d6bSBaptiste Daroussinimplicitly closed, is syntactically incorrect.
56361d06d6bSBaptiste Daroussin.Bl -column "MacroX" "ArgumentsX" "Head ScopeX" "sub-sectionX" "compatX" -offset indent
56461d06d6bSBaptiste Daroussin.It Em Macro Ta Em Arguments Ta Em Head Scope Ta Em Body Scope  Ta Em Notes
5657295610fSBaptiste Daroussin.It Ic HP  Ta    <2        Ta    current    Ta    paragraph   Ta    \&
5667295610fSBaptiste Daroussin.It Ic IP  Ta    <3        Ta    current    Ta    paragraph   Ta    \&
5677295610fSBaptiste Daroussin.It Ic LP  Ta    0         Ta    current    Ta    paragraph   Ta    \&
5687295610fSBaptiste Daroussin.It Ic ME  Ta    0         Ta    none       Ta    none        Ta    GNU
5697295610fSBaptiste Daroussin.It Ic MT  Ta    1         Ta    current    Ta    to \&ME     Ta    GNU
5707295610fSBaptiste Daroussin.It Ic P   Ta    0         Ta    current    Ta    paragraph   Ta    \&
5717295610fSBaptiste Daroussin.It Ic PP  Ta    0         Ta    current    Ta    paragraph   Ta    \&
5727295610fSBaptiste Daroussin.It Ic RE  Ta    <=1       Ta    current    Ta    none        Ta    \&
5737295610fSBaptiste Daroussin.It Ic RS  Ta    1         Ta    current    Ta    to \&RE     Ta    \&
5747295610fSBaptiste Daroussin.It Ic SH  Ta    >0        Ta    next-line  Ta    section     Ta    \&
5757295610fSBaptiste Daroussin.It Ic SS  Ta    >0        Ta    next-line  Ta    sub-section Ta    \&
5767295610fSBaptiste Daroussin.It Ic SY  Ta    1         Ta    current    Ta    to \&YS     Ta    GNU
5777295610fSBaptiste Daroussin.It Ic TP  Ta    n         Ta    next-line  Ta    paragraph   Ta    \&
5787295610fSBaptiste Daroussin.It Ic TQ  Ta    n         Ta    next-line  Ta    paragraph   Ta    GNU
5797295610fSBaptiste Daroussin.It Ic UE  Ta    0         Ta    current    Ta    none        Ta    GNU
5807295610fSBaptiste Daroussin.It Ic UR  Ta    1         Ta    current    Ta    part        Ta    GNU
5817295610fSBaptiste Daroussin.It Ic YS  Ta    0         Ta    none       Ta    none        Ta    GNU
58261d06d6bSBaptiste Daroussin.El
58361d06d6bSBaptiste Daroussin.Pp
58461d06d6bSBaptiste DaroussinIf a block macro is next-line scoped, it may only be followed by in-line
58561d06d6bSBaptiste Daroussinmacros for decorating text.
58661d06d6bSBaptiste Daroussin.Ss Font handling
58761d06d6bSBaptiste DaroussinIn
58861d06d6bSBaptiste Daroussin.Nm
58961d06d6bSBaptiste Daroussindocuments, both
59061d06d6bSBaptiste Daroussin.Sx Physical markup
59161d06d6bSBaptiste Daroussinmacros and
59261d06d6bSBaptiste Daroussin.Xr roff 7
59361d06d6bSBaptiste Daroussin.Ql \ef
59461d06d6bSBaptiste Daroussinfont escape sequences can be used to choose fonts.
59561d06d6bSBaptiste DaroussinIn text lines, the effect of manual font selection by escape sequences
59661d06d6bSBaptiste Daroussinonly lasts until the next macro invocation; in macro lines, it only lasts
59761d06d6bSBaptiste Daroussinuntil the end of the macro scope.
59861d06d6bSBaptiste DaroussinNote that macros like
5997295610fSBaptiste Daroussin.Ic BR
60061d06d6bSBaptiste Daroussinopen and close a font scope for each argument.
60161d06d6bSBaptiste Daroussin.Sh SEE ALSO
60261d06d6bSBaptiste Daroussin.Xr man 1 ,
60361d06d6bSBaptiste Daroussin.Xr mandoc 1 ,
60461d06d6bSBaptiste Daroussin.Xr eqn 7 ,
60561d06d6bSBaptiste Daroussin.Xr mandoc_char 7 ,
60661d06d6bSBaptiste Daroussin.Xr mdoc 7 ,
60761d06d6bSBaptiste Daroussin.Xr roff 7 ,
60861d06d6bSBaptiste Daroussin.Xr tbl 7
60961d06d6bSBaptiste Daroussin.Sh HISTORY
61061d06d6bSBaptiste DaroussinThe
61161d06d6bSBaptiste Daroussin.Nm
61261d06d6bSBaptiste Daroussinlanguage first appeared as a macro package for the roff typesetting
61361d06d6bSBaptiste Daroussinsystem in
61461d06d6bSBaptiste Daroussin.At v7 .
615*6d38604fSBaptiste Daroussin.Pp
61661d06d6bSBaptiste DaroussinThe stand-alone implementation that is part of the
61761d06d6bSBaptiste Daroussin.Xr mandoc 1
618*6d38604fSBaptiste Daroussinutility first appeared in
61961d06d6bSBaptiste Daroussin.Ox 4.6 .
62061d06d6bSBaptiste Daroussin.Sh AUTHORS
621*6d38604fSBaptiste Daroussin.An -nosplit
622*6d38604fSBaptiste Daroussin.An Douglas McIlroy Aq Mt m.douglas.mcilroy@dartmouth.edu
623*6d38604fSBaptiste Daroussindesigned and implemented the original version of these macros,
624*6d38604fSBaptiste Daroussinwrote the original version of this manual page,
625*6d38604fSBaptiste Daroussinand was the first to use them when he edited volume 1 of the
626*6d38604fSBaptiste Daroussin.At v7
627*6d38604fSBaptiste Daroussinmanual pages.
628*6d38604fSBaptiste Daroussin.Pp
629*6d38604fSBaptiste Daroussin.An James Clark
630*6d38604fSBaptiste Daroussinlater rewrote the macros for groff.
631*6d38604fSBaptiste Daroussin.An Eric S. Raymond Aq Mt esr@thyrsus.com
632*6d38604fSBaptiste Daroussinand
633*6d38604fSBaptiste Daroussin.An Werner Lemberg Aq Mt wl@gnu.org
634*6d38604fSBaptiste Daroussinadded the extended
63561d06d6bSBaptiste Daroussin.Nm
636*6d38604fSBaptiste Daroussinmacros to groff in 2007.
637*6d38604fSBaptiste Daroussin.Pp
638*6d38604fSBaptiste DaroussinThe
639*6d38604fSBaptiste Daroussin.Xr mandoc 1
640*6d38604fSBaptiste Daroussinprogram and this
641*6d38604fSBaptiste Daroussin.Nm
642*6d38604fSBaptiste Daroussinreference were written by
64361d06d6bSBaptiste Daroussin.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv .
644