Changes

Jump to navigation Jump to search
</pre></code>
= Calling Lua from TeX from Lua =
The reverse One can execute a Lua code from within TeX and get back the result in TeX by using {{code|\cldcontext}}. Thus, if {{code|myfunction}} is a function of a variable {{code|x}} defined in Lua, {{code|\cldcontext{myfunction(5)}}} returns the value {{code|myfunction(5)}} in TeX. This is possibleequivalent to {{code|\ctxlua{context(myfunction(5))}}}.   Being a topic on itself, pages are dedicated:
* '''[[CLD|ConTeXt Lua Documents]]''', or CLD, are way to access TeX from inside Lua scripts. A page give clues about [[CLD_passing_variables|passing variables]] within CLD (2018).
* [[Lua|Wiki page dedicated to Lua]]
106

edits

Navigation menu