Skip to content

alias ProcessJobnameCallback


(alias) ProcessJobnameCallback = fun(jobname: string) -> string?

This callback allows you to change the jobname given by jobname in TeX and tex.jobname in Lua. It does not affect the internal job name or the name of the output or log files.

The only argument is the actual job name; you should not use tex.jobname inside this function or infinite recursion may occur. If you return nil, LuaTeX will pretend your callback never happened. This callback does not replace any internal code.

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!