Break the lines
Trial piece
Set this paragraph to the measure. Choose where each line ends.
Cost of a line = 100 × r², where r is how far its word spaces stretch or shrink from natural. The last line is free. Simplified from Knuth and Plass (1981); no hyphenation.
Cost so far 0.0
Stock, not yet set.
Verso
Width table, units to the em
The rule
- Natural word space: 250 units.
- Shrink limit: one third of a space.
- Stretch limit: r of 3, a space four times natural.
- Cost of a line = 100 × r². The last line costs 0 if it fits.