On 30-3-2010 20:05, Hans van der Meer wrote:
I see.
What is the scope of that function you suggest? Can I make it a local
function or has it to exist in a more global scope?
I see in your example document.MyPiStuff. Is that because you suppose
the lua code enclosed in a module "document"?
For but a handful of functions I would rather keep them together with
the TeX-code.
all definitions are (as usual) global although the direct lua call
happens in a closure so you can use local to prevent bleeding
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 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 : [email protected] / 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
___________________________________________________________________________________