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.

Sometimes I encounter this single word widows instance very often, please find the right hand page, topline scoundrel. My design strategy is to leave enough white space at the bottom margin, so when it does happen, the code \enlargethispage{\baselineskip} will apply to the left hand page to enable the scoundrel slot back to place.

Of course, controversially, one can apply it manually through out all the instances, I wondered if there is an automatic way of doing this?

I am using the document class of—Book "COMA-SCRIPT"

ps. I also applied \pretolerance=5000 \tolerance=1000 in the Preamble, not sure what they do, was told it can prevent instances of widows and orphans...

widows example

share|improve this question
add comment

1 Answer

Without an example it is hard to say but if you add

\widowpenalty=10000

Then TeX will try as hard as it can to avoid widows. The tolerance settings probably are not doing very much in your case as with such short paragraphs there is very little flexibility in line breaking anyway.

If there is any vertical stretch in your page (as in the default parskip spacing in standard classes) then probably preventing widows will pull the last couple of lines over to the next page. If there is no vertical stretch then you will get an underfull page on the previous page, in which case you could potentially detect that in the output routine and put the text back after enlarging the page but such interactions are very delicate and depend greatly on the content you have as it's very hard to make things work in general.

share|improve this answer
    
it works very well indeed. It seems to mitigated all widows. However, I found it actually confused with diagrams. I tried to reduced the number to 8000 or 5000, doesn't do much. I don't mind widow lines that much in this book, since it is a play, one or two line over the other page doesnt matter that much—just single-word widow that is unforgivable. Is it possible to detect them? It is likely to be the combination of "single word + punctuation. " –  Shi Yuan Jan 30 '13 at 16:27
2  
Diagrams shouldn't normally show up as widows (normally they would be distinct paragraphs (unlless yo go text text \\ \includegraphics{...}) tex does line and page breaking at different times so detecting a one word widow is hard –  David Carlisle Jan 30 '13 at 16:40
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.