ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
	Bruce Horrocks <ntg@scorecrow.com>
Subject: Re: Problem with \vfill in extreme table
Date: Sun, 17 May 2020 21:56:14 +0200	[thread overview]
Message-ID: <edc071b7-2f83-ec3e-17c2-a7d80307b17d@xs4all.nl> (raw)
In-Reply-To: <f147c750-eaee-a101-7677-dd0a206ccd7b@gmail.com>

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2020-05-17 19:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15 22:47 Custom list layout with PDF bookmarks Bruce Horrocks
2020-05-16  6:15 ` Henning Hraban Ramm
2020-05-16  6:30 ` Wolfgang Schuster
2020-05-16 11:02   ` Henning Hraban Ramm
2020-05-17 11:38     ` Bruce Horrocks
2020-05-17 19:40       ` Henning Hraban Ramm
2020-05-17 11:47     ` Problem with \vfill in extreme table Bruce Horrocks
2020-05-17 15:00       ` Wolfgang Schuster
2020-05-17 19:56         ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=edc071b7-2f83-ec3e-17c2-a7d80307b17d@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    --cc=ntg@scorecrow.com \
    --cc=wolfgang.schuster.lists@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).