3 ms·
One thing that Knuth forgot is that it is (imho) ugly if two successive lines in a paragraph start or end with the same word. Or more generally if two instances
by amelius 7y ago
One thing that Knuth forgot is that it is (imho) ugly if two successive lines in a paragraph start or end with the same word. Or more generally if two instances of the same word appear close to eachother.
This shows that writing a formatter is a task that is probably never finished :)
- svat 7y agoDefinitely, the definition of "good" is subjective and one can never get it fully right automatically — but as far as TeX's line-breaking algorithm goes, avoiding successive lines starting or ending with the same word wouldn't require any major change, it could just be added similar to the existing method for consecutive lines being hyphenated (\doublehyphendemerits), without giving up the dynamic-programming algorithm.