version 1.8, 2010/06/01 11:54:23 |
version 1.10, 2010/06/26 15:22:19 |
|
|
BODY |
BODY |
.Ed |
.Ed |
.Pp |
.Pp |
COND is a conditional (for the time being, this always evaluates to |
COND is a conditional statement. |
false). |
roff allows for complicated conditionals; mandoc is much simpler. |
|
At this time, mandoc supports only |
|
.Sq n , |
|
evaluating to true; |
|
and |
|
.Sq t , |
|
.Sq e , |
|
and |
|
.Sq o , |
|
evaluating to false. |
|
All other invocations are read up to the next end of line or space and |
|
evaluate as false. |
.Pp |
.Pp |
If the BODY section is begun by an escaped brace |
If the BODY section is begun by an escaped brace |
.Sq \e{ , |
.Sq \e{ , |
Line 257 This macro is intended to have one argument, |
|
Line 268 This macro is intended to have one argument, |
|
the name of the request, macro or string to be undefined. |
the name of the request, macro or string to be undefined. |
Currently, it is ignored including its arguments, |
Currently, it is ignored including its arguments, |
and the number of arguments is not checked. |
and the number of arguments is not checked. |
|
.Ss \&nr |
|
Define a register. |
|
A register is an arbitrary string value that defines some sort of state, |
|
which influences parsing and/or formatting. |
|
Its syntax is as follows: |
|
.Pp |
|
.D1 Pf \. Sx \&nr Cm name value |
|
.Pp |
|
The |
|
.Cm value |
|
may, at the moment, only be an integer. |
|
The |
|
.Cm name |
|
is defined up to the next whitespace. |
|
The following register |
|
.Cm name |
|
requests are recognised: |
|
.Bl -tag -width Ds |
|
.It Cm nS |
|
If set to a positive integer value, certain |
|
.Xr mdoc 7 |
|
macros will behave as if they are defined in the |
|
.Em SYNOPSIS |
|
section to a manual. |
|
Otherwise, this behaviour is unset (even if called within the |
|
.Em SYNOPSIS |
|
section itself). |
|
.El |
.Ss \&tr |
.Ss \&tr |
Output character translation. |
Output character translation. |
This macro is intended to have one argument, |
This macro is intended to have one argument, |
|
|
.Pq somewhere between 1.15 and 1.19 . |
.Pq somewhere between 1.15 and 1.19 . |
.Pp |
.Pp |
.Bl -dash -compact |
.Bl -dash -compact |
|
.It |
|
The |
|
.Cm nS |
|
request to |
|
.Sx \&nr |
|
is only compatible with OpenBSD's groff. |
.It |
.It |
Historic groff did not accept white-space buffering the custom END tag |
Historic groff did not accept white-space buffering the custom END tag |
for the |
for the |