Re: [NTG-context] \e!start in lua

2011-01-16 Thread Wolfgang Schuster
Am 15.01.2011 um 23:57 schrieb Aditya Mahajan: What is the best way to define the equivalent of \setvalue{\e!start\NAME}{...} in lua. e_start = ?? context.setvalue(e_start .. name, ...) \startluacode context.setvalue(foo,\\framedtext)

Re: [NTG-context] \e!start in lua

2011-01-16 Thread Hans Hagen
On 15-1-2011 11:57, Aditya Mahajan wrote: What is the best way to define the equivalent of \setvalue{\e!start\NAME}{...} in lua. e_start = ?? context.setvalue(e_start .. name, ...) \starttext \startluacode local elements = interfaces.complete.elements local interface =

Re: [NTG-context] \e!start in lua

2011-01-16 Thread Aditya Mahajan
On Sun, 16 Jan 2011, Wolfgang Schuster wrote: Am 15.01.2011 um 23:57 schrieb Aditya Mahajan: What is the best way to define the equivalent of \setvalue{\e!start\NAME}{...} in lua. e_start = ?? context.setvalue(e_start .. name, ...) \startluacode

Re: [NTG-context] \e!start in lua

2011-01-16 Thread Aditya Mahajan
On Sun, 16 Jan 2011, Hans Hagen wrote: On 15-1-2011 11:57, Aditya Mahajan wrote: What is the best way to define the equivalent of \setvalue{\e!start\NAME}{...} in lua. e_start = ?? context.setvalue(e_start .. name, ...) \starttext \startluacode local elements =

Re: [NTG-context] \e!start in lua

2011-01-16 Thread Hans Hagen
On 16-1-2011 5:28, Aditya Mahajan wrote: On Sun, 16 Jan 2011, Hans Hagen wrote: On 15-1-2011 11:57, Aditya Mahajan wrote: What is the best way to define the equivalent of \setvalue{\e!start\NAME}{...} in lua. e_start = ?? context.setvalue(e_start .. name, ...) \starttext \startluacode

Re: [NTG-context] \e!start in lua

2011-01-16 Thread Wolfgang Schuster
Am 16.01.2011 um 17:27 schrieb Aditya Mahajan: This would just create \startfoo. \setvalue{\e!start foo} creates a interface specific command. The code that Hans posted does that. I am sorry that this was not clear in the question. Ok, i missed the interface thing. Wolfgang