On 06/09/11 13:41, Procházka Lukáš Ing. - Pontex s. r. o. wrote: > Hello, > > when I run context by e.g.: > > context.exe Source.mkiv --result=Result.pdf --mode=Mode > > is it possible to access the command line arguments from Lua?
the 'environment' table has information about this stuff. In particular, environment.rawarguments matches the table that lua calls 'arg'. \directlua{print (table.serialize(environment.rawarguments))} Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________