I tried to use this (via):
\everypar{\looseness=-1}
However, I'm not exactly sure where to put it. If I put it somewhere before \begin{document}
, it doesn't seem to have any effect. If I put it after some \section{}
, it has an effect but it removes all the space up to the title of the following section, and it seems to apply only for the current section.
Is that expected? I want that it is applied to the whole document. And I don't want to alter the space before section titles.
How can I achieve this?
\linepenalty
from its default value of 10 to, say, 200. This way, long paragraphs will tend to use less lines.