<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">One thing that helps is to set max_print_line really high, something like 10000, and leave the line-wrapping to your terminal.<div><br></div><div>(E.g. in TeX Live one can invoke the program with `max_print_line=10000 pdflatex foo.tex`, or set it permanently with `export max_print_line=10000` in your shell environment, or add `max_print_line = 10000` in your `texmf.cnf` file.)</div><div><br></div><div>Then in your above example you could always just consistently treat (only) the line immediately after the overfull/underfull message as the offending line (and not look for page numbers in that line).<br></div><div><br></div><div>In general, for messages produced by some macro package, it's up to the package to print with whatever structure it wants.</div><div><br></div><div>I guess you could also play some tricks like re-running TeX with and without certain settings (e.g. setting \hfuzz really high to turn off the overfull messages) and seeing what changes, to infer what's what.</div><div><br></div><div>Beyond that, there's not much you can do with the standard TeX / pdfTeX etc programs (you'd have to modify the program itself i.e. write a new program with a new name).</div><div><br></div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 8 May 2019 at 02:43, Paulo Ney de Souza <<a href="mailto:pauloney@gmail.com">pauloney@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"><div dir="ltr"><div dir="ltr">How do-able would be to make TeX write a better (more structured) LOG file?<div><br></div><div>Take the example down below, where one is trying, for example, to parse the LOG file to check which pages have overfulls:</div><div><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>.<font face="monospace, monospace">..</font></div></div><div><div><div><font face="monospace, monospace">[44]</font></div></div></div><div><div><div><font face="monospace, monospace">Underfull \hbox (badness 1895) in paragraph at lines 1699--1700</font></div></div></div><div><div><div><font face="monospace, monospace">[] []|\TU/TimesNewRoman(0)/bx/n/10 3.6.2 Conjetura de Birch y Swinnerton-Dyer.[</font></div></div></div><div><div><div><font face="monospace, monospace">] \TU/TimesNewRoman(0)/m/n/10 Hemos definido el regulador</font></div></div></div><div><div><div><font face="monospace, monospace"> []</font></div></div></div><div><div><div><font face="monospace, monospace"><br></font></div></div></div><div><div><div><font face="monospace, monospace">[45]</font></div></div></div><div><div><div><font face="monospace, monospace">Overfull \hbox (4.49274pt too wide) in paragraph at lines 1718--1719</font></div></div></div><div><div><div><font face="monospace, monospace">[]\TU/TimesNewRoman(0)/m/n/10 Gracias a esto último, podemos ahora expresar la</font></div></div></div><div><div><div><font face="monospace, monospace">conjetura completa (ver [][][][][]Tate [1995][][]):</font></div></div></div><div><div><div><font face="monospace, monospace"> []</font></div></div></div><div><div><div><font face="monospace, monospace"><br></font></div></div></div><div><div><div><font face="monospace, monospace">[46] [47] [48]</font></div></div></div><div><div><div><font face="monospace, monospace">Package microtype Info: Loading generic protrusion settings for font family</font></div></div></div><div><div><div><font face="monospace, monospace">(microtype)             `lmtt' (encoding: TU).</font></div></div></div><div><div><div><font face="monospace, monospace">(microtype)             For optimal results, create family-specific settings.</font></div></div></div><div><div><div><font face="monospace, monospace">(microtype)             See the microtype manual for details.</font></div></div></div><div><div><div><font face="monospace, monospace"> [49]</font></div></div></div><div><div><font face="monospace, monospace">...</font></div></div></blockquote><div dir="ltr"><div><br></div><div>It is natural to look for the "[numbers]" after the overfull, but parsing for things that happen in between brackets will lead you to believe the Overfull in line  1718--1719 is at page "1995".</div><div><br></div><div>The "freewheelling" nature of the standard log file -- mixing page-number with date and other info make it almost impossible to reliably extract reasonable information from long log files, or to parse it automatically.</div><div><br></div><div>Paulo Ney</div><div><br></div></div></div>
</blockquote></div>