Hello,
just a note:
whilst command line option "--result=..." must point to the dir where the processed file is
located, "os.rename()" allows to move files across dirs (at least on Win7), so this might be a way
to evade "--result" limitation.
Best regards,
Lukas
On Fri, 21 Sep 2018
I'll add documentdata.variable so that one can do this:
\setupdocument
[id=foo]
\startluacode
luatex.wrapup(function()
local id = documentdata.variable("id")
if id and id ~= "" then
local oldname = file.addsuffix(environment.jobname,"pdf")
local