0

Sometimes, a paragraph will end in a short word that appears all by itself on the last line. I believe that such words are called runts in typography. Other times, a longer word is broken and only one syllable appears on the last line. Is there a way to automatically fix this?

runt word runt syllable

I know how to fix these manually – by adding ~ before the last word and enclosing it in \mbox{} – but that is tedious in a long document. Is there a way to penalize LaTeX for making the last line of a paragraph too short?

m93a
  • 271
  • Possibly related: https://tex.stackexchange.com/q/295547 – m93a Feb 19 '22 at 13:43
  • 1
    It is a duplicate of that one, although the only answer there is koma-script specific, in general the answer would be somthing like \setlength\parfillskip{0pt plus .75\linewidth} which will penalise anything needing more than 3/4 of the line white space. – David Carlisle Feb 19 '22 at 13:49
  • I don't think it's a duplicate, because there the OP's paragraphs are forced to end with a runt, which isn't a problem I have. – m93a Feb 19 '22 at 13:58
  • Thank you for the command, but it doesn't seem to do much – in the example it changed “soda-les” to “so-dales” (not exactly what I want) and it left the “enim“ runt unchanged. – m93a Feb 19 '22 at 13:58
  • Ah, but this question is a duplicate of https://tex.stackexchange.com/q/114940/ , the answer there also adds \emergencystretch which solves my problem. – m93a Feb 19 '22 at 14:03

0 Answers0