Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Hans Hagen
Peter Münster wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: As I've written yesterday, I suppose, that the following syntax is wanted: \getvariable{environment}{myVar} but this does not work... how does it look with: local flag, value = argument:match("^%-+(.-)=(.-)$") .+ -> .- I've chang

Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Peter Münster
On Mon, 21 Sep 2009, Hans Hagen wrote: > > As I've written yesterday, I suppose, that the following syntax is wanted: > > \getvariable{environment}{myVar} but this does not work... > > how does it look with: > > local flag, value = argument:match("^%-+(.-)=(.-)$") > > .+ -> .- I've changed th

Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Hans Hagen
Peter Münster wrote: On Mon, 21 Sep 2009, luigi scarso wrote: test-file: \starttext Value of myVar: \ctxlua{tex.print(document.arguments["arguments=myVar"])} \stoptext cmd-line: context --arguments=myVar=myValue test But this syntax is very strange! Does context --arguments="myVar=myValue

Re: [NTG-context] setting variable on cmd-line

2009-09-20 Thread Peter Münster
On Mon, 21 Sep 2009, luigi scarso wrote: > >> > test-file: > >> > > >> > \starttext > >> > Value of myVar: \ctxlua{tex.print(document.arguments["arguments=myVar"])} > >> > \stoptext > >> > > >> > cmd-line: > >> > > >> > context --arguments=myVar=myValue test > >> > > >> > But this syntax is very s

Re: [NTG-context] setting variable on cmd-line

2009-09-20 Thread luigi scarso
On Mon, Sep 21, 2009 at 7:39 AM, Peter Münster wrote: > On Sun, 20 Sep 2009, luigi scarso wrote: > >> > test-file: >> > >> > \starttext >> > Value of myVar: \ctxlua{tex.print(document.arguments["arguments=myVar"])} >> > \stoptext >> > >> > cmd-line: >> > >> > context --arguments=myVar=myValue test

Re: [NTG-context] setting variable on cmd-line

2009-09-20 Thread Peter Münster
On Sun, 20 Sep 2009, luigi scarso wrote: > > test-file: > > > > \starttext > > Value of myVar: \ctxlua{tex.print(document.arguments["arguments=myVar"])} > > \stoptext > > > > cmd-line: > > > > context --arguments=myVar=myValue test > > > > But this syntax is very strange! > Does > context --argum

Re: [NTG-context] setting variable on cmd-line

2009-09-20 Thread luigi scarso
On Sun, Sep 20, 2009 at 9:46 PM, Peter Münster wrote: > On Fri, 18 Sep 2009, Peter Münster wrote: > >> I've a little feature request: >> It would be nice, to have a command line option like "--setvalue x=y" or >> similar for the "context" command to define a variable for the job. >> >> Modes are a

Re: [NTG-context] setting variable on cmd-line

2009-09-20 Thread Peter Münster
On Fri, 18 Sep 2009, Peter Münster wrote: > I've a little feature request: > It would be nice, to have a command line option like "--setvalue x=y" or > similar for the "context" command to define a variable for the job. > > Modes are already very nice, but often I need just one value for > condit

[NTG-context] setting variable on cmd-line

2009-09-18 Thread Peter Münster
Hello, I've a little feature request: It would be nice, to have a command line option like "--setvalue x=y" or similar for the "context" command to define a variable for the job. Modes are already very nice, but often I need just one value for conditional compiling a document instead of many bina