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 physics.roo...@gmail.com 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

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

2012-09-10 Thread Marco Patzer
On 2012-09-10 Ian Lawrence physics.roo...@gmail.com 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

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

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

2012-09-10 Thread Marco Patzer
2012-09-10: Peter Münster pmli...@free.fr 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

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 home...@lavabit.com wrote: 2012-09-10: Peter Münster pmli...@free.fr Then you have to be sure, that --number and --time will never

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