<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 6 Jan 2022 at 20:10, Don Hosek <<a href="mailto:don.hosek@gmail.com">don.hosek@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> As your document errors in the preamble, providing an MWE is really<br>
> easy. At least provide the full log until the error so that one has<br>
> at least a chance to identify the package.<br>
<br>
It occurs to me that the means by which TeX identifies the location of an error is not so great when many input files are involved (especially with nested \input commands). Perhaps there should be a change to the output[1] of an error location from<br>
<br>
> l.112   {}{\fail}<br>
<br>
to <br>
<br>
> file.tex: l.112   {}{\fail}<br></blockquote><div><br></div><div>that is already available as --file-line-error  command line option in all texlive engines.</div><div><br></div><div>David</div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
We can do this by modifying s.313 so that it does:<br>
<br>
> print(input_stack[base_ptr].name_field); print_nl(“l.”); print_int(line);<br>
<br>
instead of <br>
<br>
> print_nl(“l.”); print_int(line);<br>
<br>
Unless there’s some compelling reason not to, this seems like something that could/should have been done long ago.<br>
<br>
-dh<br>
<br>
——<br>
<br>
1. I had originally thought that this would need to be an eTeX extension but I see that Knuth writes:<br>
<br>
> This routine should be changed, if necessary, to give the best possible indication of where the current line resides in the input file.<br>
<br>
</blockquote></div></div>