Difference between revisions of "Command/cldcommand"
< Command
Jump to navigation
Jump to search
(Tweaking) |
(show result of example) |
||
Line 25: | Line 25: | ||
== Example == | == Example == | ||
− | < | + | <context mode=mkiv> |
% Draw a black rule via Lua, passing the [...=...] as a Lua table | % Draw a black rule via Lua, passing the [...=...] as a Lua table | ||
\cldcommand{ | \cldcommand{ | ||
Line 37: | Line 37: | ||
width=4em, | width=4em, | ||
height=1em] | height=1em] | ||
− | </ | + | </context> |
== See also == | == See also == |
Revision as of 21:45, 28 September 2012
\cldcommand
Syntax
\cldcommand{...} | |
{...} | a valid way to end context. in Lua |
Description
Execute a ConTeXt command via lookup in the context
table in LuaTeX. Defined as follows:
\def\cldcommand#1{\directlua\zerocount{context.#1}} % so \cldcommand{somecommand} --> \directlua{context.somecommand}
Example
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: