Changes

Jump to navigation Jump to search
237 bytes added ,  20:46, 25 July 2012
Tweaking
<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 mode=mkiv source>% Draw a black rule via Lua, passing the [...=yes>...] as a Lua table \cldcommand{ blackrule({ width = "2em", height = "1em" })}% Draw a black rule directly\blackrule[ width=4em, height=1em]
</texcode>

Navigation menu