Contents
Summary
The command \cldcontext is used to call a ConTeXt macro via Lua.
Settings
| \cldcontext{...} | |
| {...} | command |
| Option | Explanation |
|---|---|
| command | valid argument(s) for Lua’s context() function |
Description
Pass an argument to Lua’s
context(...)
command. The text is inserted as-is, so you’ll want to add quotations marks.
\def\cldcontext #1{\directlua\zerocount{context(#1)}} % so \cldcontext{some code} --> \directlua{context(some code)} % and \cldcontext{"some code"} --> \directlua{context("some code")}
Examples
Example 1
-
\cldcontext{"\\section{One}"} \cldcontext{2 * 4}
-