The publisher requires that most of short words (shorter then 4 chars, and all the prepositions, etc.) should not be left last on the line but kept with the following word.
Wrong:
Following the last theorem, we
can see that ...
Right:
Following the last theorem,
we can see that ...
Yes I can use sed to replace such spaces with ~ but that's not right a solutionas it will affect math.
P.S. We are using a standard extbook class. Thanks in advance.