[luatex] incorrect value of status.filename in files input via a macro
d.p.carlisle at gmail.com
Mon Nov 23 10:16:26 CET 2015
This question came originally from an (old) user report on stackexchange
but I've simplified it down to a plain tex example, using the latest
If you run the attached files with the command
luatex --interaction=scrollmode --file-line-error main2
Then you get the log as attached, the middle message shows the problem
./foo.sty line 2: ./main2.tex line 2
shows that during the input file status.filename is incorrectly giving the
top level file, even though status.linenumber is giving the line in this file.
The \ERROR following shows that the system does "know" the correct
and uses it in the error message when --file-line-error is used.
If you use the primitive \input directly then it does work as shown by
the second input giving
./foo.sty line 2: ./foo.sty line 2
However it is very common to have to construct the filename via a
macro argument (latex \usepackage for example, and actually latex
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1305 bytes
Desc: not available
More information about the luatex