[next] [prev] [prev-tail] [tail] [up]

Html Tables

TeX4ht tries to translate the tables of TeX and LaTeX to html, and when it is unsuccessful it either creates a picture, pure text, or causes an error. On the other hand, TeX4ht also supplies instructions of it own, few of which are listed below. To get access to these commands, the `HTable' option should appear in \Preamble (in TeX, the `HTable' option is implicitly assumed also when the `sty' option is present).

\HTable...{...&...\cr...}
\HTable.../...\&...\CR...\EndHTable

[example]

Aligned entries can be globally requested immediately after \HTable with the code-characters < (LEFT), - (CENTER), > (RIGHT), ^ (TOP), = (MIDDLE), | (MIDDLE), = (BASELINE), and _ (BOTTOM).

[example]

Similarly, a border can be requested with a B (BORDER), cell padding with a Pi (CELLPADDING="i"), and cell spacing with a Si (CELLSPACING="i").

\Contribute{HTable}{...}

This command contributes attributes to <TABLE>.

[example]

[...coded-attributes.../...explicit-attributes...]

Matching rectangular brackets, at the start of the entries, are assumed to enclose attributes for the entries. The coded attributes may constitute of <, -, >, ^, |, =, _, H (highlighted), Ci (span i columns), and Ri (span i rows). The slash `/' is optional when explicit attributes are not given.

[example]

\BR

This command requests line breaks within entries

[example]

\HTableScript[options-for-entry]{before-entry}{after-entry}

This command allows to indirectly specify content for the entries of the table that follows. The variables \Row and \Col may be used for identifying the entry in discourse.

[example]

The `[options-for-entry]' is optional when no content is included within the brackets.

[next] [prev] [prev-tail] [front] [up]