Difference between revisions of "Tables Overview"

From ConTeXt wiki
m (Features: fitting to the given table width possible (thank you, Vit); links to documentation added)
m (Features: a comment about setting width and height of cells in natural tables (and some invisible source cosmetics))
Line 105: Line 105:
 
\stoptext
 
\stoptext
 
</texcode></td>
 
</texcode></td>
<td>no setup for heights and widths (???)</td>
+
<td>no setup for heights and widths (???)<br><i>WRONG! in <code>\setupTABLE</code> or after <code>\bTD</code> you can say <code><nowiki>[width=5cm,height=3cm]</nowiki></code> (although there may be some weird cases where this fails from some unknown reason)</i></td>
 
<td>still experimental, nearly no documentation</td>
 
<td>still experimental, nearly no documentation</td>
 
</tr>
 
</tr>
 
<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>[http://www.pragma-ade.com/general/manuals/cont-eni.pdf cont-eni.pdf], [http://source.contextgarden.net/tex/context/base/core-tbl.tex core-tbl.tex]</td>
+
<td>[[manual:cont-eni.pdf|cont-eni.pdf]], [[source:core-tbl.tex|core-tbl.tex]]</td>
<td>[http://www.pragma-ade.com/general/manuals/mp-cb-en.pdf ms-cb-en.pdf], [http://source.contextgarden.net/tex/context/base/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>[http://source.contextgarden.net/tex/context/base/core-tab.tex core-tab.tex]</td>
+
<td>[[source:core-tab.tex|core-tab.tex]]</td>
<td>[http://www.pragma-ade.com/general/manuals/enattab.pdf enattab.pdf], [http://dl.contextgarden.net/myway/NaturalTables.pdf NaturalTables.pdf], [http://source.contextgarden.net/tex/context/base/core-ntb.tex core-ntb.tex]</td>
+
<td>[[manual:enattab.pdf|enattab.pdf]], [http://dl.contextgarden.net/myway/NaturalTables.pdf NaturalTables.pdf], [[source:core-ntb.tex|core-ntb.tex]]</td>
<td>[http://source.contextgarden.net/tex/context/base/core-ltb.tex core-ltb.tex]</td>
+
<td>[[source:core-ltb.tex|core-ltb.tex]]</td>
 
</tr></table>
 
</tr></table>

Revision as of 11:32, 6 November 2005

< 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 no \starttablehead
\bTABLE
[split=repeat]
\bTABLEhead
...
\eTABLEhead
yes
repeated footer no 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
no setup for heights and widths (???)
WRONG! in \setupTABLE or after \bTD you can say [width=5cm,height=3cm] (although there may be some weird cases where this fails from some unknown reason)
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