Previous: Multitable Column Widths, Up: Multi-column Tables
After the @multitable
command defining the column widths (see
the previous section), you begin each row in the body of a multitable
with @item
, and separate the column entries with @tab
.
Line breaks are not special within the table body, and you may break
input lines in your source file as necessary.
You can also use @headitem
instead of @item
to produce
a heading row. The TeX output for such a row is in bold, and
the HTML, XML, and Docbook output uses the <thead>
tag.
Here is a complete example of a multi-column table (the text is from The GNU Emacs Manual, see Splitting Windows):
@multitable @columnfractions .15 .45 .4 @headitem Key @tab Command @tab Description @item C-x 2 @tab @code{split-window-vertically} @tab Split the selected window into two windows, with one above the other. @item C-x 3 @tab @code{split-window-horizontally} @tab Split the selected window into two windows positioned side by side. @item C-Mouse-2 @tab @tab In the mode line or scroll bar of a window, split that window. @end multitable
produces:
Key | Command | Description
|
---|---|---|
C-x 2 | split-window-vertically
| Split the selected window into two windows,
with one above the other.
|
C-x 3 | split-window-horizontally
| Split the selected window into two windows
positioned side by side.
|
C-Mouse-2 | In the mode line or scroll bar of a window,
split that window.
|