Difference between revisions of "Tables Overview"

From Wiki
Jump to navigation Jump to search
(beginning to write table with features)
(additions to table)
Line 11: Line 11:
 
Features:
 
Features:
 
<table><tr>
 
<table><tr>
<th>Feature</th><th>tabulate</th><th>table</th><th>tables</th><th>TABLE</th><th>linetable</th>
+
<th>Feature</th><th>tabulate</th><th>table</th>
</tr><tr>
+
<th>tables</th><th>TABLE</th><th>linetable</th>
<td>horizonal lines</td><td></td><td></td><td></td><td></td><td></td>
+
</tr><tr><th>horizonal lines</th>
</tr><tr>
+
<td><cmd>HL</cmd></td>
<td>vertical lines</td><td></td><td></td><td></td><td></td><td></td>
+
<td><cmd>HL</cmd></td>
</tr><tr>
+
<td><cmd>HL</cmd></td>
<td>multipage</td><td></td><td></td><td>yes</td><td>split=yes</td><td>yes</td>
+
<td><texcode>
</tr><tr>
+
\setupTABLE
<td>header for each page</td><td></td><td></td><td></td><td></td><td></td>
+
[topframe=on]
</tr><tr>
+
or
<td>footer for each page</td><td></td><td></td><td></td><td></td><td></td>
+
\setupTABLE
</tr><tr>
+
[bottomframe=on]
<td></td><td></td><td></td><td></td><td></td><td></td>
+
</texcode></td>
</tr><tr>
+
<td></td>
<td></td><td></td><td></td><td></td><td></td><td></td>
+
</tr><tr><th>vertical lines</th>
</tr><tr>
+
<td>no</td>
<td></td><td></td><td></td><td></td><td></td><td></td>
+
<td><cmd>VL</cmd></td>
</tr><tr>
+
<td><cmd>VL</cmd></td>
<td></td><td></td><td></td><td></td><td></td><td></td>
+
<td><texcode>
</tr><tr>
+
\setupTABLE
<td></td><td></td><td></td><td></td><td></td><td></td>
+
[leftframe=on]
</tr><tr>
+
or
<td></td><td></td><td></td><td></td><td></td><td></td>
+
\setupTABLE
</tr><tr>
+
[rightframe=on]
<td></td><td></td><td></td><td></td><td></td><td></td>
+
</texcode></td>
</tr><tr>
+
<td></td>
<td></td><td></td><td></td><td></td><td></td><td></td>
+
</tr><tr><th>multipage</th>
</tr><tr>
+
<td>yes</td>
<td></td><td></td><td></td><td></td><td></td><td></td>
+
<td>no</td>
</tr><tr>
+
<td>yes</td>
<td></td><td></td><td></td><td></td><td></td><td></td>
+
<td>split=yes</td>
</tr><tr>
+
<td>yes</td>
<td></td><td></td><td></td><td></td><td></td><td></td>
+
</tr><tr><th>repeated header</th>
</tr><tr>
+
<td>no</td>
<td></td><td></td><td></td><td></td><td></td><td></td>
+
<td></td>
</tr><tr>
+
<td><cmd>starttablehead</cmd></td>
<td></td><td></td><td></td><td></td><td></td><td></td>
+
<td><texcode>
</tr><tr>
+
\bTABLE
<td></td><td></td><td></td><td></td><td></td><td></td>
+
[split=repeat]
</tr><tr>
+
\bTABLEhead
<td></td><td></td><td></td><td></td><td></td><td></td>
+
...
 +
\eTABLEhead
 +
</texcode></td>
 +
<td></td>
 +
</tr><tr><th>repeated footer</th>
 +
<td>no</td>
 +
<td></td>
 +
<td><cmd>starttabletail</cmd></td>
 +
<td>no</td>
 +
<td></td>
 +
</tr><tr><th>automatic fitting to given table width</th>
 +
<td>no</td>
 +
<td><cmd>SetTableToWidth</cmd></td>
 +
<td><cmd>SetTableToWidth</cmd></td>
 +
<td>no</td>
 +
<td></td>
 +
</tr><tr><th>problems</th>
 +
<td></td>
 +
<td></td>
 +
<td><texcode>
 +
\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
 +
</texcode></td>
 +
<td></td>
 +
<td></td>
 +
</tr><tr><th>documentation</th>
 +
<td>cont-enp.pdf, core-tbl.tex</td>
 +
<td>mp-cb-en.pdf, core-tab.tex</td>
 +
<td>core-tab.tex</td>
 +
<td>enattab.pdf, NaturalTables.pdf, core-ntb.tex</td>
 +
<td>core-ltb.tex</td>
 
</tr></table>
 
</tr></table>

Revision as of 12:12, 16 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]
vertical lines no \VL \VL
\setupTABLE
[leftframe=on]
or
\setupTABLE
[rightframe=on]
multipage yes no yes split=yes yes
repeated header no \starttablehead
\bTABLE
[split=repeat]
\bTABLEhead
...
\eTABLEhead
repeated footer no \starttabletail no
automatic fitting to given table width no \SetTableToWidth \SetTableToWidth no
problems
\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
documentation 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