Difference between revisions of "Tables Overview"

From Wiki
Jump to navigation Jump to search
(additions to table)
(enhanced features table)
Line 9: Line 9:
 
* [[linetable]] (new multipage tables)
 
* [[linetable]] (new multipage tables)
  
Features:
+
== Features ==
<table><tr>
+
<table width="100%" border="1" align="left" valign="top">
<th>Feature</th><th>tabulate</th><th>table</th>
+
<tr bgcolor="#CCCCCC" align="left" valign="top">
<th>tables</th><th>TABLE</th><th>linetable</th>
+
<th>Feature</th><th>[[tabulate]]</th><th>[[table]]</th>
</tr><tr><th>horizonal lines</th>
+
<th>[[tables]]</th><th>[[TABLE]]</th><th>[[linetable]]</th>
 +
</tr>
 +
<tr align="left" valign="top">
 +
<th bgcolor="#CCCCCC">horizonal lines</th>
 
<td><cmd>HL</cmd></td>
 
<td><cmd>HL</cmd></td>
 
<td><cmd>HL</cmd></td>
 
<td><cmd>HL</cmd></td>
Line 24: Line 27:
 
[bottomframe=on]
 
[bottomframe=on]
 
</texcode></td>
 
</texcode></td>
<td></td>
+
<td>unknown</td>
</tr><tr><th>vertical lines</th>
+
</tr>
 +
<tr align="left" valign="top">
 +
<th bgcolor="#CCCCCC">vertical lines</th>
 
<td>no</td>
 
<td>no</td>
 
<td><cmd>VL</cmd></td>
 
<td><cmd>VL</cmd></td>
Line 36: Line 41:
 
[rightframe=on]
 
[rightframe=on]
 
</texcode></td>
 
</texcode></td>
<td></td>
+
<td>unknown</td>
</tr><tr><th>multipage</th>
+
</tr>
 +
<tr align="left" valign="top">
 +
<th bgcolor="#CCCCCC">multipage</th>
 
<td>yes</td>
 
<td>yes</td>
 
<td>no</td>
 
<td>no</td>
 
<td>yes</td>
 
<td>yes</td>
<td>split=yes</td>
+
<td>yes, with <tt>split=yes</tt> or <tt>split=repeat</tt></td>
<td>yes</td>
+
<td>yes, even horizontally</td>
</tr><tr><th>repeated header</th>
+
</tr>
 +
<tr align="left" valign="top">
 +
<th bgcolor="#CCCCCC">repeated header</th>
 +
<td>no</td>
 
<td>no</td>
 
<td>no</td>
<td></td>
 
 
<td><cmd>starttablehead</cmd></td>
 
<td><cmd>starttablehead</cmd></td>
 
<td><texcode>
 
<td><texcode>
Line 54: Line 63:
 
\eTABLEhead
 
\eTABLEhead
 
</texcode></td>
 
</texcode></td>
<td></td>
+
<td>yes</td>
</tr><tr><th>repeated footer</th>
+
</tr>
 +
<tr align="left" valign="top">
 +
<th bgcolor="#CCCCCC">repeated footer</th>
 +
<td>no</td>
 
<td>no</td>
 
<td>no</td>
<td></td>
 
 
<td><cmd>starttabletail</cmd></td>
 
<td><cmd>starttabletail</cmd></td>
 
<td>no</td>
 
<td>no</td>
<td></td>
+
<td>yes</td>
</tr><tr><th>automatic fitting to given table width</th>
+
</tr>
 +
<tr align="left" valign="top">
 +
<th bgcolor="#CCCCCC">automatic fitting to given table width</th>
 
<td>no</td>
 
<td>no</td>
 
<td><cmd>SetTableToWidth</cmd></td>
 
<td><cmd>SetTableToWidth</cmd></td>
 
<td><cmd>SetTableToWidth</cmd></td>
 
<td><cmd>SetTableToWidth</cmd></td>
 
<td>no</td>
 
<td>no</td>
<td></td>
+
<td>unknown</td>
</tr><tr><th>problems</th>
+
</tr>
<td></td>
+
<tr align="left" valign="top">
<td></td>
+
<th bgcolor="#CCCCCC">problems</th>
 +
<td>very limited</td>
 +
<td>limited</td>
 
<td><texcode>
 
<td><texcode>
 
\starttext
 
\starttext
Line 85: Line 100:
 
\stoptext
 
\stoptext
 
</texcode></td>
 
</texcode></td>
<td></td>
+
<td>no setup for heights and widths</td>
<td></td>
+
<td>still experimental, nearly no documentation</td>
</tr><tr><th>documentation</th>
+
</tr>
 +
<tr align="left" valign="top">
 +
<th bgcolor="#CCCCCC">documentation (except wiki)</th>
 
<td>cont-enp.pdf, core-tbl.tex</td>
 
<td>cont-enp.pdf, core-tbl.tex</td>
 
<td>mp-cb-en.pdf, core-tab.tex</td>
 
<td>mp-cb-en.pdf, core-tab.tex</td>

Revision as of 09:10, 22 April 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 no 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 still experimental, nearly no documentation
documentation (except wiki) cont-enp.pdf, core-tbl.tex mp-cb-en.pdf, core-tab.tex core-tab.tex enattab.pdf, NaturalTables.pdf, core-ntb.tex core-ltb.tex