ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Ctx ... Lua
@ 2012-08-22 11:15 Procházka Lukáš
  2012-08-22 11:26 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Procházka Lukáš @ 2012-08-22 11:15 UTC (permalink / raw)
  To: ConTeXt

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


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Ctx ... Lua
  2012-08-22 11:15 Ctx ... Lua Procházka Lukáš
@ 2012-08-22 11:26 ` Wolfgang Schuster
  2012-08-22 13:03   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2012-08-22 11:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 22.08.2012 um 13:15 schrieb Procházka Lukáš <LPr@pontex.cz>:

> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Ctx ... Lua
  2012-08-22 11:26 ` Wolfgang Schuster
@ 2012-08-22 13:03   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2012-08-22 13:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

On 22-8-2012 13:26, Wolfgang Schuster wrote:
>
> Am 22.08.2012 um 13:15 schrieb Procházka Lukáš <LPr@pontex.cz>:
>
>> 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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-22 13:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-22 11:15 Ctx ... Lua Procházka Lukáš
2012-08-22 11:26 ` Wolfgang Schuster
2012-08-22 13:03   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).