Difference between revisions of "Command/startctxfunctiondefinition"
< Command
Jump to navigation
Jump to search
Line 45: | Line 45: | ||
<cd:source file="xx"></cd:source> | <cd:source file="xx"></cd:source> | ||
--> | --> | ||
+ | <cd:commandref name="_ctxfunctiondefinition"></cd:commandref> | ||
+ | <cd:commandref name="startctxfunction"></cd:commandref> | ||
+ | <cd:commandref name="_ctxfunction"></cd:commandref> | ||
<cd:source file="luat-ini.mkiv" originator="system"></cd:source> | <cd:source file="luat-ini.mkiv" originator="system"></cd:source> | ||
<cd:wikipage originator="system" page="Category:Lua"></cd:wikipage> | <cd:wikipage originator="system" page="Category:Lua"></cd:wikipage> | ||
</cd:seealso> | </cd:seealso> | ||
</cd:commandgroup> | </cd:commandgroup> |
Revision as of 14:48, 27 August 2020
Contents
\startctxfunctiondefinition ... \stopctxfunctiondefinition
Summary
The environment \startctxfunctiondefinition ... \stopctxfunctiondefinition defines a macro that is a lua function without arguments.
Settings
Description
This defines a TeX macro without arguments that when expanded runs a block of lua code instead of executing TeX commands.
Examples
Example 1
\startctxfunctiondefinition foo context('hello world') \stopctxfunctiondefinition \foo