version 1.23, 2015/01/26 13:03:48 |
version 1.27, 2017/06/08 18:11:22 |
|
|
.\" $Id$ |
.\" $Id$ |
.\" |
.\" |
.\" Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
.\" Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
.\" Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> |
.\" Copyright (c) 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org> |
.\" |
.\" |
.\" Permission to use, copy, modify, and distribute this software for any |
.\" Permission to use, copy, modify, and distribute this software for any |
.\" purpose with or without fee is hereby granted, provided that the above |
.\" purpose with or without fee is hereby granted, provided that the above |
Line 152 For GNU compatibility, this may also be invoked with |
|
Line 152 For GNU compatibility, this may also be invoked with |
|
.Cm frame . |
.Cm frame . |
.It Cm center |
.It Cm center |
Center the table instead of left-adjusting it. |
Center the table instead of left-adjusting it. |
Currently ignored. |
|
For GNU compatibility, this may also be invoked with |
For GNU compatibility, this may also be invoked with |
.Cm centre . |
.Cm centre . |
.It Cm decimalpoint |
.It Cm decimalpoint |
Line 246 Emit a double-vertical bar instead of data. |
|
Line 245 Emit a double-vertical bar instead of data. |
|
.Pp |
.Pp |
Keys may be followed by a set of modifiers. |
Keys may be followed by a set of modifiers. |
A modifier is either a modifier key or a natural number for specifying |
A modifier is either a modifier key or a natural number for specifying |
the minimum width of a column. |
the spacing to the right of the column. |
The following case-insensitive modifier keys are available: |
The following case-insensitive modifier keys are available: |
.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 d |
|
Move cell content down to the last cell of a vertical span. |
|
Currently ignored. |
.It Cm e |
.It Cm e |
Make this column wider to match the maximum width |
Make this column wider to match the maximum width |
of any other column also having the |
of any other column also having 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 m |
|
Specify a cell start macro. |
|
This is a GNU extension and currently unsupported. |
|
.It Cm p |
|
Set the point size to the following unsigned argument, |
|
or change it by the following signed argument. |
|
Currently ignored. |
|
.It Cm v |
|
Set the vertical line spacing to the following unsigned argument, |
|
or change it by the following signed argument. |
|
Currently ignored. |
|
.It Cm t |
|
Do not vertically center cell content in the vertical span, |
|
leave it at the top. |
|
Currently ignored. |
|
.It Cm u |
|
Move cell content up by half a table line. |
|
Currently ignored. |
|
.It Cm w |
|
Specify the minimum column width. |
.It Cm x |
.It Cm x |
After determining the width of all other columns, distribute the |
After determining the width of all other columns, distribute the |
rest of the line length among all columns having the |
rest of the line length among all columns having the |
|
|
Do not use this cell for determining the width of this column. |
Do not use this cell for determining the width of this column. |
.El |
.El |
.Pp |
.Pp |
The modifiers |
|
.Cm d , |
|
.Cm t , |
|
.Cm u , |
|
and |
|
.Cm w |
|
are ignored by |
|
.Xr mandoc 1 . |
|
.Pp |
|
For example, the following layout specifies a center-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: |
.Pp |
.Pp |
.Dl c10 | l10 | nfB |
.Dl cw10 | lw10 | nfB |
.Ss Data |
.Ss Data |
The data section follows the last layout row. |
The data section follows the last layout row. |
By default, cells in a data section are delimited by a tab. |
By default, cells in a data section are delimited by a tab. |
Line 314 It may then be followed by a tab |
|
Line 327 It may then be followed by a tab |
|
.Pq or as designated by Cm tab |
.Pq or as designated by Cm tab |
or an end-of-line to terminate the row. |
or an end-of-line to terminate the row. |
.Sh COMPATIBILITY |
.Sh COMPATIBILITY |
This section documents compatibility between mandoc and other |
|
.Nm |
|
implementations, at this time limited to GNU tbl. |
|
.Pp |
|
.Bl -dash -compact |
|
.It |
|
In GNU tbl, comments and macros are disallowed prior to the data block |
|
of a table. |
|
The |
The |
.Xr mandoc 1 |
.Xr mandoc 1 |
implementation allows them. |
implementation of |
.El |
.Nm |
|
doesn't support |
|
.Xr mdoc 7 |
|
and |
|
.Xr man 7 |
|
macros and |
|
.Xr eqn 7 |
|
equations inside tables. |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr mandoc 1 , |
.Xr mandoc 1 , |
.Xr man 7 , |
.Xr man 7 , |