Re: [NTG-context] Passing variables on invocation- and reading them in ConTEXt

2012-09-11 Thread Sietse Brouwer
On Mon, Sep 10, 2012 at 10:50 PM, Ian Lawrence wrote: > I'll try to add something to the wikithe link below is fine if you know > it's there, and that this is what you want. But the search function > ("arguments" and variants thereof did not find it for me). Probably in part because the wor

Re: [NTG-context] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Ian Lawrence
Thanks to all. After about 30 mins exploring, it all came together. I'll try to add something to the wikithe link below is fine if you know it's there, and that this is what you want. But the search function ("arguments" and variants thereof did not find it for me). The best match for what

Re: [NTG-context] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Sietse Brouwer
Documented at http://wiki.contextgarden.net/Command/getdocumentargument, in the category Command/Internals. --Sietse On Mon, Sep 10, 2012 at 2:00 PM, Marco Patzer wrote: > 2012-09-10: Peter Münster > >> Then you have to be sure, that --number and --time will never be special >> parameters for co

Re: [NTG-context] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Marco Patzer
2012-09-10: Peter Münster > Then you have to be sure, that --number and --time will never be special > parameters for context. Indeed. > Alternatives: > > "--MarcoPatzerNumber=8 --MarcoPatzerTime=full-time" > > Or: > > % context --arguments=number=8,time=full-time test.tex This seems the be

Re: [NTG-context] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Peter Münster
On Mon, Sep 10 2012, Marco Patzer wrote: > context --number=8 --time=full-time test.tex Then you have to be sure, that --number and --time will never be special parameters for context. Alternatives: "--MarcoPatzerNumber=8 --MarcoPatzerTime=full-time" Or: % context --arguments=number=8,time=fu

Re: [NTG-context] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Marco Patzer
On 2012-09-10 Ian Lawrence wrote: Hi Ian, > I'd like to pass variables into context on invocation, just as you can do > with setting modes > > So > > context --arguments="number=8", "time=full-time" --mode=trial test.tex context --number=8 --time=full-time test.tex > \starttext > > Hello w

[NTG-context] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Ian Lawrence
A feeble request from me, again. I'd like to pass variables into context on invocation, just as you can do with setting modes So context --arguments="number=8", "time=full-time" --mode=trial test.tex And have the values of the variables show up in the body of the text, so: \starttext H