[tex-live] Location of recorder file

Philipp Stephani st_philipp at yahoo.de
Fri May 13 02:08:36 CEST 2011


Am 13.05.2011 um 01:01 schrieb Karl Berry:

>    Almost everybody (e.g., AucTeX, the LaTeX 3 makefile)
>    assumes that the pattern
> 
>    <program> '\input <file>'
> 
>    sets the job name to (the base name of) <file>, which is not true any
> 
> Wouldn't it be better for luatex to have the same behavior as everything
> else instead of forcing every front end and user to think about a new
> special case if they want to use luatex?

I was utterly wrong in blaming LuaTeX: it's purely a LaTeX problem. lualatexquotejobname.tex expands \jobname at every job, forcing TeX to prematurely choose a job name before the first input file has been read. This can be provoked in any engine and format:

$ tex '\input knuth \bye'
... Output written on knuth.dvi ...
$ tex -ini '\input plain \everyjob{\edef\x{\jobname}}\dump'
... Beginning to dump on file plain.fmt ...
$ tex '&plain' '\input knuth \bye'
... Output written on texput.dvi ...

This means lualatexquotejobname has to be removed from the format, or at least rewritten so that \jobname is never expanded at every job:

$ lualatex '\input sample2e '
... Output written on texput.pdf ...
$ touch lualatexquotejobname.tex
$ lualatex -ini lualatex.ini
... (./lualatexquotejobname.tex) ... Beginning to dump on file lualatex.fmt ...
$ luatex '&lualatex' '\input sample2e '
... Output written on sample2e.pdf ...


More information about the tex-live mailing list