tbl | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
NAME | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
SYNOPSIS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
DESCRIPTION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
OPTIONS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
USAGE | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
The global options must end with a semicolon. There might be whitespace after an option and its argument in parentheses.
After global options come lines describing the format of each line of the table. Each such format line describes one line of the table itself, except that the last format line (which you must end with a period) describes all remaining lines of the table. A single key character describes each column of each line of the table. You may run format specs for multiple lines together on the same line by separating them with commas.
You may follow each key character with specifiers that determine the font and point size of the corresponding item, that determine column width, inter-column spacing, etc.
The longest format line defines the number of columns in the table; missing format descriptors at the end of format lines are assumed to be `L'. Extra columns in the data (which have no corresponding format entry) are ignored.
The available key characters are:
A vertical bar to the left of the first key-letter or to the right of the last one produces a line at the edge of the table.
Here are the specifiers that can appear in suffixes to column key letters:
A number suffix on a key character is interpreted as a column separation in ens (multiplied in proportion if the expand option is on). Default separation is 3n.
The format lines are followed by lines containing the actual data for the table, followed finally by .TE. Within such data lines, items are normally separated by tab characters (or the character specified with the tab option). Long input lines can be broken across multiple lines if the last character on the line is `\' (which vanishes after concatenation).
A dot starting a line, followed by anything but a digit is handled as a troff command, passed through without changes. The table position is unchanged in this case.
If a data line consists of only `_' or `=', a single or double line, respectively, is drawn across the table at that point; if a single item in a data line consists of only `_' or `=', then that item is replaced by a single or double line, joining its neighbours. If a data item consists only of `\_' or `\=', a single or double line, respectively, is drawn across the field at that point which does not join its neighbours.
A data item consisting only of `\Rx' (`x' any character) is replaced by repetitions of character `x' as wide as the column (not joining its neighbours).
A data item consisting only of `\^' indicates that the field immediately above spans downward over this row.
A text block can be used to enter data as a single entry which would be too long as a simple string between tabs. It is started with `T{' and closed with `T}'. The latter must start a line, probably followed by other data columns (separated with tabs).
To change the data format within a table, use the .T& command (at the start of a line). It is followed by format and data lines (but no global options) similar to the .TS request.
INTERACTION WITH EQN | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
GNU TBL ENHANCEMENTS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Numeric and alphabetic items may appear in the same column.
Numeric and alphabetic items may span horizontally.
tbl uses register, string, macro and diversion names beginning with the digit~3. When using tbl you should avoid using any names beginning with a~3.
BUGS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
A text block within a table must be able to fit on one page.
The bp request cannot be used to force a page-break in a multi-page table. Instead, define BP as follows
and use BP instead of bp.
Using \a directly in a table to get leaders will not work. This is correct behaviour: \a is an uninterpreted leader. To get leaders use a real leader, either by using a control A or like this:
.ds a \a .TS tab(;); lw(1i) l. A\*a;B .TE
REFERENCE | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
SEE ALSO | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Sommaire | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
Table des mots clés | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
-C | OPTIONS |
-v | OPTIONS |
allbox | USAGE |
box | USAGE |
center | USAGE |
decimalpoint(c) | USAGE |
delim(xy) | USAGE |
doublebox | USAGE |
doubleframe | USAGE |
expand | USAGE |
frame | USAGE |
linesize(n) | USAGE |
nokeep | USAGE |
nospaces | USAGE |
tab(x) | USAGE |