[NTG-context] CLD: context.getvariable as Lua variable

2012-01-05 Thread Wagner Macedo
Hello, I'm relatively quite new to TeX world. This is my first message to list. I hope you understand me, English isn't my mother language. I'm trying to use a variable set by \setvariable in Lua. I tried some combinations, based on manual but I couldn't succeed. The code below exemplifies what

Re: [NTG-context] CLD: context.getvariable as Lua variable

2012-01-05 Thread Wolfgang Schuster
Am 05.01.2012 um 15:49 schrieb Wagner Macedo: Hello, I'm relatively quite new to TeX world. This is my first message to list. I hope you understand me, English isn't my mother language. I'm trying to use a variable set by \setvariable in Lua. I tried some combinations, based on manual

Re: [NTG-context] CLD: context.getvariable as Lua variable

2012-01-05 Thread Wagner Macedo
Firstly, thanks by answer. The second way is nice, but could be generic (e.g. save any variable in a namespace)? -- Wagner Macedo On 5 January 2012 13:04, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.01.2012 um 15:49 schrieb Wagner Macedo: Hello, I'm relatively quite

Re: [NTG-context] CLD: context.getvariable as Lua variable

2012-01-05 Thread Wolfgang Schuster
Am 05.01.2012 um 18:22 schrieb Wagner Macedo: Firstly, thanks by answer. The second way is nice, but could be generic (e.g. save any variable in a namespace)? It would require a different method because \setvariables doesn’t provide information about the values which are set. Can you

Re: [NTG-context] CLD: context.getvariable as Lua variable

2012-01-05 Thread Wagner Macedo
Don't worry. It's not needed. I just wanted to avoid mix Lua and TeX codes. I will survive using: local s = \getvariable{namespace}{var} Thank you by attention. -- Wagner Macedo On 5 January 2012 14:39, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.01.2012 um 18:22