Hi everyone,
I’ve recently asked this question:
https://www.mail-archive.com/ntg-context@ntg.nl/msg98293.html
To reiterate: Is there any way to add a \vfill on a page immediately before a
section heading?
On the mailing list I then found a possible solution :
\setuphead[section][aftersection=cmd]
So, I thought \testpage or \checkpage here could be a solution.
However, the vertical stretching algorithm seems to interfere with \testpage in some way as the example below tries to illustrate.
Can anyone confirm this? Is this a bug or am I missing something?
========================
\setuppapersize[A5][A5]
% Activate this and \testpage stops working
%\setupalign[height]
%\setuptolerance[vertical,stretch]
%\setupinterlinespace[
% stretch=0.001,
% shrink=0.001,
% ]
%
\showframe
\starttext
\section{Section}
\input knuth\par
\input knuth\par
\input knuth\par
\input ward
\input ward
\testpage[20] % This stops working as soon as vertical stretching is active
\input ward
\section{Section}
\input knuth\par
\stoptext
========================
Best,
Denis