[NTG-context] luacode inside xmlsetups

2010-03-30 Thread Hans van der Meer
The following works outside xmlsetups but not inside it. It seems to bolt on the % with: ! LuaTeX error main ctx instance:1: ')' expected near 'eof'. inserted text pitex.print(pi = .. (x - x} This in spite of the wiki telling me: To circumvent this problem, ConTeXt defines a environment

Re: [NTG-context] luacode inside xmlsetups

2010-03-30 Thread Hans Hagen
On 30-3-2010 18:09, Hans van der Meer wrote: The following works outside xmlsetups but not inside it. It seems to bolt on the % with: ! LuaTeX error main ctx instance:1: ')' expected near 'eof'. inserted text pitex.print(pi = .. (x - x} This in spite of the wiki telling me: To circumvent

Re: [NTG-context] luacode inside xmlsetups

2010-03-30 Thread Hans van der Meer
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

Re: [NTG-context] luacode inside xmlsetups

2010-03-30 Thread Hans Hagen
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