Open main menu
Wiki
Search
Changes
← Older edit
Newer edit →
Command/ctxcommand
(view source)
Revision as of 11:43, 30 November 2012
70 bytes added
,
11:43, 30 November 2012
m
no edit summary
== 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}
LuP
105
edits