Difference between revisions of "Command/definetabulate"

From Wiki
Jump to navigation Jump to search
m (Changed the example to show the source as well as the output.)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>definetabulate</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 11: Line 14:
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
 
     <td class="cmd">[...]</td>
 
     <td class="cmd">[...]</td>
     <td>name </td>
+
     <td>name</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
 
     <td class="cmd">[...]</td>
 
     <td class="cmd">[...]</td>
     <td>name </td>
+
     <td>name of variant or sub-part</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
 
     <td class="cmd">[...]</td>
 
     <td class="cmd">[...]</td>
     <td>text </td>
+
     <td>text</td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
Line 26: Line 29:
  
 
== Example ==
 
== Example ==
<context mode=mkiv>
+
<context source=yes>
 
\definetabulate
 
\definetabulate
 
   [whatever]
 
   [whatever]

Latest revision as of 23:40, 8 March 2023

\definetabulate

Syntax (autogenerated)

\definetabulate[...][...][|...|]
[...]name
[...]name
[|...|]template


Syntax

\definetabulate[...][...][...]
[...] name
[...] name of variant or sub-part
[...] text

Description

Example

\definetabulate
  [whatever]
  [|l|r|]

\definetabulate
  [whatever][else]
  [|l|c|r|]

\startwhatever
\NC l    \NC r     \NC \NR
\NC left \NC right \NC \NR
\stopwhatever

\startwhatever[else]
\NC l    \NC m      \NC r     \NC \NR
\NC left \NC middle \NC right \NC \NR
\stopwhatever

% possible since the beta of 2012-10-17
% \startwhatever[else][format={|c|c|c|c|}]
% \NC l    \NC m      \NC m      \NC r     \NC \NR
% \NC left \NC middle \NC middle \NC right \NC \NR
% \stopwhatever

\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: