in experimenting with raggedbottom, widowpenalty, and clubpenalty, I
think I have not found a solution that strikes me as particularly
desirable. I think what I would really like is that widows (i.e.,
left-over single lines that begin on the following page) are resolved
not by pushing one extra line from the same paragraph also onto the
next page, but by stretching the \textheight to allow this one extra
line at the bottom of the same page. I am of course particularly
miffed by the standard solution if this is the last paragraph before a
new section starts (or if the next piece on the page is not just
another text paragraph), but I would be ok if this were the default
widow handling algorithm everywhere. Possible?
Reading the definition "The \raggedbottom declaration makes all pages
the height of the text on that page. No extra vertical space is added"
this does not seem to be what I want, anyway. I read the FAQ
"Preventing page breaks between lines", which seems to have some
solution, but catered to individual situations. I would like it to be
the default throughout my document.
regards,
/iaw
2. where needed use the \looseness command in a long paragraph to
generate an additional line. this is an individual instance solution.
HTH
John Culleton
Another individual-instance solution is to use \enlargethispage{###}
to enlarge the current page by size ### (e.g., 2\baselineskip).
-- Scott
my optimal solution would be a typesetting algorithm in latex that
knows not only the current paragraph, but also the next item in the
vertical list. if this next item is not another paragraph, and
especially if it is a heading, then I would be particularly unhappy
about the standard widow control (of moving an additional line from the
current page to the next one) and prefer an automatic
\enlargethispage{\baselineskip}. I presume this is not possible. so
my next-best would be to just try the enlargethispage-upon-widow, no
matter what. not sure how the result will look like---better or worse
than the current widow handling?!
alas, looking at your suggestion, how would a \baselineskip of 10.75pt
solve my problem? I understand that this is a linespacing argument
that is scaled by baselinestretch---and I do not want my line spacing
to change.
regards,
/ivo
> in experimenting with raggedbottom, widowpenalty, and clubpenalty, I
> think I have not found a solution that strikes me as particularly
> desirable. I think what I would really like is that widows (i.e.,
> left-over single lines that begin on the following page) are resolved
> not by pushing one extra line from the same paragraph also onto the
> next page, but by stretching the \textheight to allow this one extra
> line at the bottom of the same page.
\def\sloppybottom{%
\def\@textbottom{\vskip \z@ \@plus.0001fil \@minus 15\p@}%
\topskip=1\topskip \@plus10\p@\@minus15\p@%
\def\@texttop{\vskip \z@ \@plus-10\p@\@minus-15\p@}% negate \topskip
}
--
Donald Arseneau as...@triumf.ca
don, could this be part of the TeX Faqs of how to deal with widows?
regards,
/iaw
\documentclass[titlepage]{book}
\makeatletter
\def\sloppybottom{%
\def\@textbottom{\vskip \z@ \@plus.0001fil \@minus 15\p@}%
\topskip=1\topskip \@plus10\p@\@minus15\p@%
\def\@texttop{\vskip \z@ \@plus-10\p@\@minus-15\p@}% negate \topskip
}
\sloppybottom
\makeatother
\begin{document}
\begin{titlepage}
this is page 1
\end{titlepage}
\end{document}
don, could I beg you for an explanation thereof? this way, I may be
able to start with sloppybottom later where it will not inadvertently
do something I do not want it to do.
regards,
/iaw
> ahem...I spoke too soon. when \sloppybottom is invoked at the
> beginning of my book documentclass, it inserts blank double pages at
> places I do not understand:
>
> \def\sloppybottom{%
> \def\@textbottom{\vskip \z@ \@plus.0001fil \@minus 15\p@}%
> \topskip=1\topskip \@plus10\p@\@minus15\p@%
> \def\@texttop{\vskip \z@ \@plus-10\p@\@minus-15\p@}% negate \topskip
> }
The problem is in \@doclearpage, which starts by splitting off zero-height.
This fails miserably if some page contents can shrink to zero size, as
this \topskip can.
The shrink on \topskip here is the amount that the page may grow at the
bottom, so less than 10 pt (default \topskip) is certainly not useful
for widow handling. You will have to increase the natural size of
\topskip to marginally larger than its "minus" component.
--
Donald Arseneau as...@triumf.ca
The fine tuning of the final stages of preparing a published book is
going to involve a certain amount of visual formatting, no matter how
many things TeX does automatically. My book had about 900 pages, and I
fine tuned in this way about 30 of them. But even The LaTeX Companion
had to be fine tuned in just this way.
These are useful commands:
\newcommand{\longpage}{\enlargethispage{\baselineskip}}
\newcommand{\shortpage}{\enlargethispage{-\baselineskip}}
Remember that you have to apply them to both sides of a spread (to the
verso of one page and the recto of the following page), so that the
page will appear symmetrical.
John Burt
regards,
/iaw