Difference between revisions of "Tables Overview"

From Wiki
Jump to navigation Jump to search
m (added Category:Tables)
(→‎Features: Add tabulatehead/tail)
Line 53: Line 53:
 
<tr align="left" valign="top" style="background-color:#EEEEEE;">
 
<tr align="left" valign="top" style="background-color:#EEEEEE;">
 
<th style="background-color:#DDDDDD">repeated header</th>
 
<th style="background-color:#DDDDDD">repeated header</th>
<td>no</td>
+
<td>no<br><cmd>starttabulatehead</cmd> prints the header only once</td>
 
<td>no</td>
 
<td>no</td>
 
<td><cmd>starttablehead</cmd></td>
 
<td><cmd>starttablehead</cmd></td>
Line 67: Line 67:
 
<tr align="left" valign="top">
 
<tr align="left" valign="top">
 
<th style="background-color:#DDDDDD">repeated footer</th>
 
<th style="background-color:#DDDDDD">repeated footer</th>
<td>no</td>
+
<td>no<br><cmd>starttabulatetail</cmd> prints the tail only once</td>
 
<td>no</td>
 
<td>no</td>
 
<td><cmd>starttabletail</cmd></td>
 
<td><cmd>starttabletail</cmd></td>

Revision as of 10:09, 12 May 2006

< Visuals | Structurals >

ConTeXt has a whole bunch of possibilities to typeset tables. Not each provides everything you may need, and the older ones are deprecated.

Features

Featuretabulatetable tablesTABLElinetable
horizonal lines \HL \HL \HL
\setupTABLE
[topframe=on]
or
\setupTABLE
[bottomframe=on]
unknown
vertical lines no \VL \VL
\setupTABLE
[leftframe=on]
or
\setupTABLE
[rightframe=on]
unknown
multipage yes no yes yes, with split=yes or split=repeat yes, even horizontally
repeated header no
\starttabulatehead prints the header only once
no \starttablehead
\bTABLE
[split=repeat]
\bTABLEhead
...
\eTABLEhead
yes
repeated footer no
\starttabulatetail prints the tail only once
no \starttabletail no yes
automatic fitting to given table width no \SetTableToWidth \SetTableToWidth
\setupTABLE
[option=stretch,
 textwidth=10cm]
unknown
problems very limited limited
\starttext
\starttablehead
  \HL
\stoptablehead
\starttables[|l|l|]
\dorecurse{50}{%
  \VL SomeText
  \VL SomeText
  \VL \AR}
\stoptables
Problem: top margin on
first page is bigger.
\stoptext
there may be problems in width and height calculation and perhaps the multipage features still experimental, nearly no documentation
documentation (except wiki) cont-eni.pdf, core-tbl.tex ms-cb-en.pdf, core-tab.tex core-tab.tex enattab.pdf, NaturalTables.pdf, core-ntb.tex core-ltb.tex