.\" Automatically generated from an mdoc input file. Do not edit. .\" $Id: tbl.7,v 1.34 2019/03/02 21:03:02 schwarze Exp $ .\" .\" Copyright (c) 2010, 2011 Kristaps Dzonsons .\" Copyright (c) 2014,2015,2017,2018,2019 Ingo Schwarze .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .TH "TBL" "7" "March 2, 2019" "Debian" "Miscellaneous Information Manual" .nh .if n .ad l .SH "NAME" \fBtbl\fR \- tbl language reference for mandoc .SH "DESCRIPTION" The \fBtbl\fR language formats tables. It is used within mdoc(7) and man(7) pages. This manual describes the subset of the \fBtbl\fR language accepted by the mandoc(1) utility. .PP Each table is started with a roff(7) \fB\&TS\fR macro, consist of at most one line of \fIOptions\fR, one or more \fILayout\fR lines, one or more \fIData\fR lines, and ends with a \fB\&TE\fR macro. All input must be 7-bit ASCII. .SS "Options" If the first input line of a table ends with a semicolon, it contains case-insensitive options separated by spaces, tabs, or commas. Otherwise, it is interpreted as the first \fILayout\fR line. .PP The following options are available. Some of them require arguments enclosed in parentheses: .TP 8n \fBallbox\fR Draw a single-line box around each table cell. .TP 8n \fBbox\fR Draw a single-line box around the table. For GNU compatibility, this may also be invoked with \fBframe\fR. .TP 8n \fBcenter\fR Center the table instead of left-adjusting it. For GNU compatibility, this may also be invoked with \fBcentre\fR. .TP 8n \fBdecimalpoint\fR Use the single-character argument as the decimal point with the \fBn\fR layout key. This is a GNU extension. .TP 8n \fBdelim\fR Use the two characters of the argument as eqn(7) delimiters. Currently unsupported. .TP 8n \fBdoublebox\fR Draw a double-line box around the table. For GNU compatibility, this may also be invoked with \fBdoubleframe\fR. .TP 8n \fBexpand\fR Increase the width of the table to the current line length. Currently ignored. .TP 8n \fBlinesize\fR Draw lines with the point size given by the unsigned integer argument. Currently ignored. .TP 8n \fBnokeep\fR Allow page breaks within the table. This is a GNU extension and currently ignored. .TP 8n \fBnospaces\fR Ignore leading and trailing spaces in data cells. This is a GNU extension and currently ignored. .TP 8n \fBnowarn\fR Suppress warnings about tables exceeding the current line length. This is a GNU extension and currently ignored. .TP 8n \fBtab\fR Use the single-character argument as a delimiter between data cells. By default, the horizontal tabulator character is used. .SS "Layout" The table layout follows an \fIOptions\fR line or a roff(7) \fB\&TS\fR or \fB\&T&\fR macro. Each layout line specifies how one line of \fIData\fR is formatted. The last layout line ends with a full stop. It also applies to all remaining data lines. Multiple layout lines can be joined by commas on a single physical input line. .PP Each layout line consists of one or more layout cell specifications, optionally separated by whitespace. The following case-insensitive key characters start a new cell specification: .TP 4n \fBc\fR Center the string in this cell. .TP 4n \fBr\fR Right-justify the string in this cell. .TP 4n \fBl\fR Left-justify the string in this cell. .TP 4n \fBn\fR Justify a number around its last decimal point. If no decimal point is found in the number, it is assumed to trail the number. .TP 4n \fBs\fR Horizontally span columns from the last non-\fBs\fR layout cell. It is an error if a column span follows a \fB_\fR or \fB=\fR cell, or comes first on a layout line. The combined cell as a whole consumes only one cell of the corresponding data line. .TP 4n \fBa\fR Left-justify a string and pad with one space. .TP 4n \fB\(ha\fR Vertically span rows from the last non-\fB\(ha\fR layout cell. It is an error to invoke a vertical span on the first layout line. Unlike a horizontal span, a vertical span consumes a data cell and discards the content. .TP 4n \fB_\fR Draw a single horizontal line in this cell. This consumes a data cell and discards the content. It may also be invoked with \fB\-\fR. .TP 4n \fB=\fR Draw a double horizontal line in this cell. This consumes a data cell and discards the content. .PP Each cell key may be followed by zero or more of the following case-insensitive modifiers: .TP 4n \fBb\fR Use a bold font for the contents of this cell. .TP 4n \fBd\fR Move content down to the last row of this vertical span. Currently ignored. .TP 4n \fBe\fR Make this column wider to match the maximum width of any other column also having the \fBe\fR modifier. .TP 4n \fBf\fR The next character selects the font to use for this cell. See the roff(7) manual for supported one-character font names. .TP 4n \fBi\fR Use an italic font for the contents of this cell. .TP 4n \fBm\fR Specify a cell start macro. This is a GNU extension and currently unsupported. .TP 4n \fBp\fR Set the point size to the following unsigned argument, or change it by the following signed argument. Currently ignored. .TP 4n \fBv\fR Set the vertical line spacing to the following unsigned argument, or change it by the following signed argument. Currently ignored. .TP 4n \fBt\fR Do not vertically center content in this vertical span, leave it in the top row. Currently ignored. .TP 4n \fBu\fR Move cell content up by half a table row. Currently ignored. .TP 4n \fBw\fR Specify a minimum column width. .TP 4n \fBx\fR After determining the width of all other columns, distribute the rest of the line length among all columns having the \fBx\fR modifier. .TP 4n \fBz\fR Do not use this cell for determining the width of this column. .TP 4n \fB\&|\fR .br Draw a single vertical line to the right of this cell. .TP 4n \fB||\fR Draw a double vertical line to the right of this cell. .PP If a modifier consists of decimal digits, it specifies a minimum spacing in units of \fBn\fR between this column and the next column to the right. The default is 3. If there is a vertical line, it is drawn inside the spacing. .SS "Data" The data section follows the last \fILayout\fR line. Each data line consists of one or more data cells, delimited by \fBtab\fR characters. .PP If a data cell contains only the two bytes \(oq\e\(ha\(cq, the cell above spans to this row, as if the layout specification of this cell were \fB\(ha\fR. .PP If a data cell contains only the single character \(oq_\(cq or \(oq=\(cq, a single or double horizontal line is drawn across the cell, joining its neighbours. If a data cell contains only the two character sequence \(oq\e_\(cq or \(oq\e=\(cq, a single or double horizontal line is drawn inside the cell, not joining its neighbours. If a data line contains nothing but the single character \(oq_\(cq or \(oq=\(cq, a horizontal line across the whole table is inserted without consuming a layout row. .PP In place of any data cell, a text block can be used. It starts with \fB\&T{\fR at the end of a physical input line. Input line breaks inside the text block neither end the text block nor its data cell. It only ends if \fB\&T}\fR occurs at the beginning of a physical input line and is followed by an end-of-cell indicator. If the \fB\&T}\fR is followed by the end of the physical input line, the text block, the data cell, and the data line ends at this point. If the \fB\&T}\fR is followed by the \fBtab\fR character, only the text block and the data cell end, but the data line continues with the data cell following the \fBtab\fR chara