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?
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?


\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\emergencystretchwhich solves my problem. – m93a Feb 19 '22 at 14:03