On 11/16/05, Juraj Fedel <[EMAIL PROTECTED]> wrote: > After reading a doc I started writing with latex, and it is > quite easy. As sugested above there are many question poping > while using it. One that bother me most right now is about > orphans and widows lines. I thought latex will take care of this > by default, but it does not in my case. I can fix this case by > case with explicit \pagebreak and \enlargethispage but is there > some macro (or something) that can fix this globaly?
You can prevent widows by putting \widowpenalty=9999 in the preamble (between \documentclass{...} and \begin{document}). For orphans, it's \clubpenalty=9999 You can set these smaller as well, which tells LaTeX that it's not quite so bad to leave widows and orphans. In general, I'd suggest leaving the defaults as-is. If you end up with a few pages that have problems when you're all done with your revisions, you can start tweaking the page breaks one at a time. Often a change of a word or two will change the number of lines in a paragraph, which will also change page breaks. Make sure you re-run latex after each change (starting with changes at the beginning), since one change in page breaking will often cascade through a number of pages. -- Michael A. Marsh http://www.umiacs.umd.edu/~mmarsh http://mamarsh.blogspot.com