Tables

Tables that fit their columns to the content, split across pages and repeat the heading row on each new page.

The table is the part of a document that changes most: four lines this month, forty the next. You describe the rows, and the engine settles the rest — how wide each column has to be, where the table has to break, and what has to be repeated at the top of the page that follows.

Every cell can have its own room around the text, its own border, its own background, a picture, or several rows joined into one. A cell whose text is too wide is dealt with the way you asked for, not the way the page happened to fall.

What it saves you

Forty lines is the same work as four
There is no version of the document for a short order and another for a long one. One description covers both, and the one nobody tested is the one that would have broken.
The heading follows onto every page
A reader looking at page three still knows which column is the quantity and which is the price, without turning back.
The columns fit what is actually in them
Widths are measured from the contents rather than guessed in advance, so one long article name does not leave every other column cramped for the rest of the document.

See it done

A multi-page invoice table

Twelve invoice lines is one page and thirty is two, the second taking up the first's header and layout.

A self-paginating table

A long table handed over whole, deciding for itself where the pages break: its heading on top of every page, its footnote under every page, its grey grounds stated once for the whole table, and a note you draw under each page at the exact place the table reports.

Cells merged down the rows

A specification sheet whose cells are merged down the rows: each group named once beside all of its rows, with one note beside them; the thin lines stop at those cells' edges, and a note too long for the rows it covers makes them grow.

Columns measured from their cells

One parts list twice: four columns sharing the width equally, then the reference, the quantity and the price each as wide as their own widest cell and the description given everything they leave.

Pictures inside table cells

A catalogue whose first column is a picture rather than text: four pictures of very different sizes and proportions, each fitted whole and undistorted into the cell the table gives it and standing against a different corner of it, claiming no width from its column and no height from its row.

A page and a stamp inside table cells

A checking page for a pack somebody else sent: every row shows one of its pages, taken whole out of the file it arrived in, beside a stamp drawn once and placed in every row that was given it. Both are fitted to the cell the table leaves them, claiming no width from their column and no height from their row.

Two orders, one frame, one bottom edge

An order of four lines and one of seven, in frames of the same height, both ending on the same bottom edge. Underneath, two notes of unequal length whose lines are moved apart until each reaches the foot of its frame.

A figure that says which headings reach it

Takings for thirty branches, quarter by quarter, over two pages. Every amount on the page carries the headings it stands under: the branch beside it, the quarter over it, and the year over the four quarters together. Read aloud, an amount is announced by its town, its quarter and its year before the sum itself.