ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* problem with columns and TABLE
@ 2008-05-03 19:04 Peter Münster
  2008-05-05  6:48 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2008-05-03 19:04 UTC (permalink / raw)
  To: ConTeXt list

Hello,

In the following example, the bottom of the table is outside the page. How
could this be solved?

\starttext
\input tufte
\startcolumns[2]
\bTABLE[split=yes]
\dorecurse{50}{\bTR\bTD bla\eTD\eTR}
\eTABLE
\stopcolumns
\stoptext

TIA for any help!
Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with columns and TABLE
  2008-05-03 19:04 problem with columns and TABLE Peter Münster
@ 2008-05-05  6:48 ` Wolfgang Schuster
  2008-05-08  5:23   ` Peter Münster
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2008-05-05  6:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, May 3, 2008 at 9:04 PM, Peter Münster <pmlists@free.fr> wrote:
> Hello,
>
> In the following example, the bottom of the table is outside the page. How
> could this be solved?
>
> \starttext
> \input tufte
> \startcolumns[2]
               ^^^
               n=2

> \bTABLE[split=yes]
> \dorecurse{50}{\bTR\bTD bla\eTD\eTR}
> \eTABLE
> \stopcolumns
> \stoptext

Hi Peter,

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.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with columns and TABLE
  2008-05-05  6:48 ` Wolfgang Schuster
@ 2008-05-08  5:23   ` Peter Münster
  2008-05-08  6:25     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2008-05-08  5:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with columns and TABLE
  2008-05-08  5:23   ` Peter Münster
@ 2008-05-08  6:25     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2008-05-08  6:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-08  6:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-03 19:04 problem with columns and TABLE 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 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).