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 > \starttext > > Hello world > > % This is \getvariables{arguments}{number} it. % this does not work - what do > I need here to write out the next line? > > This is 8. > > % This is \getvariables{arguments}{time} it. % Nor does this - what do I need > here to write out the next line? > > This is full-time. > > \stoptext \starttext This is \doifdocumentargument{number}{\getdocumentargument{number}} it. This is \doifdocumentargument{time}{\getdocumentargument{time}} it. \stoptext Marco ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________