Changes

Jump to navigation Jump to search
2,684 bytes added ,  08:29, 2 July 2022
m
Text replacement - "pragma-ade.com" to "pragma-ade.nl"
< [[Visuals]] | [[Structurals]] >__NOTOC__= Many possibilities for tables typesetting =
ConTeXt has a whole bunch of possibilities to typeset tables. Not each provides everything [[#Features|Features]] you may need, and the older ones are deprecated.
* [[tabulateFloating_Objects|Floating objects]] (tabulation)* [[table]] (TaBlE)* [[tables]] (multipage TaBlE)* [[TABLE]] (natural enable to place and number tables, HTML tables)* [[linetable]] (new multipage tables)like graphics.
{{TwoColumnsUnderLevel1|== Recommended ==* [[Tabulate]] (tabulation, '''recommended for simple requirements''')* [[TABLE]] (natural tables, HTML tables, '''recommended''')* [[xtables]] (extreme tables – mostly compatible to natural tables, better for page breaking)* framed tables (for simple tables that span hundreds of pages)|== Deprecated ==* [[Table]] (TaBlE, '''deprecated''')* [[Tables]] (multipage TaBlE, '''deprecated''') == Experimental ==* [[Linetable]] ("new" multipage tables, '''experimental''' and probably obsolete)}}  Note that you can use natural and extreme tables with the old Table/Tabulate syntax. (To make this even more confusing...) If you have simple tables with lots of contents, and you're tired of typing <code>\bTR\bTD</code>s or <code>\NC\NR</code>s, you can also have a look at:* [[M-database|database]] module and its [http://dl.contextgarden.net/myway/csv.pdf manual].* [[Wikitable]], a TABLE wrapper that uses MediaWiki syntax* [http://tug.org/TUGboat/Articles/tb28-3/tb90mahajan.pdf ConTeXt basics for users: Table macros] and [http://www.tug.org/TUGboat/Articles/tb29-1/tb91mahajan.pdf Table macros II] by Aditya Mahajan (2007 and 2008). = Features ==<table widthstyle="border:1px solid #DDDDDD; width:100%" border="1" align="left" valign="top"><tr bgcolorstyle="background-color:#CCCCCCDDDDDD" align="left" valign="top"><th>Feature</th><th>[[tabulateTabulate]]</th><th>[[tableTable]]/[[Tables]]</th><th>[[tablesTABLE]]</th><th>[[xtables]]</th><th>[[TABLELinetable]]</th><th>[[linetableframedtable]]</th>
</tr>
 
<tr align="left" valign="top">
<th bgcolorstyle="background-color:#CCCCCCDDDDDD">horizonal lines</th><td><cmd>HL</cmd></td><td><{{cmd>|HL</cmd>}}</td><td><{{cmd>|HL</cmd>}}</td>
<td><texcode>
\setupTABLE
[bottomframe=on]
</texcode></td>
<td><texcode>\setupxtable[...]</texcode></td>
<td>unknown</td>
<td>yes</td>
</tr>
 <tr align="left" valign="top" style="background-color:#EEEEEE;"><th bgcolorstyle="background-color:#CCCCCCDDDDDD">vertical lines</th><td>no</td><td><{{cmd>|VL</cmd>}}</td><td><{{cmd>|VL</cmd>}}</td>
<td><texcode>
\setupTABLE
[rightframe=on]
</texcode></td>
<td><texcode>\setupxtable[...]</texcode></td>
<td>unknown</td>
<td>yes</td>
</tr>
 
<tr align="left" valign="top">
<th bgcolorstyle="background-color:#CCCCCCDDDDDD">multipage</th><td>yes</td><td>no</td>
<td>yes</td>
<td>no / yes (tables)</td>
<td>yes, with <tt>split=yes</tt> or <tt>split=repeat</tt></td>
<td>vertically yes, horizontally not but planned</td>
<td>yes, even horizontally</td>
<td>yes</td>
</tr>
 <tr align="left" valign="top" style="background-color:#EEEEEE;"><th bgcolorstyle="background-color:#CCCCCCDDDDDD">repeated header</th><td>no</tdtexcode>\setuptabulate[header=repeat]\starttabulatehead...\stoptabulatehead<td/texcode>noonly one line</td><td>table<b>s</b> only:<cmdtexcode>\setuptables [split=repeat] \starttablehead...\stoptablehead</cmdtexcode></td>
<td><texcode>
\bTABLE
\eTABLEhead
</texcode></td>
<td>yes</td>
<td>yes</td>
<td>yes</td>
</tr>
 
<tr align="left" valign="top">
<th bgcolorstyle="background-color:#CCCCCCDDDDDD">repeated footer</th>
<td>no</td>
<td>table<b>s</b> only:
<texcode>
\setuptables
[split=repeat]
 
\starttabletail
...
\stoptabletail
</texcode></td>
<td>no?</td>
<td>yes</td>
<td>no</td>
<td>unknown<cmd/td>starttabletail</cmdtr> <tr align="left" valign="top" style="background-color:#EEEEEE;"><th style="background-color:#DDDDDD">automatic fitting to given table width</tdth>
<td>no</td>
<td>{{cmd|SetTableToWidth}}</td>
<td>
<texcode>
\setupTABLE
[option=stretch,
textwidth=10cm]
</texcode></td>
<td>yes</td>
</tr><tr align="left" valign="top"><th bgcolor="#CCCCCC">automatic fitting to given table width</th><td>no</td><td><cmd>SetTableToWidth</cmd></td><td><cmd>SetTableToWidth</cmd></td><td>nodefault</td>
<td>unknown</td>
</tr>
 
<tr align="left" valign="top">
<th bgcolorstyle="background-color:#CCCCCCDDDDDD">problems</th>
<td>very limited</td>
<td>limited</td>some limitations, problems with spacing<td><texcode>
\starttext
\starttablehead
\stoptext
</texcode></td>
<td>no setup for heights there may be problems in width and widthsheight calculation and perhaps the multipage features</td><td>very verbose</td><td>still lack of documentation, just experimental</td><td>limitations, nearly no lack of documentation</td></tr> <!-- Tabulate Table(s) TABLE xtable linetable framedtable --><tr align="left" valign="top" style="background-color:#EEEEEE;"><th style="background-color:#DDDDDD">documentation (except wiki)</th><td>[http://pmrb.free.fr/contextref.pdf contextref.pdf], [[source:tabl-tbl.mkii|tabl-tbl.mkii]], [http://www.ntg.nl/maps/pdf/22_28.pdf MAPS article]</td><td>[[manual:mp-cb-en.pdf|ms-cb-en.pdf]], [[source:tabl-tab.mkii|tabl-tab.mkii]]</td><td>[[manual:enattab.pdf|enattab.pdf]], [http://dl.contextgarden.net/myway/NaturalTables.pdf NaturalTables.pdf], [[source:tabl-ntb.mkii|tabl-ntb.mkii]] / [[source:tabl-ntb.mkiv|tabl-ntb.mkiv]]</td><td>[http://www.pragma-ade.nl/general/manuals/xtables-mkiv.pdf xtables-mkiv.pdf], [[source:tabl-xtb.lua|tabl-xtb.lua]]</td><td>[[source:tabl-ltb.mkii|tabl-ltb.mkii]] / [[source:tabl-ltb.mkiv|tabl-ltb.mkiv]]</td><td>?</td>
</tr>
<tr align="left" valign="top"><th bgcolor="#CCCCCC">documentation (except wiki)</th><td>cont-enp.pdf, core-tbl.tex</tdtable><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>[[Category:Tables]]

Navigation menu