9 Jun
2011
9 Jun
'11
12:39 p.m.
OK, thanks both for the answers.
Lukas
On Thu, 09 Jun 2011 13:57:27 +0200, Taco Hoekwater
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
I think the tables document.arguments and documents.files might also be of interest. Regards. -- Cédric