jobname in luamplib

Toby Thurston <[email protected]> Fri, 4 Aug 2023 11:02:56 +0100
Newsgroups gmane.comp.tex.metapost
Message-ID <[email protected]>
In plain MP with "mpost", the internal variable "jobname" resolves to the stem of the name of the current source file.

But if I use "luamplib" with "lualatex" it always resolves to "mpout" -- would it be possible to propagate the current source filename from the lualatex level down to the MP level please?

Or is there an alternative approach with lualatex?

thanks, Toby Thurston
--
http://tug.org/metapost/