> Here you'd better use the Lua equivalent of \jobname: > name_of_file = tex.jobname Thanks Dirk and Paul. That's the first two passes merged. I may just leave it at that; TeX users are used to running TeX or LaTeX twice. Bob T.