[NTG-context] Problem with \vfill in extreme table

Hans Hagen j.hagen at xs4all.nl
Sun May 17 21:56:14 CEST 2020


On 5/17/2020 5:00 PM, Wolfgang Schuster wrote:
> Bruce Horrocks schrieb am 17.05.2020 um 13:47:
>> If I want the words Top and Bottom at the top and bottom of a page 
>> then "Top \vfill Bottom" works as expected. If I use the same in an 
>> extreme table I get an error and I don't know why.
>>
>> What's the 'official' way to align top and bottom in an xrow?
>>
>> %%%% MWE
>> \setuppapersize [A4] [A4]
>> \starttext
>> \startxtable[width=\textwidth]
>>    \startxrow[height=150mm]
>>      \startxcell[align=middle]
>>        Top
>>        \vfill
>>        Bottom
>>      \stopxcell
>>    \stopxrow
>> \stopxtable
>> \stoptext
>> %%%%
> 
> It's not a real fix but you can you exclude the \vfill command
> when ConTeXt does its cell calculations.
> 
> \starttext
> 
> \startxtable[align=middle,width=\textwidth,height=15cm]
>    \startxrow
>      \startxcell
>        Top
>        \doifnotmode{*trialtypesetting}{\vfill}
>        Bottom
>      \stopxcell
>    \stopxrow
> \stopxtable
> 
> \stoptext
Neat!

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list