From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40941 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: problem with columns and TABLE Date: Thu, 8 May 2008 08:25:59 +0200 Message-ID: <115224fb0805072325p515bf1a1t719efe6fdb2c8ff3@mail.gmail.com> References: <20080503190416.GA16488@gaston.couberia.bzh> <115224fb0805042348q419fbf4asa97166d6c13c0f2b@mail.gmail.com> <20080508052328.GA21314@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1210228073 16228 80.91.229.12 (8 May 2008 06:27:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 May 2008 06:27:53 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu May 08 08:28:28 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Jtzc0-0001Hd-3I for gctc-ntg-context-518@m.gmane.org; Thu, 08 May 2008 08:28:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2F1F01FCC6; Thu, 8 May 2008 08:27:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23290-01-2; Thu, 8 May 2008 08:26:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1203C1FC87; Thu, 8 May 2008 08:26:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C81301FC87 for ; Thu, 8 May 2008 08:26:38 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20747-04-19 for ; Thu, 8 May 2008 08:26:04 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.154]) by ronja.ntg.nl (Postfix) with ESMTP id 8AD4B1FC7C for ; Thu, 8 May 2008 08:26:04 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so572856ywm.74 for ; Wed, 07 May 2008 23:25:59 -0700 (PDT) Original-Received: by 10.150.57.1 with SMTP id f1mr3032195yba.77.1210227959357; Wed, 07 May 2008 23:25:59 -0700 (PDT) Original-Received: by 10.150.96.3 with HTTP; Wed, 7 May 2008 23:25:59 -0700 (PDT) In-Reply-To: <20080508052328.GA21314@gaston.couberia.bzh> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:40941 Archived-At: On Thu, May 8, 2008 at 7:23 AM, Peter M=FCnster 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 textheigh= t. > > > > \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 sta= rt io the first column. Hard to tell if a general solution is possible, we have to many different c= ases 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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________