[texworks] [XeTeX] Overfull boxes return status of 0 in XeTeX

Zdenek Wagner zdenek.wagner at gmail.com
Sun Mar 13 13:56:09 CET 2016

It depends how efficiently the script is designed. I have a perl script
that calculates the MD5 sum of the aux file before running (Xe)LaTex (if it
does not exist, it is first created) and  after and then compares the
result. If the difer, it means that (Xe)LaTeX must be run again. If the
document uses \include, all aux files are traversed. Error status is
checked so that a document is not recompiled it there is a fatal error. The
script itself requires a fraction of a second. MD5 requires certainly more
that just looking for existence of overful boxes. If you run such a script
thousand times a day, you probably lose one or two seconds. Is such a tiny
time so important?

Zdeněk Wagner

2016-03-13 13:02 GMT+01:00 Philip Taylor <P.Taylor at rhul.ac.uk>:

> Jonathan Kew wrote:
> > I assume TeXworks will run an AfterTypeset script whether the tool it's
> > run exits with zero or non-zero code (won't it?).
> As far as I can tell, from the combination of Stefan's reply and my own
> observations of the behaviour of TeXworks, TeXworks runs such a script
> (to determine the contents of the "Errors, warnings, badboxes" tab), IFF
> the status returned by (Xe)TeX is non-zero.  If this is the case, then I
> would suggest that this design decision was taken in the interests of
> efficiency.  And whilst it would be grossly inefficient to run such a
> script on an $n$-thousand line log file each and every time the source
> code were compiled, the impact on the efficiency of (Xe)TeX if the
> latter were to record all warnings (etc) until the end and then
> determine on the basis of a user-set command-line parameter whether or
> not to return a zero or non-zero status would be absolutely minimal.
> Therefore I respectfully suggest that the correct place to make such a
> change would be in the source code of the various extended TeX engines
> (PdfTeX, XeTeX, whatever) rather than in each and every TeX front end.
> ** Phil.
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texworks/attachments/20160313/2a63adbd/attachment-0001.html>

More information about the texworks mailing list