[texhax] Equivalent of CSS "collapsing margins"?

Oleg Katsitadze olegkat at gmail.com
Thu Oct 25 13:55:34 CEST 2007


On Thu, Oct 25, 2007 at 11:29:22AM +0100, Edsko de Vries wrote:
> Is there any way to collapse adjoining \vspace commands?

Sorry, don't know the LaTeX way, but TeX has the \lastskip primitive.
E.g., plain.tex defines the following macro:

  \def\bigbreak{\par\ifdim\lastskip<\bigskipamount
    \removelastskip\penalty-200\bigskip\fi}

HTH,
Oleg


More information about the texhax mailing list