Hello, sometimes in this mail discussion I'm encountering a Ctx/Lua command which has been unknown for me or I would use other (known) commands to do the job. So - would it be possible to explain - what's the difference/advantage btw \directlua and \ctxlua - what \ctxcommand{} does - what \cldcontext{} does? TIA. Lukas
Am 22.08.2012 um 13:15 schrieb Procházka Lukáš
Hello,
sometimes in this mail discussion I'm encountering a Ctx/Lua command which has been unknown for me or I would use other (known) commands to do the job.
So - would it be possible to explain
- what's the difference/advantage btw \directlua and \ctxlua
No difference, just another name, there are even more synonyms.
- what \ctxcommand{} does
\ctxcommand{<...>} == \ctxlua{commands.<...>}
- what \cldcontext{} does?
\cldcontext{<...>} == \ctxlua{context(<...>)} There is also \cldcommand{<...>} which is a short form for \ctxlua{context.<...>} All these commands access functions in the “commands” or the “context” namespace. Wolfgang
On 22-8-2012 13:26, Wolfgang Schuster wrote:
Am 22.08.2012 um 13:15 schrieb Procházka Lukáš
: Hello,
sometimes in this mail discussion I'm encountering a Ctx/Lua command which has been unknown for me or I would use other (known) commands to do the job.
So - would it be possible to explain
- what's the difference/advantage btw \directlua and \ctxlua
No difference, just another name, there are even more synonyms.
The \ctxlua variant is somewhat more future proof. In the past \directlua had a mandate extra argument. Also, the \ctxlua macro can use a dedicated message namespace if needed and future versions might have more tracing. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Procházka Lukáš
-
Wolfgang Schuster