https://wiki.contextgarden.net/index.php?title=Command/starttabulate&feed=atom&action=history
Command/starttabulate - Revision history
2024-03-29T13:38:36Z
Revision history for this page on the wiki
MediaWiki 1.34.1
https://wiki.contextgarden.net/index.php?title=Command/starttabulate&diff=34198&oldid=prev
Taco at 16:51, 14 September 2023
2023-09-14T16:51:17Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 16:51, 14 September 2023</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l50" >Line 50:</td>
<td colspan="2" class="diff-lineno">Line 50:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The n multiplies the amount of space as setup in {{cmd|setuptabulate}}. Default is 0.5em.</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The <ins class="diffchange diffchange-inline">&lt;</ins>n<ins class="diffchange diffchange-inline">&gt; </ins>multiplies the amount of space as setup in {{cmd|setuptabulate}}. Default is 0.5em.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l120" >Line 120:</td>
<td colspan="2" class="diff-lineno">Line 120:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| \HL || horizontal line || draw a horizontal</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| \HL || horizontal line || draw a horizontal</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</cd:description></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</cd:description></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><cd:examples><cd:example title=""><context source="yes<del class="diffchange diffchange-inline">" text="This gives:</del>"></div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><cd:examples><cd:example title="<ins class="diffchange diffchange-inline">Simple example</ins>"><context source="yes"></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">\setuppapersize[A5]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\starttabulate[|l|p|]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\starttabulate[|l|p|]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\NC question \NC Sometimes it is surprising to notice that writers,</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\NC question \NC Sometimes it is surprising to notice that writers,</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l128" >Line 128:</td>
<td colspan="2" class="diff-lineno">Line 127:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>books do not belong in this list? \NC \NR</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>books do not belong in this list? \NC \NR</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\stoptabulate</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\stoptabulate</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline"></context></cd:example><cd:example title="More complicated formatting"><context source="yes"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\starttabulate[|b{- }la{.}|l|l|]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\starttabulate[|b{- }la{.}|l|l|]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\NC A \NC This Perfect Day \NC Ira Levin \NC \NR</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\NC A \NC This Perfect Day \NC Ira Levin \NC \NR</div></td></tr>
</table>
Taco
https://wiki.contextgarden.net/index.php?title=Command/starttabulate&diff=34197&oldid=prev
Taco: Created page with "Documentation for \starttabulate ... \stoptabulate"
2023-09-14T16:49:23Z
<p>Created page with "Documentation for \starttabulate ... \stoptabulate"</p>
<p><b>New page</b></p><div><cd:commandgroup name="tabulate" type="environment" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"><br />
<cd:shortdesc><!-- a short command summary goes here --><br />
The environment <tt>\starttabulate ... \stoptabulate</tt> is used for tabular material<br />
</cd:shortdesc><br />
<cd:variants><br />
<cd:command category="tables" file="tabl-tbl.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-tabulation.xml" level="document" name="tabulate" type="environment" variantnumber="1"><br />
<cd:arguments><br />
<cd:template optional="yes" ordinal="1"></cd:template><br />
<cd:assignments list="yes" optional="yes" ordinal="2"><br />
<cd:assignmentsdoc></cd:assignmentsdoc><br />
<cd:inherit name="setuptabulate"></cd:inherit><br />
</cd:assignments><br />
</cd:arguments><br />
</cd:command><br />
</cd:variants><br />
<cd:description>For the main article on this subject, see [[Tabulate]].<br />
<br />
Tabulate is a table-like environment to place information in rows and columns without placing vertical rules. There is an option to place horizontal rules with the command <code>\HL</code>. The tabulate environment knows left, right and center aligned columns for single line entries. For multiple line entries there is the <code>p</code> (paragraph) type column.<br />
<br />
== Keys ==<br />
<br />
General keys:<br />
<br />
{| class="wikitable"<br />
|-<br />
! Key !! Meaning<br />
|-<br />
| [vertical bar] || column separator<br />
|-<br />
| c || center<br />
|-<br />
| l || flush left<br />
|-<br />
| r || flush right<br />
|-<br />
| p || paragraph<br />
|}<br />
<br />
Spacing keys:<br />
<br />
{| class="wikitable"<br />
|-<br />
! Key !! Meaning<br />
|-<br />
| i&lt;n&gt; || set space left<br />
|-<br />
| j&lt;n&gt; || set space right<br />
|-<br />
| k&lt;n&gt; || set space around<br />
|}<br />
<br />
The n multiplies the amount of space as setup in {{cmd|setuptabulate}}. Default is 0.5em.<br />
<br />
<br />
The width of a column can be set:<br />
{| class="wikitable"<br />
|-<br />
! Key !! Meaning<br />
|-<br />
| w(d) || set column width at specified value, single line<br />
|-<br />
| p(d) || set column width at specified value, paragraph<br />
|-<br />
| p || use maximum column width for the paragraph<br />
|}<br />
<br />
<br />
Font switches which apply for a whole column, they can be set in the preamble:<br />
<br />
{| class="wikitable"<br />
|-<br />
! Key !! Meaning<br />
|-<br />
| B || bold<br />
|-<br />
| I || italic<br />
|-<br />
| R || roman<br />
|-<br />
| S || slanted<br />
|-<br />
| T || teletype<br />
|-<br />
| m || inline math<br />
|-<br />
| M || display math<br />
|}<br />
<br />
<br />
Available hooks in the preamble:<br />
<br />
{| class="wikitable"<br />
|-<br />
! Key !! Meaning<br />
|-<br />
| f<code>\command</code> || arbitrary fontswitch, defined by <code>\command</code><br />
|-<br />
| b{ .. } || contents between curley braces is placed before the entry<br />
|-<br />
| a{ .. } || contents between curley braces is placed after the entry<br />
|-<br />
| A{ key } || contents is aligned according to key (example: A{stretch})<br />
|-<br />
| h<code>\command</code> || arbitrary command or macro, defined by <code>\command</code><br />
|}<br />
<br />
<br />
Switching columns and rows:<br />
<br />
{| class="wikitable"<br />
|-<br />
! Command !! Meaning !! Description<br />
|-<br />
| \NR || next row || make a new row<br />
|-<br />
| \NC || next column || go to next column<br />
|-<br />
| \EQ || next column with columseparator || go to next column<br />
|-<br />
| \HL || horizontal line || draw a horizontal<br />
|}</cd:description><br />
<cd:examples><cd:example title=""><context source="yes" text="This gives:"><br />
\setuppapersize[A5]<br />
\starttabulate[|l|p|]<br />
\NC question \NC Sometimes it is surprising to notice that writers,<br />
independently of each other, explore the same theme along similar lines.<br />
Three of the four books mentioned here fall into this category. Which<br />
books do not belong in this list? \NC \NR<br />
\stoptabulate<br />
<br />
\starttabulate[|b{- }la{.}|l|l|]<br />
\NC A \NC This Perfect Day \NC Ira Levin \NC \NR<br />
\NC B \NC Opstaan op Zaterdag \NC Jan Gerhart Toonder \NC \NR<br />
\NC C \NC Tot waar zal ik je brengen \NC Anton Koolhaas \NC \NR<br />
\NC D \NC The City And The Stars \NC Arthur Clarke \NC \NR<br />
\stoptabulate<br />
</context></cd:example></cd:examples><br />
<cd:notes></cd:notes><br />
<cd:seealso><br />
<cd:commandref name="definetabulate" originator="system"></cd:commandref><br />
<cd:commandref name="setuptabulate" originator="system"></cd:commandref><br />
<cd:source file="tabl-tbl.mkiv" originator="system"></cd:source><br />
<cd:wikipage originator="system" page="Category:Tables"></cd:wikipage></cd:seealso><br />
</cd:commandgroup></div>
Taco