Changes

Jump to navigation Jump to search
132 bytes added ,  17:26, 12 November 2019
no edit summary
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>ctxcommand</syntax>
== [[Help:Reference|Syntax]] ==
== Description ==
To quickly access Lua commands in the {{code|command}} table, you .  \def\ctxcommand #1{\directlua{commands.#1}} % saves tokens  You can write e.g.
<texcode>
\ctxcommand{doifelse(\userpage < 10)}{early page}{later page}
instead of
<texcode>
\ctxlua{commandcommands.doifelse(\userpage < 10)}{early page}{later page}
</texcode>
.
</context>
== \ctxcommand vs. \cldcommand vs. \cldcommand ==
<context source=yes mode=mkiv>
A

Navigation menu