ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: problem with columns and TABLE
Date: Thu, 8 May 2008 08:25:59 +0200	[thread overview]
Message-ID: <115224fb0805072325p515bf1a1t719efe6fdb2c8ff3@mail.gmail.com> (raw)
In-Reply-To: <20080508052328.GA21314@gaston.couberia.bzh>

On Thu, May 8, 2008 at 7:23 AM, Peter Münster <pmlists@free.fr> wrote:
> On Mon, May 05 2008, Wolfgang Schuster wrote:
>
> > this is not possible with the TABLE and table environments because of a
> > switch in core-tsp, table are always splittet to the complete textheight.
> >
> > \ifinsidecolumns
> >   % brrr, assumes empty columns
> >   \global\setfalse\splitfloatfirstdone
> >   \scratchdimen\textheight % <-- fixed height
> >   \!!donectrue
> > \else
> >
> > You could try to use tabuate if possible because this did work also in
> > column mode.
>
> Hello Wolfgang,
>
> Unfortunately, I need the TABLE environment for several reasons. Do you
> think, that it would be possible to replace the \textheight by the
> remaining height of the page?

I replaced just \scratchdimen\textheight in the code fragment above with
\scratchdimen\dimexpr\textheight-\savedpagetotal\relax and this did work
in your example as long as the table fit on the current page and it did start
io the first column.

Hard to tell if a general solution is possible, we have to many different cases
for the tabe, it could be longer than one page and the values have changed
or you could have text in the column before the table and the length in the
first and the second column need to be different etc.

You could also not only rely on TeX's \pagegoal and \pagetotal parameters
because we're working with virtual pages and split the page at the end in
 two or more parts ...

Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      reply	other threads:[~2008-05-08  6:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-03 19:04 Peter Münster
2008-05-05  6:48 ` Wolfgang Schuster
2008-05-08  5:23   ` Peter Münster
2008-05-08  6:25     ` Wolfgang Schuster [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=115224fb0805072325p515bf1a1t719efe6fdb2c8ff3@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /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).