by Someone · 3y ago · 0 comments
If so, nothing special needs to be done about widows and orphans either because TeX first uses essentially the same algorithm to decide where to put page breaks between lines (with page breaks between paragraphs getting lower penalties than page breaks within paragraphs), and having a single line of a paragraph on the top or bottom of a page leads to a fairly high penalty.
[1]: https://raphlinus.github.io/text/2022/11/08/minikin.html
[2]: https://developer.android.com/reference/android/widget/TextV...
My approach to runts was to apply the full penalty to the last line, but only if the number of words was below a threshold (by default, only if it's a single word).