[texhax] Stretchable line skip in scrartcl?

Aleksandar Zec zealeksanman at gmail.com
Wed May 17 21:13:38 CEST 2017


Hi all,

I have successfully used many times this method, provided by Heiko
Oberdiek, to stretch line skip in cases of emergency:
http://tug.org/pipermail/texhax/2010-October/015736.html

\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

However, it doesn't work with koma classes, say scrartcl. More
precisely, \@plus or \@minus values get ignored. If I put, for
example,

\advance\@tempskipa by 10pt\@plus 1pt\relax

line stretch increases. But

\advance\@tempskipa by 0pt\@plus 10pt\relax

gives nothing.

Can someone explain this behaviour?

The tex source useful for testing can be found later in the same thread:
http://tug.org/pipermail/texhax/2010-October/015740.html

Many thanks in advance.
Alex


More information about the texhax mailing list