Difference between revisions of "Tables Overview"
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> |
− | < | + | </tr><tr><th>horizonal lines</th> |
− | < | + | <td><cmd>HL</cmd></td> |
− | + | <td><cmd>HL</cmd></td> | |
− | + | <td><cmd>HL</cmd></td> | |
− | + | <td><texcode> | |
− | + | \setupTABLE | |
− | + | [topframe=on] | |
− | </tr><tr> | + | or |
− | < | + | \setupTABLE |
− | < | + | [bottomframe=on] |
− | + | </texcode></td> | |
− | + | <td></td> | |
− | + | </tr><tr><th>vertical lines</th> | |
− | </tr><tr> | + | <td>no</td> |
− | < | + | <td><cmd>VL</cmd></td> |
− | </tr><tr> | + | <td><cmd>VL</cmd></td> |
− | < | + | <td><texcode> |
− | + | \setupTABLE | |
− | + | [leftframe=on] | |
− | </tr><tr> | + | or |
− | < | + | \setupTABLE |
− | + | [rightframe=on] | |
− | <td></td> | + | </texcode></td> |
− | </tr><tr> | + | <td></td> |
− | < | + | </tr><tr><th>multipage</th> |
− | + | <td>yes</td> | |
− | <td>< | + | <td>no</td> |
− | </tr><tr> | + | <td>yes</td> |
− | < | + | <td>split=yes</td> |
− | + | <td>yes</td> | |
− | + | </tr><tr><th>repeated header</th> | |
− | + | <td>no</td> | |
− | + | <td></td> | |
− | + | <td><cmd>starttablehead</cmd></td> | |
− | + | <td><texcode> | |
− | + | \bTABLE | |
− | + | [split=repeat] | |
− | </tr><tr> | + | \bTABLEhead |
− | < | + | ... |
+ | \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.
- tabulate (tabulation)
- table (TaBlE)
- tables (multipage TaBlE)
- TABLE (natural tables, HTML tables)
- linetable (new multipage tables)
Features:
Feature | tabulate | table | tables | TABLE | linetable |
---|---|---|---|---|---|
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 |