Command/ctxcommand

From Wiki
< Command
Revision as of 08:19, 21 August 2012 by Esteis (talk | contribs) (Create page in proper place)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

\ctxcommand

Syntax

\ctxcommand{...}
{...} lua command from in the command table

Description

To quickly access Lua commands in the command table, you can write e.g.

\ctxcommand{doifelse(\userpage < 10)}{early page}{later page}

instead of

\ctxlua{command.doifelse(\userpage < 10)}{early page}{later page}

.

Example

\ctxcommand{doifelse(\userpage < 10)}{early page}{later page}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: