ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* natural table splitting problems
       [not found] <mailman.3218.1193768985.2346.ntg-context@ntg.nl>
@ 2007-10-30 19:26 ` Santy, Michael
  2007-10-31 12:23   ` Peter Rolf
  2007-10-30 21:20 ` itemize and math Wolfgang Werners-Lucchini
  1 sibling, 1 reply; 15+ messages in thread
From: Santy, Michael @ 2007-10-30 19:26 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 4748 bytes --]


> The same as in my first reply. Look at the first page with the text
> only. There isn't a space behind the sentence(s) and TeX can't break the
> paragraph (text expands it's lower border). This also breaks the
> splitting of the table, as it is (partly) on the same page.

Peter, all of the information that you've sent me has been very educational, but I think you may be focusing too much on the approach that I've used to illustrate the errant table splitting behavior.  The example below also illustrates this behavior and does not extend the text below its lower border as did the previous example.  

This is of course a contrived example -- I unfortunately cannot post a real example.  You can slightly change the layout and the problem will going away (for this particular document).  The problem is that my ConTeXt rendering layer has to process arbitrary XML input and this very same behavior pops up in documents regardless of the layout.  Making adjustments to the layout, font size, etc will just change where the problem manifests itself.  It is still possible that I'm doing something wrong, but my gut tells me that it is a bug in the context natural table splitting code.

\setuppapersize[letter][letter]

\setuplayout[textwidth=6.5in,
             width=middle,
             height=middle,
             footer=3\bodyfontsize,
             footerdistance=\bodyfontsize,
             header=0pt,
             headerdistance=0pt,
             top=\bodyfontsize,
             topdistance=\bodyfontsize,
             topspace=0.8in,
             bottom=\bodyfontsize,
             bottomdistance=0.5\bodyfontsize,
             bottomspace=0.8in,
             location=middle]

\showframe

\usetypescript[times][ec]
\setupbodyfont[times,13pt]

\setupwhitespace[big]

\starttext

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

\placetable[split]{Broken Split Table}{%
\bTABLE[split=repeat]
\bTABLEhead
\bTR  
\bTH Header A \eTH 
\bTH Header B \eTH 
\eTR 
\eTABLEhead
\bTABLEbody
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\eTABLEbody
\eTABLE
} 

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 6691 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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] 15+ messages in thread

* Re: itemize and math
       [not found] <mailman.3218.1193768985.2346.ntg-context@ntg.nl>
  2007-10-30 19:26 ` natural table splitting problems Santy, Michael
@ 2007-10-30 21:20 ` Wolfgang Werners-Lucchini
  2007-10-30 21:56   ` Aditya Mahajan
  1 sibling, 1 reply; 15+ messages in thread
From: Wolfgang Werners-Lucchini @ 2007-10-30 21:20 UTC (permalink / raw)
  To: ntg-context

> > > I have a problem with
> > > >
> > > > \startitemize[columns,a]
> > > > \item $a_n=2+\frac{1}{n+1}$
> > > > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> > > > \stopitemize
> > > >
> >
> > > Hi,
> > >
> > > this did not wotk because the second formula is than the first
> and
> > -------------------------------------------------^ (what?)
> >
> > > the multicolumn OTR tries to put half or less of the text into
> the
> > > second column, you can now force a second column with the
> \column
> > > command after the first line or you switch both
> > > formulas and the OTR can make two columns.
> > >
> > > \starttext
> > >
> > > \startitemize[columns,a]
> > > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> > > \item $a_n=2+\frac{1}{n+1}$
> > > \stopitemize
> >
> > Why is this working? Here the first column is as big as the
> second
> > above (same formula), so the same problem should arise with the
> first
> > column as above with the second?
> 
> 
> No, they are not, the first row (column) is 1 points taller than the
> second
> one, you can test this with TeX.
> 
> \starttext
> 
> \setbox\scratchbox\hbox{$a_n=\frac{(-1)^n}{\sqrt{n}}-3$}
> 
> Formula 1: \copy\scratchbox
> 
> Height of formula 1: \the\ht\scratchbox
> 
> \setbox\scratchbox\hbox{$a_n=2+\frac{1}{n+1}$}
> 
> Formula 2: \copy\scratchbox
> 
> Height of formula 2: \the\ht\scratchbox

Ahhh! The HEIGHT (not the width) ist the problem!?

So:

\startcolumns
\dontleavehmode
\vphantom{$a_n=\frac{(-1)^n}{\sqrt{n}}-3$}$a_n=2+\frac{1}{n+1}$%

$a_n=\frac{(-1)^n}{\sqrt{n}}-3$
\stopcolumns

works too.

Is there something like an \mathstrut macro? (I know, that there 
exists a macro with this name, but that uses ')' as height.)

 
> I hope my examples helped you a little bit to understand the
> problems in your example and why my methods worked.
> 
> Wolfgang

Hope, I have it!

Thank you,

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] 15+ messages in thread

* Re: itemize and math
  2007-10-30 21:20 ` itemize and math Wolfgang Werners-Lucchini
@ 2007-10-30 21:56   ` Aditya Mahajan
  0 siblings, 0 replies; 15+ messages in thread
From: Aditya Mahajan @ 2007-10-30 21:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 30 Oct 2007, Wolfgang Werners-Lucchini wrote:

> Is there something like an \mathstrut macro? (I know, that there
> exists a macro with this name, but that uses ')' as height.)

For single line math, the height of ) is sufficient. If you want larger 
heights you can do

\def\bigmathstrut{\vphantom{\big)}} (replace \big by \bigg, \Big, to suit 
your need). If you really want something big you can try

\def\bigmathstrut{\vphantom{\frac{\displaystyle\sum_{(}^{)}}{\displaystyle\sum_{)}^{(}}}

Usually things do not grow bigger than this.

Aditya
___________________________________________________________________________________
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] 15+ messages in thread

* Re: natural table splitting problems
  2007-10-30 19:26 ` natural table splitting problems Santy, Michael
@ 2007-10-31 12:23   ` Peter Rolf
  2007-10-31 13:31     ` Peter Rolf
  0 siblings, 1 reply; 15+ messages in thread
From: Peter Rolf @ 2007-10-31 12:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Santy, Michael schrieb:
> 
>> The same as in my first reply. Look at the first page with the text
>> only. There isn't a space behind the sentence(s) and TeX can't break the
>> paragraph (text expands it's lower border). This also breaks the
>> splitting of the table, as it is (partly) on the same page.
> 
> Peter, all of the information that you've sent me has been very
> educational, but I think you may be focusing too much on the approach

maybe, but it's the only thing i had :)

> that I've used to illustrate the errant table splitting behavior.  The
> example below also illustrates this behavior and does not extend the
> text below its lower border as did the previous example. 
>
confirmed

page 1 : text
page 2 : header with one row
page 3 : header with rest of table

and this time i have no explanation.

> This is of course a contrived example -- I unfortunately cannot post a
> real example.  You can slightly change the layout and the problem will
> going away (for this particular document).  The problem is that my
> ConTeXt rendering layer has to process arbitrary XML input and this very
> same behavior pops up in documents regardless of the layout.  Making
> adjustments to the layout, font size, etc will just change where the
> problem manifests itself.  It is still possible that I'm doing something
> wrong, but my gut tells me that it is a bug in the context natural table
> splitting code.
> 
i have looked into your source and the only thing that was irritating to
me is that fact, that you use 'split' twice.

> \placetable[split]{Broken Split Table}{%
> \bTABLE[split=repeat]

the second one looks ok for me, but the first one is fishy. i have
looked into the definition of \placefloat and there is no option 'split'.


\placefloat[...][ref,ref,...]{...}{...}

[...]              left right here top bottom inleft inright inmargin
margin leftmargin
                   rightmargin leftedge rightedge innermargin
outermargin inneredge outeredge
                   inner outer line high low fit page opposite always
force tall reset line
                   height depth
[ref,ref,...]
{...}              <text>
{...}              <text>


it can be seen as ref(erence), but the funny thing is, that the problems
vanished, if i delete the '[split]' after placetable or complete it to
'[here] [split]' (split as reference).

give it a try (and ask hans about the why). ;)


best wishes, peter


> \setuppapersize[letter][letter]
> 
> \setuplayout[textwidth=6.5in,
>              width=middle,
>              height=middle,
>              footer=3\bodyfontsize,
>              footerdistance=\bodyfontsize,
>              header=0pt,
>              headerdistance=0pt,
>              top=\bodyfontsize,
>              topdistance=\bodyfontsize,
>              topspace=0.8in,
>              bottom=\bodyfontsize,
>              bottomdistance=0.5\bodyfontsize,
>              bottomspace=0.8in,
>              location=middle]
> 
> \showframe
> 
> \usetypescript[times][ec]
> \setupbodyfont[times,13pt]
> 
> \setupwhitespace[big]
> 
> \starttext
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> \placetable[split]{Broken Split Table}{%
> \bTABLE[split=repeat]
> \bTABLEhead
> \bTR 
> \bTH Header A \eTH
> \bTH Header B \eTH
> \eTR
> \eTABLEhead
> \bTABLEbody
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \eTABLEbody
> \eTABLE
> }
> 
> \stoptext
> 
> 
> ------------------------------------------------------------------------
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 15+ messages in thread

* Re: natural table splitting problems
  2007-10-31 12:23   ` Peter Rolf
@ 2007-10-31 13:31     ` Peter Rolf
  2007-10-31 13:47       ` Santy, Michael
  2007-10-31 16:34       ` Hans Hagen
  0 siblings, 2 replies; 15+ messages in thread
From: Peter Rolf @ 2007-10-31 13:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

...just some further tests. i was wrong, as there is no table breaking
without the \placetable[split] option. seems my command reference is
outdated :(

if you don't use \placetable at all, things work again. so there must be
some vspace mess with the splitting option of placetable and the one of
TABLE.
adding \blank[line,medium,force] or some other forced blank in front of
the table should help to get the correct offset to the text.

what a mess...

peter
___________________________________________________________________________________
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] 15+ messages in thread

* Re: natural table splitting problems
  2007-10-31 13:31     ` Peter Rolf
@ 2007-10-31 13:47       ` Santy, Michael
  2007-10-31 16:04         ` Peter Rolf
  2007-10-31 16:34       ` Hans Hagen
  1 sibling, 1 reply; 15+ messages in thread
From: Santy, Michael @ 2007-10-31 13:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3879 bytes --]


Peter,

There definitely seems to be something wrong with the splitting behavior, but I'm able to illustrate the same problem regardless of whether its wrapped in a \placetable (see example below).  From my experiments, wrapping a table in placetable didn't seem to fix the broken tables or break the correctly split tables.

Cheers,
Mike

\setuppapersize[letter][letter]

\setuplayout[textwidth=6.5in,
             width=middle,
             height=middle,
             footer=3\bodyfontsize,
             footerdistance=\bodyfontsize,
             header=0pt,
             headerdistance=0pt,
             top=\bodyfontsize,
             topdistance=\bodyfontsize,
             topspace=0.8in,
             bottom=\bodyfontsize,
             bottomdistance=0.5\bodyfontsize,
             bottomspace=0.8in,
             location=middle]

\showframe

\usetypescript[times][ec]
\setupbodyfont[times,13pt]

\setupwhitespace[big]

\starttext

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

\blank[line,medium,force]

\bTABLE[split=repeat]
\bTABLEhead
\bTR  
\bTH Header A \eTH 
\bTH Header B \eTH 
\eTR 
\eTABLEhead
\bTABLEbody
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\eTABLEbody
\eTABLE

\stoptext


[-- Attachment #1.2: Type: text/html, Size: 5793 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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] 15+ messages in thread

* Re: natural table splitting problems
  2007-10-31 13:47       ` Santy, Michael
@ 2007-10-31 16:04         ` Peter Rolf
  2007-10-31 17:57           ` Santy, Michael
  0 siblings, 1 reply; 15+ messages in thread
From: Peter Rolf @ 2007-10-31 16:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Santy, Michael schrieb:
> 
> Peter,
> 
> There definitely seems to be something wrong with the splitting
> behavior, but I'm able to illustrate the same problem regardless of
> whether its wrapped in a \placetable (see example below).  From my
> experiments, wrapping a table in placetable didn't seem to fix the
> broken tables or break the correctly split tables.
>
hi mike,

indeed not a nice break, but the table is at least split correctly here.

what is missing is the right space ajustment in front of the table and
the caption. try it without the 'forced' in blank (i used it, as the
blank was eaten up otherwise). i know that this is still no satisfying
solution.

have you tried this with your 'real world' documents?

cheers, peter

> Cheers,
> Mike
> 
> \setuppapersize[letter][letter]
> 
> \setuplayout[textwidth=6.5in,
>              width=middle,
>              height=middle,
>              footer=3\bodyfontsize,
>              footerdistance=\bodyfontsize,
>              header=0pt,
>              headerdistance=0pt,
>              top=\bodyfontsize,
>              topdistance=\bodyfontsize,
>              topspace=0.8in,
>              bottom=\bodyfontsize,
>              bottomdistance=0.5\bodyfontsize,
>              bottomspace=0.8in,
>              location=middle]
> 
> \showframe
> 
> \usetypescript[times][ec]
> \setupbodyfont[times,13pt]
> 
> \setupwhitespace[big]
> 
> \starttext
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> Now is the time for all good men to come to the aid of their country.
> 
> \blank[line,medium,force]
> 
> \bTABLE[split=repeat]
> \bTABLEhead
> \bTR 
> \bTH Header A \eTH
> \bTH Header B \eTH
> \eTR
> \eTABLEhead
> \bTABLEbody
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \bTR
> \bTC A \eTC
> \bTC B \eTC
> \eTR
> \eTABLEbody
> \eTABLE
> 
> \stoptext
> 
> 
> ------------------------------------------------------------------------
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 15+ messages in thread

* Re: natural table splitting problems
  2007-10-31 13:31     ` Peter Rolf
  2007-10-31 13:47       ` Santy, Michael
@ 2007-10-31 16:34       ` Hans Hagen
  1 sibling, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2007-10-31 16:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Peter Rolf wrote:
> ....just some further tests. i was wrong, as there is no table breaking
> without the \placetable[split] option. seems my command reference is
> outdated :(
> 
> if you don't use \placetable at all, things work again. so there must be
> some vspace mess with the splitting option of placetable and the one of
> TABLE.
> adding \blank[line,medium,force] or some other forced blank in front of
> the table should help to get the correct offset to the text.
> 
> what a mess...

as said ... the problem is that we need to know what place is available 
and there is no robust way to determine this ... esp when we're around a 
potential pagebreak

i can look into it when i have enough examples (a bit busy now so i 
cannot give it priority)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: natural table splitting problems
  2007-10-31 16:04         ` Peter Rolf
@ 2007-10-31 17:57           ` Santy, Michael
  2007-10-31 18:34             ` Hans Hagen
  0 siblings, 1 reply; 15+ messages in thread
From: Santy, Michael @ 2007-10-31 17:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 542 bytes --]


> have you tried this with your 'real world' documents?

Peter,

Although adding the \blank didn't fix the table splitting on this contrived document, it actually seems to fix the problem on the few "real world" documents that have shown this behavior.  Although some of the breaks are still not ideal, they are not blatantly wrong.  It bothers me that I don't understand why this fix works, but it works in the meantime.

I really appreciate all of your assistance.  Hopefully this issue will be revisited in MKIV.

Cheers,
Mike

[-- Attachment #1.2: Type: text/html, Size: 1001 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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] 15+ messages in thread

* Re: natural table splitting problems
  2007-10-31 17:57           ` Santy, Michael
@ 2007-10-31 18:34             ` Hans Hagen
  2007-10-31 18:46               ` Peter Rolf
  0 siblings, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2007-10-31 18:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Santy, Michael wrote:
>> have you tried this with your 'real world' documents?
> 
> Peter,
> 
> Although adding the \blank didn't fix the table splitting on this contrived document, it actually seems to fix the problem on the few "real world" documents that have shown this behavior.  Although some of the breaks are still not ideal, they are not blatantly wrong.  It bothers me that I don't understand why this fix works, but it works in the meantime.

what happens if you add add \testpage[4] before a bTABLE?

> I really appreciate all of your assistance.  Hopefully this issue will be revisited in MKIV.
> 
> Cheers,
> Mike
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: natural table splitting problems
  2007-10-31 18:34             ` Hans Hagen
@ 2007-10-31 18:46               ` Peter Rolf
  0 siblings, 0 replies; 15+ messages in thread
From: Peter Rolf @ 2007-10-31 18:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans Hagen schrieb:
> Santy, Michael wrote:
>>> have you tried this with your 'real world' documents?
>> Peter,
>>
>> Although adding the \blank didn't fix the table splitting on this contrived document, it actually seems to fix the problem on the few "real world" documents that have shown this behavior.  Although some of the breaks are still not ideal, they are not blatantly wrong.  It bothers me that I don't understand why this fix works, but it works in the meantime.
> 
> what happens if you add add \testpage[4] before a bTABLE?
>
i already tried that (also with 4) :)

sadly it has no influence.

>> I really appreciate all of your assistance.  Hopefully this issue will be revisited in MKIV.
>>
>> Cheers,
>> Mike
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> ___________________________________________________________________________________
>> 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
>> ___________________________________________________________________________________
> 
> 

___________________________________________________________________________________
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] 15+ messages in thread

* Re: itemize and math
  2007-10-30 11:11 ` Wolfgang Werners-Lucchini
@ 2007-10-30 14:19   ` Wolfgang Schuster
  0 siblings, 0 replies; 15+ messages in thread
From: Wolfgang Schuster @ 2007-10-30 14:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2172 bytes --]

2007/10/30, Wolfgang Werners-Lucchini <wwl@musensturm.de>:
>
> Sorry, I don't understand what the problem is!


It is related to ConTeXt's multicolumn Output Routine.

> > I have a problem with
> > >
> > > \startitemize[columns,a]
> > > \item $a_n=2+\frac{1}{n+1}$
> > > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> > > \stopitemize
> > >
>
> > Hi,
> >
> > this did not wotk because the second formula is than the first and
> -------------------------------------------------^ (what?)
>
> > the multicolumn OTR tries to put half or less of the text into the
> > second column, you can now force a second column with the \column
> > command after the first line or you switch both
> > formulas and the OTR can make two columns.
> >
> > \starttext
> >
> > \startitemize[columns,a]
> > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> > \item $a_n=2+\frac{1}{n+1}$
> > \stopitemize
>
> Why is this working? Here the first column is as big as the second
> above (same formula), so the same problem should arise with the first
> column as above with the second?


No, they are not, the first row (column) is 1 points taller than the second
one, you can test this with TeX.

\starttext

\setbox\scratchbox\hbox{$a_n=\frac{(-1)^n}{\sqrt{n}}-3$}

Formula 1: \copy\scratchbox

Height of formula 1: \the\ht\scratchbox

\setbox\scratchbox\hbox{$a_n=2+\frac{1}{n+1}$}

Formula 2: \copy\scratchbox

Height of formula 2: \the\ht\scratchbox

\stoptext

> \startitemize[columns,a]
> > \item $a_n=2+\frac{1}{n+1}$ \column
> > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> > \stopitemize
>
> Why does the \column help with the first formula?


Because  itemize use for the columns key the  multicolumns envrionment
where you can force a new column with the \column command.

The internal work for this case is something like in the following example:

\starttext

\startcolumns
$a_n=\frac{(-1)^n}{\sqrt{n}}-3$

$a_n=2+\frac{1}{n+1}$
\stopcolumns

\startcolumns
$a_n=2+\frac{1}{n+1}$ \column

$a_n=\frac{(-1)^n}{\sqrt{n}}-3$
\stopcolumns

\stoptext

No, I don't understand this at all.


I hope my examples helped you a little bit to understand the problems
in your example and why my methods worked.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3190 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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] 15+ messages in thread

* Re: itemize and math
       [not found] <mailman.3198.1193699581.2346.ntg-context@ntg.nl>
@ 2007-10-30 11:11 ` Wolfgang Werners-Lucchini
  2007-10-30 14:19   ` Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Werners-Lucchini @ 2007-10-30 11:11 UTC (permalink / raw)
  To: ntg-context

Sorry, I don't understand what the problem is!


> > I have a problem with
> >
> > \startitemize[columns,a]
> > \item $a_n=2+\frac{1}{n+1}$
> > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> > \stopitemize
> >


> Hi,
> 
> this did not wotk because the second formula is than the first and
-------------------------------------------------^ (what?)

> the multicolumn OTR tries to put half or less of the text into the 
> second column, you can now force a second column with the \column 
> command after the first line or you switch both
> formulas and the OTR can make two columns.
> 
> \starttext
> 
> \startitemize[columns,a]
> \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> \item $a_n=2+\frac{1}{n+1}$
> \stopitemize

Why is this working? Here the first column is as big as the second 
above (same formula), so the same problem should arise with the first 
column as above with the second?

> \startitemize[columns,a]
> \item $a_n=2+\frac{1}{n+1}$ \column
> \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> \stopitemize

Why does the \column help with the first formula?

No, I don't understand this at all.

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] 15+ messages in thread

* Re: itemize and math
  2007-10-29 10:43 Wolfgang Werners-Lucchini
@ 2007-10-29 11:52 ` Wolfgang Schuster
  0 siblings, 0 replies; 15+ messages in thread
From: Wolfgang Schuster @ 2007-10-29 11:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 906 bytes --]

2007/10/29, Wolfgang Werners-Lucchini <wwl@musensturm.de>:
>
> Hallo,
>
> I have a problem with
>
> \startitemize[columns,a]
> \item $a_n=2+\frac{1}{n+1}$
> \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> \stopitemize
>
> which is NOT in columns.
>
> \startitemize[columns,a]
> \item one
> \item two
> \stopitemize
>
> works!
>
> How can I solve this?
>
> Wolfgang


Hi,

this did not wotk because the second formula is than the first and the
multicolumn
OTR tries to put half or less of the text into the second column, you can
now force
a second column with the \column command after the first line or you switch
both
formulas and the OTR can make two columns.

\starttext

\startitemize[columns,a]
\item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
\item $a_n=2+\frac{1}{n+1}$
\stopitemize

\startitemize[columns,a]
\item $a_n=2+\frac{1}{n+1}$ \column
\item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
\stopitemize

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1259 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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] 15+ messages in thread

* itemize and math
@ 2007-10-29 10:43 Wolfgang Werners-Lucchini
  2007-10-29 11:52 ` Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Werners-Lucchini @ 2007-10-29 10:43 UTC (permalink / raw)
  To: ntg-context

Hallo,

I have a problem with

\startitemize[columns,a]
\item $a_n=2+\frac{1}{n+1}$
\item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
\stopitemize

which is NOT in columns.

\startitemize[columns,a]
\item one
\item two
\stopitemize

works!

How can I solve this?

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] 15+ messages in thread

end of thread, other threads:[~2007-10-31 18:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.3218.1193768985.2346.ntg-context@ntg.nl>
2007-10-30 19:26 ` natural table splitting problems Santy, Michael
2007-10-31 12:23   ` Peter Rolf
2007-10-31 13:31     ` Peter Rolf
2007-10-31 13:47       ` Santy, Michael
2007-10-31 16:04         ` Peter Rolf
2007-10-31 17:57           ` Santy, Michael
2007-10-31 18:34             ` Hans Hagen
2007-10-31 18:46               ` Peter Rolf
2007-10-31 16:34       ` Hans Hagen
2007-10-30 21:20 ` itemize and math Wolfgang Werners-Lucchini
2007-10-30 21:56   ` Aditya Mahajan
     [not found] <mailman.3198.1193699581.2346.ntg-context@ntg.nl>
2007-10-30 11:11 ` Wolfgang Werners-Lucchini
2007-10-30 14:19   ` Wolfgang Schuster
2007-10-29 10:43 Wolfgang Werners-Lucchini
2007-10-29 11:52 ` 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).