Changes

Jump to navigation Jump to search
335 bytes added ,  17:26, 12 November 2019
no edit summary
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>cldcommand</syntax>
== [[Help:Reference|Syntax]] ==
<tr>
<td colspan="2" class="cmd">\cldcommand<!--
--><span class="first">[{...]}</span><!--
--></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[{...]}</td> <td>''texta valid way to end `context.` in Lua''</td>
</tr>
</table>
== Description ==
Execute a ConTeXt command via lookup in the Lua interpreter{{code|context}} table in LuaTeX. Defined as follows:
\def\cldcommand#1{\directlua\zerocount{context.#1}}
== Example ==
<texcode context mode=mkiv source=yes> % Draw a black rule via Lua, passing the [...=...] as a Lua table\cldcommand{ blackrule({ width = "2em", height = "1em" })}% Draw a black rule directly\blackrule[ width=4em, height=1em]</texcodecontext>
== See also ==

Navigation menu