Changes

Jump to navigation Jump to search
1,105 bytes added ,  20:58, 25 July 2012
Create that page!
{{Reference
|name=cldcontext
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\cldcontext<!--
--><span class="first">{...}</span><!--
--></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">{...}</td>
<td>''valid argument(s) for Lua's `context()` function''</td>
</tr>
</table>

== Description ==

Pass an argument to Lua's {{code|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")}

== Example ==
<context mode=mkiv source=yes>
\cldcontext{"\\section{One}"}
\cldcontext{2 * 4}
</context>

== See also ==
* {{cmd|cldcontext}}
* {{cmd|cldcommand}}
* {{cmd|cldprocessfile}}

== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|{{SUBPAGENAME}}}}

[[Category:Command/LuaTeX|cldcontext]]
[[Category:Command/MkIV only|cldcontext]]

Navigation menu