To avoid widow words at the last line of a paragraph, I adjust parfillskip
:
\parfillskip 0pt plus 0.75\textwidth
While this gives nicer paragraphs, it also stretches section titles a little, as you can see below.
The first title is with the default parfillskip
, the second with 0pt plus 0.75\textwidth
:
How can I keep my parfillskip
setting for paragraphs, but not for titles?
This code showcases the effect for text and titles (preview):
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\section{This is a section title}
\lipsum[1]
\section{This is a section title}
% Fill the last line of paragraphs for minimum 25%
\parfillskip 0pt plus 0.75\textwidth
\section{This is a section title}
\lipsum[1]
\end{document}
\parfillskip
.