The following two paragraphs differ only in that the first one uses "his" on the first line and the second one uses "her".
\documentclass[12pt]{book}
\RequirePackage[adobe-utopia]{mathdesign}
\textwidth5.5in
\begin{document}
Each producer \(j\), when choosing the output of his production unit (an element in \(T(j)\))
takes as given the price system \((p_1,p_2)\) prevailing in the market and maximizes the value
of this output (the unit's profit).
Each producer \(j\), when choosing the output of her production unit (an element in \(T(j)\))
takes as given the price system \((p_1,p_2)\) prevailing in the market and maximizes the value
of this output (the unit's profit).
\end{document}
TeX sets the paragraphs like this:
The linebreak for the first line is the same in both paragraphs, but the linebreak for the second line differs between the paragraphs. Thus the difference in the first lines doesn't affect the way the first line is set, but affects the way the second line is set. Why does TeX's paragraph-setting mechanism do that?
Best Answer
I could not reproduce the output that you show, however by exaggerating width of
her
I can produce the effect,TeX tries to avoid having a very loose line next to a very tight one. In order to get
and
on to the second line the white space has to be very compressed and that isn't allowed in the first paragraph but with the widerher
in the second form, the white space in the first line is compressed enough to allow the tight second line.The log shows
First paragraph:
second paragraph
Martin sent me a full
\tracingall
log of the document in the question, run through Bakoma TeX, so that I could investigate why I needed to add the rule to makeher
wider.....Comparing a
\tracingall
log of the original version, the LaTeX in the bakoma tex run advertises itself asI actually got the fewest differences using texlive 2016, but there the main difference appears to be slight differences in the mathdesign package setup
In particular the diff of the logs shows
tl2016
bakoma
so a .02 difference in scale factors used in the fonts. After that of course it is not surprising that in a particularly sensitive paragraph like this where two possible linebreaking options have similar badness and just the width difference between his and her tips the balance that a small difference in font size meant that I had to adjust the word widths to see the same effect.