[texhax] Stretchable \baselineskip, per-page?
Heiko Oberdiek
heiko.oberdiek at googlemail.com
Thu Oct 7 10:00:52 CEST 2010
On Thu, Oct 07, 2010 at 05:22:57AM +0200, Uwe Lueck wrote:
> "Aleksandar Zec" <zealeksanman at gmail.com>, 07.10.2010 01:08:20:
> > I have a book with plain text and footnotes, with \parskip=0pt.
> >
> > A simple question: is it possible to have something like "stretchable
> > \baselineskip" for normaltext? I.e. can I instruct LaTeX to always
> > vertically stretch all normal lines that appear on a given page, in
> > order to eliminate any white space (at the bottom of the page or
> > before footnotes block)?
>
> 2. However, \baselineskip is reset with every \normalsize.
> bk12.clo, e.g., has
> \renewcommand\normalsize{%
> \@setfontsize\normalsize\@xiipt{14.5}%
> ...
>
> copy the entire definition between \makeatletter ... \makeatother
> and replace {14.5} by {14.5 \@plus 1pt}
Or \set at fontsize could be overloaded for this, e.g.:
\makeatletter
\let\org at set@fontsize\set at fontsize
\def\set at fontsize#1#2#3{%
\@defaultunits\@tempskipa#3pt\relax\@nnil
% \advance\@tempskipa by 0pt\@plus 1pt\relax
\advance\@tempskipa by 0pt\@plus .2\@tempskipa\relax
\expandafter\set at fontsize@i\the\@tempskipa\@nil{#1}{#2}%
}
\def\set at fontsize@i#1\@nil#2#3{%
\org at set@fontsize{#2}{#3}{#1}%
}
\makeatother
Yours sincerely
Heiko Oberdiek
More information about the texhax
mailing list