On Sep 17, 2007, at 14:17, Luca Furini wrote:

Andreas L Delmelle wrote:

Just wondering about some KnuthSequences for spaces I noticed during a debug-session:
<snip />

Negative stretch is not the same as a positive shrink (and vice- versa): a negative stretch is used to cancel (or diminish) a positive one provided by some other elements: for each possible break point, however, the overall stretch / shrink should always be >= 0.

The meaning of the mini-sequence above is:
- if there is a break at the penalty element, there is some stretch for
  the line ending there
- otherwise, the overall stretch is zero

This is with unjustified text to give each line the same amount of stretch, so that the algorithm should build lines with similar length (while in justified text a line with many spaces and few letters could be stretched a lot).


It did. Thanks for the quick explanation.



Reply via email to