Skip to main content

The PreTeXt Guide

Subsection 4.18.4 Table Rows

A <row> of a table is a sequence of <cell> elements. Each row should occupy the same number of cells, when considering the @colspan, as discussed above.
To achieve column headers, you indicate that a row contains headers. Typically, the contents of every cell in this row will then be rendered in bold, or some other style. The <row> element accepts a @header attribute with possible values of no (the default), yes, or vertical. The latter is useful if space is at a premium (which always seems to be the case with tables), and the cells of a column are narrow and the header is long. Note that only the first (top) rows can be treated as column headers and these rows must be contiguous. If you think you need column headers mid-tabular, maybe you really have two tables?