Difference between revisions of "Command/definetabletemplate"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
m (Make example source visible. Add See Also. Category Tables)
Line 26: Line 26:
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==
 
== Description ==
Line 33: Line 32:
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
 
  
<texcode>
+
<context source=yes text="This gives:">
 
\definetabletemplate[booktabs][o0|l|l|ro0|]
 
\definetabletemplate[booktabs][o0|l|l|ro0|]
  
Line 41: Line 39:
 
\NC first column \NC second column \NC third column \NC \AR
 
\NC first column \NC second column \NC third column \NC \AR
 
\stoptable
 
\stoptable
</texcode>
+
</context>
  
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
+
* {{cmd|starttable}}, the command for which {{cmd|definetabletemplate}} remembers the options
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 50: Line 48:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|definetabletemplate]]
+
[[Category:Command/Tables|definetabletemplate]]

Revision as of 17:14, 24 April 2012

\definetabletemplate

Syntax

\definetabletemplate[...][...][...][...]
[...] name
[...] text
[...] text
[...] text

Description

This command can be used to remember certain table-preambles, see chapter 9 in Table macros II by Aditya Mahajan (2008).

Example

\definetabletemplate[booktabs][o0|l|l|ro0|]

\starttable[booktabs]
	\NC first column \NC second column \NC third column \NC \AR
\stoptable

This gives:

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: