# [XeTeX] Overfull \hbox when using inline math scripts

Zdenek Wagner zdenek.wagner at gmail.com
Fri Dec 16 16:44:07 CET 2011

2011/12/16 Philip TAYLOR <P.Taylor at rhul.ac.uk>:
>
>
> Zdenek Wagner wrote:
>
>> In such a case you should not have overfull boxes (if you still have
>> them, some changes in the text may be needed). After this run you find
>> the highest badness of the underfull box. Set \tolerance to this value
>> and \hbadness to one less and run LaTeX again. You should see just one
>> underfull box in your log. Now you can decrease \tolerance (and
>> value of \tolerance and set \hbadness to the same value. If you have a
>> paragraph with an overfull box, then set locally for  that paragraph
>> \emergencystretch=1em. (This algorithm appeared years ago in an
>> article by Phil Taylor and I use it since then)
>
>
> So do I (!), but I am fairly certain that Frank Mittelbach subsequently
> proved that there is a far simpler way of achieving exactly the same
> results, with considerably less effort.  Frank, are you there ?
>
It's not that much effort. I do not care about overfull boxes until
the text is finished and proof read. And then I have a few macros that
help me to do it quite quickly. In pdftex hz-algorithm can sometimes
help but not always.

> ** Phil.
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex

--
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz