version 1.19, 2014/10/13 23:31:46 |
version 1.22, 2015/01/20 19:39:34 |
Line 50 macro tags, whose precise syntax is documented in |
|
Line 50 macro tags, whose precise syntax is documented in |
|
Tables consist of a series of options on a single line, followed by the |
Tables consist of a series of options on a single line, followed by the |
table layout, followed by data. |
table layout, followed by data. |
.Pp |
.Pp |
For example, the following creates a boxed table with digits centred in |
For example, the following creates a boxed table with digits centered in |
the cells. |
the cells. |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
\&.TS |
\&.TS |
|
|
.Ss Options |
.Ss Options |
The first line of a table consists of space-separated option keys and |
The first line of a table consists of space-separated option keys and |
modifiers terminated by a semicolon. |
modifiers terminated by a semicolon. |
|
For GNU compatibility, option keys can also be separated by commas. |
If the first line does not have a terminating semicolon, it is assumed |
If the first line does not have a terminating semicolon, it is assumed |
that no options are specified and instead a |
that no options are specified and instead a |
.Sx Layout |
.Sx Layout |
Line 198 Layout lines may also be separated by a comma. |
|
Line 199 Layout lines may also be separated by a comma. |
|
Each layout cell consists of one of the following case-insensitive keys: |
Each layout cell consists of one of the following case-insensitive keys: |
.Bl -tag -width 2n |
.Bl -tag -width 2n |
.It Cm c |
.It Cm c |
Centre a literal string within its column. |
Center a literal string within its column. |
.It Cm r |
.It Cm r |
Right-justify a literal string within its column. |
Right-justify a literal string within its column. |
.It Cm l |
.It Cm l |
Line 248 The following case-insensitive modifier keys are avail |
|
Line 249 The following case-insensitive modifier keys are avail |
|
.Bl -tag -width 2n |
.Bl -tag -width 2n |
.It Cm b |
.It Cm b |
Use a bold font for the contents of this column. |
Use a bold font for the contents of this column. |
|
.It Cm e |
|
Make this column wider to match the maximum width |
|
of any other column also having the |
|
.Cm e |
|
modifier. |
.It Cm f |
.It Cm f |
The next character selects the font to use for this column. |
The next character selects the font to use for this column. |
See the |
See the |
|
|
manual for supported one-character font names. |
manual for supported one-character font names. |
.It Cm i |
.It Cm i |
Use an italic font for the contents of this column. |
Use an italic font for the contents of this column. |
|
.It Cm x |
|
After determining the width of all other columns, distribute the |
|
rest of the line length among all columns having the |
|
.Cm x |
|
modifier. |
|
.It Cm z |
|
Do not use this cell for determining the width of this column. |
.El |
.El |
.Pp |
.Pp |
The modifiers |
The modifiers |
.Cm d , |
.Cm d , |
.Cm e , |
|
.Cm r , |
|
.Cm t , |
.Cm t , |
.Cm u , |
.Cm u , |
and |
and |
.Cm z |
.Cm w |
are ignored by |
are ignored by |
.Xr mandoc 1 . |
.Xr mandoc 1 . |
.Pp |
.Pp |
For example, the following layout specifies a centre-justified column of |
For example, the following layout specifies a center-justified column of |
minimum width 10, followed by vertical bar, followed by a left-justified |
minimum width 10, followed by vertical bar, followed by a left-justified |
column of minimum width 10, another vertical bar, then a column using |
column of minimum width 10, another vertical bar, then a column using |
bold font justified about the decimal point in numbers: |
bold font justified about the decimal point in numbers: |