Difference between revisions of "Tables Overview"

From ConTeXt wiki
(Features: Update tabulate head/tail)
m (added link to documentation for tabulate)
Line 120: Line 120:
 
<tr align="left" valign="top" style="background-color:#EEEEEE;">
 
<tr align="left" valign="top" style="background-color:#EEEEEE;">
 
<th style="background-color:#DDDDDD">documentation (except wiki)</th>
 
<th style="background-color:#DDDDDD">documentation (except wiki)</th>
<td>[[manual:cont-eni.pdf|cont-eni.pdf]], [[source:core-tbl.tex|core-tbl.tex]]</td>
+
<td>[[manual:cont-eni.pdf|cont-eni.pdf]], [[source:core-tbl.tex|core-tbl.tex]], [http://www.ntg.nl/maps/pdf/22_28.pdf MAPS article]</td>
 
<td>[[manual:mp-cb-en.pdf|ms-cb-en.pdf]], [[source:core-tab.tex|core-tab.tex]]</td>
 
<td>[[manual:mp-cb-en.pdf|ms-cb-en.pdf]], [[source:core-tab.tex|core-tab.tex]]</td>
 
<td>[[source:core-tab.tex|core-tab.tex]]</td>
 
<td>[[source:core-tab.tex|core-tab.tex]]</td>

Revision as of 08:10, 27 November 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
\setuptabulate[header=repeat]
\starttabulatehead
...
\stoptabulatehead
no \starttablehead
\bTABLE
[split=repeat]
\bTABLEhead
...
\eTABLEhead
yes
repeated footer
\setuptabulate[footer=repeat]
\starttabulatetail
...
\stoptabulatetail
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, MAPS article ms-cb-en.pdf, core-tab.tex core-tab.tex enattab.pdf, NaturalTables.pdf, core-ntb.tex core-ltb.tex