Changes

Jump to navigation Jump to search
2,674 bytes added ,  20:03, 13 October 2019
no edit summary
}}
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setuptab</syntax>
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:sampleheadstyle|sampleheadstyle]]</td> <td>'''[[Command/value:normal|normal]]''' [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:cap|cap]] [[ReferenceCommand/envalue:small...|small...]] [[Command/value:textcommand|textcommand]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:widthstyle|widthstyle]]</td> <td>'''[[Command/value:normal|normal]]''' [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:cap|cap]] [[ReferenceCommand/envalue:small|small]]... ''[[Command/value:dimensioncommand|dimensioncommand]] '' </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:headstylesample|headstylesample]]</td> <td>[[Reference/en/value:normal|normal]] [[Reference/en/value:bold|bold]] [[Reference/en/value:slanted|slanted]] [[Reference/en/value:boldslanted|boldslanted]] [[Reference/en/value:type|type]] [[Reference/en/value:cap|cap]] [[Reference/en/value:small...|small...]] [[Reference/enCommand/value:commandtext|commandtext]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[ReferenceCommand/enkeyword:width|width]]</td> <td>[[Command/value:dimension|dimension]] default: '''broad'''</td> </tr> <tr valign="top" class="first"> <td class="cmd">[[Command/keyword:locationsample|locationsample]]</td> <td>[[Reference/enCommand/value:leftdimension|leftdimension]] default: '''\hskip4em'''</td> </tr> <tr valign="top" class="first"> <td class="cmd">MkII: [[ReferenceCommand/enkeyword:location|location]]<br /value> MkIV: [[Command/keyword:rightalternative|rightalternative]] </td> <td>'''left'''</td> </tr> <tr valign="top" class="first"> <td class="cmd">...=...</td> <td>''see'' {{cmd|setupdescriptions}}</td>
</tr>
</table>
== Description ==
<code>\tab</code> (a <code>description</code> created with <code>{{cmd|definedescription}}[tab]</code>) starts an indented paragraph with a word or two (the 'key') in front of it. <code>\setuptab</code> configures styles and dimensions for <code>\tab</code>. By default, it leaves 4em for the key and 2em of space between the key area and the paragraph, the latter thanks to <code>width=broad</code>. <code>width=fit</code> leaves no space in between. In mkiv, <code>width=fit</code> leaves 1em of space between the key space and the paragraph; this is probably a bug.
== Description Example == <context source=yes>\def\ruler{% \dorecurse{8}{% \dontleavehmode% \blackrule[width={\dimexpr1em-0.5pt}, height=0.5pt]% \dontleavehmode% \blackrule[width=0.5pt, height=1ex]% }} \def\testpara{% They might have called Sunday the super-man. If any such creature be conceivable, he looked, indeed, somewhat like it, with his earth-shaking abstraction, as of a stone statue walking.} (The ruler is marked in ems. The quotation is from G.K. Chesterton's {\em The Man who was Thursday}.) \ruler \par\setuptab[width=broad, sample={\blackrule[width=2em]}, headstyle=slanted]\tab{\blackrule[width=2em]} (Sample of 2em wide, broad width.) \testpara \par \ruler \par\setuptab[width=broad, sample={\blackrule[width=4em]}, headstyle=slanted]\tab{\blackrule[width=4em]} (Sample of 4em wide, broad width.) \testpara \par
\ruler \par
\setuptab[width=fit, sample={\blackrule[width=2em]}, headstyle=slanted]
\tab{\blackrule[width=2em]} (Sample of 2em wide, fit width.) \testpara \par
\ruler \par
\setuptab[width=3em, sample={thisisaverylongsample}, headstyle=slanted]
\tab{\blackrule[width=3em]} (Exact width of 3em overrides long sample.) \testpara \par
== Example ==<!-- Please fill in an example if you can --/context>
== See also ==
<!* {{cmd|tab}}* {{cmd|setupdescriptions}}* [[source:core-mis.mkii|core- something like mis.mkii]], [[cmdsource:core:gotomis.mkiv|\gotocore-mis.mkiv]]  == Help from ConTeXt-->Mailinglist/Forum ==All issues with:{{Forum|{{SUBPAGENAME}}}}
[[Category:CommandsCommand/Paragraphs|setuptab]][[Category:Command/Descriptions|setuptab]]

Navigation menu