# [NTG-context] vertical stretch problem

Peter Münster pmlists at free.fr
Sun Jan 8 20:12:36 CET 2006

On Sun, 8 Jan 2006, Taco Hoekwater wrote:

> You can fix the sections by
>
>    \setupalign[line]
>    \setuphead[chapter][before={\hbox{}\blank[2*line]\vfill}]
>    \setuphead[section][before={\blank[2*line]\vfil}]
>
> But I wouldn't call that a true solution. Better (perhaps) is:
>
>    \scratchskip 0pt plus 1 fill
>    \advance\topskip\scratchskip

Thanks Taco!
The normal setup for section header is before=\blank[2*big] and
after=\blank
I wonder, why "\blank" is stretching, but not \blank[2*big]... ?

With LaTeX, I had really good experience: all vertical spaces stretch in
the right proportions and a big float alone on a page gets centred.

Now I would like to achieve the same with ConTeXt, but I'm frightened about
spending days to find the right combination of \vfil, \vfill and \vfills
around every head, formula, float, description, paragraph etc etc...

Ok, if there is no easy way, I will try all "before=" and "after="
possibilities.

Or should I better play with \topskip and other such skips (which ones?) ?

Greetings, Peter

--
http://pmrb.free.fr/contact/


More information about the ntg-context mailing list