{"id":4142,"date":"2022-12-20T17:39:30","date_gmt":"2022-12-20T20:39:30","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/groff_hdtbl-man7\/"},"modified":"2022-12-20T17:39:30","modified_gmt":"2022-12-20T20:39:30","slug":"groff_hdtbl-man7","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/groff_hdtbl-man7\/","title":{"rendered":"GROFF_HDTBL (man7)"},"content":{"rendered":"<h1 align=\"center\">GROFF_HDTBL<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#USAGE\">USAGE<\/a><br \/> <a href=\"#MACROS AND ARGUMENTS\">MACROS AND ARGUMENTS<\/a><br \/> <a href=\"#HDTBL CUSTOMIZATION\">HDTBL CUSTOMIZATION<\/a><br \/> <a href=\"#BUGS AND SUGGESTIONS\">BUGS AND SUGGESTIONS<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">groff_hdtbl \u2212 Heidelberger table macros for GNU roff<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>hdtbl<\/b> macros consist of four base and three optional macros, controlled by about twenty arguments. The syntax is simple and similar to the <b>HTML<\/b> table model and nearly as flexible: You can write sequences of tokens (macro calls with their arguments and content data), separated by blanks and beginning with a macro call, into the same line to get compact and cleanly arrranged input. An advantage of <b>hdtbl<\/b> is that the tables are constructed without calling a preprocessor; this means that <b>groff<\/b>\u2019s full macro capabilities are available. On the other hand, table processing with <b>hdtbl<\/b> is much slower than using the <b>tbl<\/b>(1) preprocessor. A further advantage is that the HTML-like syntax of <b>hdtbl<\/b> will be easily converted to HTML; this is not implemented yet.<\/p>\n<h2>USAGE <a name=\"USAGE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">In this and the next section, we present examples to help users understand the basic workflow of <b>hdtbl<\/b>. First of all, you must load the <i>hdtbl.tmac<\/i> file. As with nearly all other groff macro packages, there are two possibilities to do so: Either add the line<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.mso hdtbl.tmac<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">to your <i>roff<\/i> file before using any macros of the <b>hdtbl<\/b> package, or add the option<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">\u2212m hdtbl<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">to the command line of groff (before the document file which contains <b>hdtbl<\/b> macros). Then you can include on or more tables in your document, where each one must be started and ended with the .TBL and .ETB macros, respectively.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In this man page, we approximate the result of each example in the <i>tty<\/i> format to be as generic as possible since <b>hdtbl<\/b> currently only supports the PS and PDF output devices.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The simplest well-formed table consists of just single calls to the four base table macros in the right order. Here we construct a table with only one cell.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.TBL <br \/> .TR <br \/> .TD <i><br \/> contents of the table cell<\/i> <br \/> .ETB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A <i>tty<\/i> representation is<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+ <br \/> | contents-of-the-table-cell | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Equivalent to the above is the following notation.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.TBL .TR .TD &#8220;<i>contents of the table cell<\/i>&#8221; .ETB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">By default, the formatted table is inserted into the surrounding text at the place of its definition. If the vertical space isn\u2019t sufficient, it is placed at the top of the next page. Tables can also be stored for later insertion.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Using \u2018<i>row-number<\/i>*<i>column-number<\/i>\u2019 as the data for the table cells, a table with two rows and two columns can be written as<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.TBL cols=2 <br \/> . TR .TD 1*1 .TD 1*2 <br \/> . TR .TD 2*1 .TD 2*2 <br \/> .ETB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A <i>tty<\/i> representation is<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+ <br \/> | 1*1 | 1*2 | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+ <br \/> | 2*1 | 2*2 | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Here we see a difference from HTML tables: The number of columns must be explicitly specified using the \u2018cols=<i>m<\/i>\u2019 argument (or indirectly via the \u2018width\u2019 argument, see below).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The contents of a table cell is arbitrary; for example, it can be another table, without restriction to the nesting depth. A given table layout can be either constructed with suitably nested tables or with proper arguments to .TD and .TH, controlling column and row spanning. Note, however, that this table<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.TBL <br \/> . TR <br \/> . TD <br \/> . nop 1*1 1*2 <br \/> . TR <br \/> . TD <br \/> . TBL cols=2 border= <br \/> . TR <br \/> . TD <br \/> . nop 2*1 <br \/> . TD <br \/> . nop 2*2 <br \/> . ETB <br \/> .ETB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">and this table<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.TBL cols=2 <br \/> . TR <br \/> . TD colspan=2 <br \/> . nop 1*1 1*2 <br \/> . TR <br \/> . TD <br \/> . nop 2*1 <br \/> . TD <br \/> . nop 2*2 <br \/> .ETB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">are similar but not identical (the use of .nop is purely cosmetic to get proper indentation).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The first table looks like<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+ <br \/> | 1*1 1*2 | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+ <br \/> | | <br \/> | 2*1 2*2 | <br \/> | | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">and the second one like<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+ <br \/> | 1*1 1*2 | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+ <br \/> | 2*1 | 2*2 | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Here the latter table in a more compact form.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.TBL cols=2 .TR &#8220;.TD colspan=2&#8221; 1*1 1*2 <br \/> . TR .TD 2*1 .TD 2*2 .ETB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If a macro has one or more arguments (see below), and it is not starting a line, everything belonging to this macro including the macro itself must be enclosed in double quotes.<\/p>\n<h2>MACROS AND ARGUMENTS <a name=\"MACROS AND ARGUMENTS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The order of macro calls and other tokens follows the HTML model. In the following list, valid predecessors and successors of all <b>hdtbl<\/b> macros are given, together with the possible arguments.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Macro arguments are separated by blanks. The order of arguments is arbitrary; they are of the form<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">key=<i>value<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">or<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">key=&#8217;<i>value1<\/i> [<i>value2<\/i> [&#8230;]]&#8217;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">with the only exception of the optional argument of the macro .ETB, which is the string \u2018hold\u2019. Another possible form is<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">&#8220;key=<i>value1<\/i> [<i>value2<\/i> [&#8230;]]&#8221;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">However, this is limited to the case where the macro is the first one in the line and not already enclosed in double quotes.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Argument values specified below as\u00a0<i>c<\/i> are colors predefined by <b>groff<\/b> or colors defined by the user with the .defcolor request. Argument values\u00a0<i>d<\/i> are decimal numbers with or without decimal point. Argument values\u00a0<i>m<\/i> are natural numbers. Argument values\u00a0<i>n<\/i> are numerical values with the usual <b>groff<\/b> scaling indicators. Some of the arguments are specific to one or two macros, but most of them can be specified with .TBL, .TR, .TD, and .TH. These common arguments are explained in the next subsection.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Most of the argument default values can be changed by the user by setting corresponding default registers or strings, as listed below. <b><br \/> .TBL<\/b> [<i>args<\/i>]<\/p>\n<p style=\"margin-left:22%;\">Begin a new table.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>predecessor:<\/b> .TD, .TH, .ETB, cell contents <b><br \/> successor:<\/b> .CPTN, .TR <b><br \/> arguments:<\/b><\/p>\n<p style=\"margin-left:32%;\">border=[<i>n<\/i>]<\/p>\n<p style=\"margin-left:43%;\">Thickness of the surrounding box border. \u2018border=\u2019 (no value) means neither a surrounding box border nor any horizontal or vertical separator lines between the table rows and cells. \u2018border=0\u2019 suppresses the surrounding box border, but still allows separator lines between cells and rows. <b><br \/> Default:<\/b> \u2018border=.1n\u2019 (register \u2018t*b\u2019).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>bc=<i>c<\/i><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"20%\">\n<p>Border color.<\/p>\n<\/td>\n<td width=\"37%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:43%;\"><b>Default:<\/b> \u2018bc=red4\u2019 (string \u2018t*bc\u2019).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"10%\">\n<p style=\"margin-top: 1em\">cols=<i>m<\/i><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"57%\">\n<p style=\"margin-top: 1em\">Number of table columns. This argument is necessary if more than one column is in the table and no \u2018width\u2019 arguments are present.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:43%;\"><b>Default:<\/b> \u2018cols=1\u2019 (register \u2018t*cols\u2019).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"8%\">\n<p style=\"margin-top: 1em\">cpd=<i>n<\/i><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"57%\">\n<p style=\"margin-top: 1em\">Cell padding, i.e., the extra space between the cell space border and the cell contents.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:43%;\"><b>Default:<\/b> \u2018cpd=.5n\u2019 (register \u2018t*cpd\u2019).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"8%\">\n<p style=\"margin-top: 1em\">csp=<i>n<\/i><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"57%\">\n<p style=\"margin-top: 1em\">Cell spacing, i.e., the extra space between the table border or vertical or horizontal lines between cells and the cellspace.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:43%;\"><b>Default:<\/b> \u2018csp=.5n\u2019 (register \u2018t*csp\u2019).<\/p>\n<p style=\"margin-left:32%;\">tal=l|c|r<\/p>\n<p style=\"margin-left:43%;\">Horizontal alignment of the table, if it is smaller than the line width. \u2018tal=l\u2019: left alignment. \u2018tal=c\u2019: centered alignment. \u2018tal=r\u2019: right alignment. <b><br \/> Default:<\/b> \u2018tal=l\u2019 (register \u2018t*tal\u2019).<\/p>\n<p style=\"margin-left:32%;\">width=&#8217;<i>w1<\/i> [<i>w2<\/i> [&#8230;]]&#8217;<\/p>\n<p style=\"margin-left:43%;\">Widths of table cells. <i>w1<\/i>, <i>w2<\/i>, &#8230; are either numbers of type\u00a0<i>n<\/i> or natural numbers with the pseudo-scaling indicator \u2018%\u2019, with the meaning \u201cpercent of the actual line length (or column length for inner tables, respectively)\u201d. If there are less width values than table columns, the last width value is used for the remaining cells. The argument<\/p>\n<p style=\"margin-left:54%; margin-top: 1em\">width=&#8217;1.5i 10%&#8217;<\/p>\n<p style=\"margin-left:43%; margin-top: 1em\">for example indicates that the first column is 1.5\u00a0inches wide; the remaining columns take 1\/10 of the column length each. <b><br \/> Default:<\/b> The table width equals the outer line length or column length; the columns have equal widths.<\/p>\n<p style=\"margin-left:32%;\">height=<i>n<\/i><\/p>\n<p style=\"margin-left:43%;\">Height of the table. If the table with its contents is lower than\u00a0<i>n<\/i>, the last row is stretched to this value.<\/p>\n<p style=\"margin-left:11%;\"><b>.CPTN<\/b> [<i>args<\/i>]<\/p>\n<p style=\"margin-left:22%;\">Text of caption.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The (optionally numbered) table caption. .CPTN is optional.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>predecessor:<\/b> .TBL <b><br \/> successor:<\/b> .TR <b><br \/> arguments:<\/b><\/p>\n<p style=\"margin-left:32%;\">val=t|b<\/p>\n<p style=\"margin-left:43%;\">Vertical alignment of the table caption. \u2018val=t\u2019: The caption is placed above the table. \u2018val=b\u2019: The caption is placed below the table. <b><br \/> Default:<\/b> \u2018val=t\u2019 (string \u2018t*cptn\u2019).<\/p>\n<p style=\"margin-left:11%;\"><b>.TR<\/b> [<i>args<\/i>]<\/p>\n<p style=\"margin-left:22%;\">Begin a new table row.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>predecessor:<\/b> .TBL, .CPTN, .TD, .TH, .ETB, cell contents <b><br \/> successor:<\/b> .TD, .TH <b><br \/> arguments:<\/b><\/p>\n<p style=\"margin-left:32%;\">height=<i>n<\/i><\/p>\n<p style=\"margin-left:43%;\">The height of the row. If a cell in the row is higher than\u00a0<i>n<\/i>, this value is ignored; otherwise the row height is stretched to\u00a0<i>n<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>.TD<\/b> [<i>args<\/i> [<i>cell contents<\/i>]]<\/p>\n<p style=\"margin-left:22%;\">Begin a table data cell.<\/p>\n<p style=\"margin-left:11%;\"><b>.TH<\/b> [<i>args<\/i> [<i>cell contents<\/i>]]<\/p>\n<p style=\"margin-left:22%;\">Begin a table header cell.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Arguments and cell contents can be mixed. The macro .TH is not really necessary and differs from .TD only in three default settings, similar to the <TH> and <TD> HTML tags: The contents of .TH is horizontally and vertically centered and typeset in boldface.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>predecessor:<\/b> .TR, .TD, .TH, .ETB, cell contents <b><br \/> successor:<\/b> .TD, .TH, .TR, .ETB, cell contents <b><br \/> arguments:<\/b><\/p>\n<p style=\"margin-left:32%;\">colspan=<i>m<\/i><\/p>\n<p style=\"margin-left:43%;\">The width of this cell is the sum of the widths of the\u00a0<i>m<\/i> cells above and below this row.<\/p>\n<p style=\"margin-left:32%;\">rowspan=<i>m<\/i><\/p>\n<p style=\"margin-left:43%;\">The height of this cell is the sum of the heights of the <i>m<\/i> cells left and right of this column.<\/p>\n<p style=\"margin-left:43%; margin-top: 1em\"><b>Remark:<\/b> Overlapping of column and row spanning, as in the following table fragment (the overlapping happens in the second cell in the second row), is invalid and causes incorrect results.<\/p>\n<p style=\"margin-left:54%; margin-top: 1em\">.TR .TD 1*1 &#8220;.TD 1*2 rowspan=2&#8221; .TD 1*3 <br \/> .TR &#8220;.TD 2*1 colspan=2&#8221; .TD 2*3<\/p>\n<p style=\"margin-left:32%; margin-top: 1em\">A working example for headers and cells with <b>colspan<\/b> is<\/p>\n<p style=\"margin-left:43%; margin-top: 1em\">.TBL cols=3 <br \/> . TR &#8220;.TH colspan=2&#8221; header1+2 .TH header3 <br \/> . TR .TD 1*1 .TD 1*2 .TD 1*3 <br \/> . TR .TD 2*1 &#8220;.TD colspan=2&#8221; 2*2+3 <br \/> .ETB<\/p>\n<p style=\"margin-left:32%; margin-top: 1em\">This looks like<\/p>\n<p style=\"margin-left:43%; margin-top: 1em\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;+ <br \/> | header1+2 | header3 | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;+ <br \/> | 1*1 | 1*2 | 1*3 | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;+ <br \/> | 2*1 | 2*2+3 | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<\/p>\n<p style=\"margin-left:32%; margin-top: 1em\">A working example with <b>rowspan<\/b> is<\/p>\n<p style=\"margin-left:43%; margin-top: 1em\">.TBL cols=3 <br \/> . TR <br \/> . TD 1*1 <br \/> . TD rowspan=2 1+2*2 <br \/> . TD 1*3 <br \/> . <br \/> . TR <br \/> . TD 2*1 <br \/> . TD 2*3 <br \/> .ETB<\/p>\n<p style=\"margin-left:32%; margin-top: 1em\">which looks like<\/p>\n<p style=\"margin-left:43%; margin-top: 1em\">+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;+ <br \/> | 1*1 | 1+2*2 | 1*3 | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8211;+ +&#8212;&#8212;&#8212;&#8212;&#8212;+ <br \/> | 2*1 | | 2*3 | <br \/> +&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;+<\/p>\n<p style=\"margin-left:11%;\"><b>.ETB<\/b> [<b>hold<\/b>]<\/p>\n<p style=\"margin-left:22%;\">End of the table.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">This macro finishes a table. It causes one of the following actions.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>If the argument \u2018hold\u2019 is given, the table is held until it is freed by calling the macro .t*free, which in turn prints the table immediately, either at the current position or at the top of the next page if its height is larger than the remaining space on the page.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>Otherwise, if the table is higher than the remaining space on the page, it is printed at the top of the next page.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>If neither of the two above constraints hold, the table is printed immediately at the place of its definition.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>predecessor:<\/b> .TD, .TH, .ETB, cell contents <b><br \/> successor:<\/b> .TBL, .TR, .TD, .TH, .ETB, cell contents <b><br \/> arguments:<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p style=\"margin-top: 1em\">hold<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"57%\">\n<p style=\"margin-top: 1em\">Prevent the table from being printed until it is freed by calling the macro .t*free. This argument is ignored for inner (nested) tables.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>.t*free<\/b> [<i>n<\/i>]<\/p>\n<p style=\"margin-left:22%;\">Free the next held table or <i>n\u00a0<\/i>held tables. Call this utility macro to print tables which are held by using the \u2018hold\u2019 argument of the .ETB macro.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Arguments common to .TBL, .TR, .TD, and .TH<\/b> <br \/> The arguments described in this section can be specified with the .TBL and .TR macros, but they are eventually passed on to the table cells. If omitted, the defaults take place, which the user can change by setting the corresponding default registers or strings, as documented below. Setting an argument with the .TBL macro has the same effect as setting it for all rows in the table. Setting an argument with a .TR macro has the same effect as setting it for all the .TH or .TD macro in this row. <br \/> bgc=[<i>c<\/i>]<\/p>\n<p style=\"margin-left:22%;\">The background color of the table cells. This includes the area specified with the \u2018csp\u2019 argument. The argument \u2018bgc=\u2019 (no value) suppresses a background color; this makes the background transparent. <b><br \/> Default:<\/b> \u2018bgc=bisque\u2019 (string \u2018t*bgc\u2019).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p>fgc=<i>c<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"64%\">\n<p>The foreground color of the cell contents.<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\"><b>Default:<\/b> \u2018fgc=red4\u2019 (string \u2018t*fgc\u2019).<\/p>\n<p style=\"margin-left:11%;\">ff=<i>name<\/i><\/p>\n<p style=\"margin-left:22%;\">The font family for the table. <i>name<\/i> is one of the groff font families, for example A for the AvantGarde fonts or HN for Helvetica-Narrow. <b><br \/> Default:<\/b> The font family found before the table (string \u2018t*ff\u2019).<\/p>\n<p style=\"margin-left:11%;\">fst=<i>style<\/i><\/p>\n<p style=\"margin-left:22%;\">The font style for the table. One of R, B, I, or BI for roman, <b>bold<\/b>, <i>italic<\/i>, or <b><i>bold italic<\/i><\/b>, respectively. As with <b>roff<\/b>\u2019s .ft request the \u2018fst\u2019 argument can be used to specify the font family and font style together, for example \u2018fst=HNBI\u2019 instead of \u2018ff=HN\u2019 and \u2018fst=BI\u2019. <b><br \/> Default:<\/b> The font style in use right before the table (string \u2018t*fst\u2019).<\/p>\n<p style=\"margin-left:11%;\">fsz=&#8217;<i>d1<\/i> [<i>d2<\/i>]&#8217;<\/p>\n<p style=\"margin-left:22%;\">A decimal or fractional factor <i>d1<\/i>, by which the point size for the table is changed, and <i>d2<\/i>, by which the vertical line spacing is changed. If <i>d2<\/i> is omitted, value <i>d1<\/i> is taken for both. <b><br \/> Default:<\/b> \u2018fsz=&#8217;1.0 1.0&#8217;\u2019 (string \u2018t*fsz\u2019).<\/p>\n<p style=\"margin-left:11%;\">hal=l|c|b|r<\/p>\n<p style=\"margin-left:22%;\">Horizontal alignment of the cell contents in the table. \u2018hal=l\u2019: left alignment. \u2018hal=c\u2019: centered alignment. \u2018hal=b\u2019: both (left and right) alignment. \u2018hal=r\u2019: right alignment. <b><br \/> Default:<\/b> \u2018hal=b\u2019 (string \u2018t*hal\u2019).<\/p>\n<p style=\"margin-left:11%;\">val=t|m|b<\/p>\n<p style=\"margin-left:22%;\">Vertical alignment of the cell contents in the table for cells lower than the current row. \u2018val=t\u2019: alignment below the top of the cell. \u2018val=m\u2019: alignment in the middle of the cell. \u2018val=b\u2019: alignment above the cell bottom. <b><br \/> Default:<\/b> \u2018val=t\u2019 (string \u2018t*val\u2019).<\/p>\n<p style=\"margin-left:11%;\">hl=[s|d]<\/p>\n<p style=\"margin-left:22%;\">Horizontal line between the rows. If specified with .TD or .TH this is a separator line to the cell below. \u2018hl=\u2019 (no value): no separator line. \u2018hl=s\u2019: a single separator line between the rows. \u2018hl=d\u2019: a double separator line.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The thickness of the separator lines is the half of the border thickness, but at least 0.1\u00a0inches. The distance between the double lines is equal to the line thickness.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>Remark:<\/b> Together with \u2018border=0\u2019 for proper formatting the value of \u2018csp\u2019 must be at least .05\u00a0inches for single separator lines and .15\u00a0inches for double separator lines. <b><br \/> Default:<\/b> \u2018hl=s\u2019 (string \u2018t*hl\u2019).<\/p>\n<p style=\"margin-left:11%;\">vl=[s|d]<\/p>\n<p style=\"margin-left:22%;\">Vertical separator line between the cells. If specified with .TD or .TH this is a separator line to the cell on the right. \u2018vl=s\u2019: a single separator line between the cells. \u2018vl=d\u2019: a double separator line. \u2018vl=\u2019 (no value): no vertical cell separator lines. For more information see the documentation of the \u2018hl\u2019 argument above. <b><br \/> Default:<\/b> \u2018vl=s\u2019 (string \u2018t*vl\u2019).<\/p>\n<h2>HDTBL CUSTOMIZATION <a name=\"HDTBL CUSTOMIZATION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Before creating the first table, you should configure default values to minimize the markup needed in each table. The following example sets up defaults suitable for typical papers:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.ds t*bgc white&#8221; background color <br \/> .ds t*fgc black&#8221; foreground color <br \/> .ds t*bc black&#8221; border color <br \/> .nr t*cpd 0.1n&#8221; cell padding<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The file <b>examples\/common.roff<\/b> provides another example setup in the \u201cminimal Page setup\u201d section.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A table which does not fit on a partially filled page is printed automatically on the top of the next page if you append the little utility macro t*hm to the page header macro of your document\u2019s main macro package. For example, say<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.am pg@top <br \/> . t*hm <br \/> ..<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">if you use the <b>ms<\/b> macro package.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The macro t*EM checks for held or kept tables, and for missing ETB macros (table not closed). You can append this macro to the \u201cend\u201d macro of your document\u2019s main macro package. For example:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.am pg@end-text <br \/> . t*EM <br \/> ..<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If you use the <b>ms<\/b> macro package.<\/p>\n<h2>BUGS AND SUGGESTIONS <a name=\"BUGS AND SUGGESTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Please send your commments to the <a href=\"mailto:groff@gnu.org\">groff mailing list<\/a> or directly to the author.<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>hdtbl<\/b> macro package was written by <a href=\"mailto:Joachim.Walsdorff@urz.uni-heidelberg.de\">Joachim Walsdorff<\/a>.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>groff<\/b>(1)<\/p>\n<p style=\"margin-left:22%;\">provides an overview of GNU <i>roff<\/i> and details how to invoke <i>groff<\/i> at the command line.<\/p>\n<p style=\"margin-left:11%;\"><b>groff<\/b>(7)<\/p>\n<p style=\"margin-left:22%;\">summarizes the <i>roff<\/i> language and GNU extensions to it.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>tbl<\/b>(1)<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>describes the traditional <i>roff<\/i> preprocessor for tables.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  groff_hdtbl \u2212 Heidelberger table macros for GNU roff <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[971],"tags":[973,1219,972],"class_list":["post-4142","post","type-post","status-publish","format-standard","hentry","category-7-miscelanea","tag-973","tag-groff_hdtbl","tag-man7"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4142"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4142\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}