[NTG-context] The whole (sub)section on a single page

Christopher Creutzig christopher at creutzig.de
Tue Dec 6 23:00:23 CET 2005


Hans Hagen wrote:
> Christopher Creutzig wrote:

>>The standard trick would be not to explicitly check some numbers but to
>>do what in low-level looks like
>>
>>\!!dimena=\ht0\advance\!!dimena\dp0%
>>\penalty10000\vskip\!!dimena\penalty10\vskip-\!!dimena
>>
>>Is there any nice ConTeXt way of doing the above?
>> 
>>
> 
> \testpage[1] % one line, [3] three lines

 Sure, but I'm not asking for n lines, but for a dimension. Oh, if I
read the source correctly, \testpage[0][\dimexpr\dp0+\ht0\relax] should
work, right?


Regards,
	Christopher


More information about the ntg-context mailing list