Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How to avoid widow and orphan lines, while also avoiding too large gaps appearing between the paragraphs on the previous page?

I figure that to strongly discourage widows and orphans, one would use a high but not infinite \widowpenalty and \clubpenalty value, such as

\clubpenalty=9996
\widowpenalty=8500

This in turn makes TeX to stretch the spaces between the paragraphs on the previous page, and one tries to strike the balance with penalties, so that the extra paragraph gaps are usually not noticeable.

However sometimes the difference on facing pages is really noticeable, are there other techniques or internals penalties to avoid this?

What are the manual correction techniques apart from \raggedbottom and \enlargethispage?

share|improve this question
    
6  
It may be a bit lame but when I encounter widows or orphans, I simply encourage my creativity and add a couple of sentences or do finishing touches. No general solution has worked for me every time so far. –  Harold Cavendish Mar 23 '11 at 11:01
2  
@Harrold: this is the approach taken by Knuth himself, so it has some precedent. I don't have the reference in front of me, but I remember he wrote he found it valuable to force himself to rewrite a sentence to avoid a bad break because he has almost always found a way to improve wording of the sentence in the process. –  Lev Bishop Mar 23 '11 at 14:56
    
@Lev: Suddenly my approach does not seem that odd to me any more, thank you for the information, Lev. It is indeed true that I often find better wording while eliminating widows and orphans manually so paradoxically, the lack of a general automatic solution comes handy, in the end. –  Harold Cavendish Mar 23 '11 at 15:24
add comment

1 Answer

up vote 5 down vote accepted

You can try to set \looseness=1 or \looseness=-1 to make certain paragraphs one line longer or shorter, respectively. This is described in the TeXbook on page 103-104.

share|improve this answer
    
With \looseness=1 you normally need to put a few ~ between the last few words of the paragraph, or you'll end up with one-word final lines of paragraphs, which is not much of an improvement. –  Lev Bishop Mar 23 '11 at 14:58
    
This can help to avoid those: \parfillskip 0pt plus 0.75\textwidth as suggested here. There might still be club words left, since stretching the lines of an already loosened paragraph might have even higher penalty than ending up with a club word. –  Nyiti Mar 23 '11 at 17:52
    
Thanks, loosening a few large paragraphs on the problematic page really does the job. –  Nyiti Mar 23 '11 at 17:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.