Re: [NTG-context] natural table splitting problems

2007-10-31 Thread Santy, Michael

Hagen, Hans wrote:
 it's always a problem to determine what's left on a page
 
 \def\blah{The quick brown fox jumped over the lazy stupid dog.}
 \dorecurse{62}{\blah} \synchronizeoutput
 
 this will force the otr but is not always fails safe (i.e. vertical 
 spacing may be messed)
 
 ... one of the reasons why we work on luatex -)
 
 Hans

Hans, 

The \synchronizeoutput seemed to fix this trivial example, but it doesn't 
seem to fix other illustrations of this behavior.  Is the \synchronizeoutput 
something that I should place at the end of every block of content (paras, 
sections, lists, figures, equations, etc.) in order to ensure that tables split 
properly.  If not, is there a general workaround for this table issue that I 
can apply in the meantime while LuaTeX is still in development?  I'm generating 
ConTeXt from XSL, so its very easy to make a system wide change of how the 
content is generated.

By the way, the LuaTeX on live.contextgarden.net seems to be broken 
(FatalError: Your format does not match the base files!)

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
___


Re: [NTG-context] natural table splitting problems

2007-10-31 Thread Peter Rolf
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
 

Re: [NTG-context] natural table splitting problems

2007-10-31 Thread Peter Rolf
...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
___


Re: [NTG-context] natural table splitting problems

2007-10-31 Thread Santy, Michael

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

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


Re: [NTG-context] natural table splitting problems

2007-10-31 Thread Peter Rolf
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!


Re: [NTG-context] natural table splitting problems

2007-10-31 Thread Hans Hagen
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
___


Re: [NTG-context] natural table splitting problems

2007-10-31 Thread Hans Hagen
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
___


Re: [NTG-context] natural table splitting problems

2007-10-31 Thread Peter Rolf
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
___


Re: [NTG-context] natural table splitting problems

2007-10-31 Thread Santy, Michael

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


Re: [NTG-context] natural table splitting problems

2007-10-30 Thread Santy, Michael

Thanks Peter for the pointer to the multipage table in the wiki.  I don't know 
how I overlooked that example.  However, I was still able to duplicate the 
problem with this sample table by including a page full of text before the 
table (see below).  

If the dorecurse is set to 62 or 63, the contents slightly overflow the first 
page text area and only the first row of the table is rendered on the second 
page.  If dorecurse on blah is performed 61 or 64 times, the table is rendered 
properly.

Any thoughts?

Cheers,
Mike

\starttext

\setupcolors[state=start]

\showframe

\def\blah{The quick brown fox jumped over the lazy stupid dog.}
\dorecurse{62}{\blah}

% setup for all cells
\setupTABLE[r][each][style=\tfx\it, align=center]

% setup table head
\setupTABLE[r][first]
  [background=color,
   backgroundcolor=yellow]
% setup table footer
\setupTABLE[r][last]
  [style=bold,
   background=color,
   backgroundcolor=green]

\bTABLE[split=repeat,option=stretch]% head on every page, stretch columns
%
% IMPORTANT: use \bTH ... \eTH to enclose the head|next cells
\bTABLEhead
\bTR
  \bTH  head1 \eTH
  \bTH  head2 \eTH
  \bTH  head3 \eTH
\eTR
\eTABLEhead
% 
\bTABLEnext % setup for next table head
\bTR [background=color,backgroundcolor=cyan]
  \bTH  next1 \eTH
  \bTH  next2 \eTH
  \bTH  next3 \eTH
\eTR
\eTABLEnext
%
% the table body (main part)
%
\bTABLEbody
%
\dorecurse{100}{% 100 rows
\bTR
  \bTC  body body body body body \eTC
  \bTC  body body body body body \eTC
  \bTC  body body body body body \eTC
\eTR
}%
%
\eTABLEbody
%
% the table foot
%
\bTABLEfoot
\bTR
  \bTC  foot1 \eTC
  \bTC  foot2 \eTC
  \bTC  foot3 \eTC
\eTR
\eTABLEfoot
%
\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
___


Re: [NTG-context] natural table splitting problems

2007-10-30 Thread Peter Rolf
Santy, Michael schrieb:
 
 Thanks Peter for the pointer to the multipage table in the wiki.  I
 don't know how I overlooked that example.  However, I was still able to
 duplicate the problem with this sample table by including a page full of
 text before the table (see below). 
 
 If the dorecurse is set to 62 or 63, the contents slightly overflow the
 first page text area and only the first row of the table is rendered on
 the second page.  If dorecurse on blah is performed 61 or 64 times, the
 table is rendered properly.
 
 Any thoughts?

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.

So you should better use the example texts that are shipped with
ConText. Look at your

tex\texmf-local\tex\context\sample

directory for the file names.

For example use something like
\dorecurse{3}{\input knuth\relax}

or a combination

\dorecurse{2}{\input knuth\par
\input zapf\par
\input bryson\par\blank}

If you like you can learn more about TeX's line breaking algorithm, so
that you can create better (working) example texts. Search for
'texbytopic' and you will find an excellent (and free) book about TeX.

Good luck for your further work with ConTeXt,

Peter


 Cheers,
 Mike
 
 \starttext
 
 \setupcolors[state=start]
 
 \showframe
 
 \def\blah{The quick brown fox jumped over the lazy stupid dog.}
 \dorecurse{62}{\blah}
 
 % setup for all cells
 \setupTABLE[r][each][style=\tfx\it, align=center]
 
 % setup table head
 \setupTABLE[r][first]
   [background=color,
backgroundcolor=yellow]
 % setup table footer
 \setupTABLE[r][last]
   [style=bold,
background=color,
backgroundcolor=green]
 
 \bTABLE[split=repeat,option=stretch]% head on every page, stretch columns
 %
 % IMPORTANT: use \bTH ... \eTH to enclose the head|next cells
 \bTABLEhead
 \bTR
   \bTH  head1 \eTH
   \bTH  head2 \eTH
   \bTH  head3 \eTH
 \eTR
 \eTABLEhead
 %
 \bTABLEnext % setup for next table head
 \bTR [background=color,backgroundcolor=cyan]
   \bTH  next1 \eTH
   \bTH  next2 \eTH
   \bTH  next3 \eTH
 \eTR
 \eTABLEnext
 %
 % the table body (main part)
 %
 \bTABLEbody
 %
 \dorecurse{100}{% 100 rows
 \bTR
   \bTC  body body body body body \eTC
   \bTC  body body body body body \eTC
   \bTC  body body body body body \eTC
 \eTR
 }%
 %
 \eTABLEbody
 %
 % the table foot
 %
 \bTABLEfoot
 \bTR
   \bTC  foot1 \eTC
   \bTC  foot2 \eTC
   \bTC  foot3 \eTC
 \eTR
 \eTABLEfoot
 %
 \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
___


Re: [NTG-context] natural table splitting problems

2007-10-30 Thread Hans Hagen
Santy, Michael wrote:
 Thanks Peter for the pointer to the multipage table in the wiki.  I don't 
 know how I overlooked that example.  However, I was still able to duplicate 
 the problem with this sample table by including a page full of text before 
 the table (see below).  
 
 If the dorecurse is set to 62 or 63, the contents slightly overflow the first 
 page text area and only the first row of the table is rendered on the second 
 page.  If dorecurse on blah is performed 61 or 64 times, the table is 
 rendered properly.

it's always a problem to determine what's left on a page

\def\blah{The quick brown fox jumped over the lazy stupid dog.}
\dorecurse{62}{\blah} \synchronizeoutput

this will force the otr but is not always fails safe (i.e. vertical 
spacing may be messed)

... one of the reasons why we work on luatex -)

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
___


Re: [NTG-context] natural table splitting problems

2007-10-29 Thread Peter Rolf
Santy, Michael schrieb:
 
 In our XML-ConTeXt-PDF workflow, we've encountered a few intermittent
 problems when using split natural tables.  I'm not able to post the
 original documents in which the problems are manifesting, but below is a
 document that reproduces one of the problems.  The first page of the
 document is full of text, pushing a split natural table with five rows
 and a header to the top of the second page.  However, only the first row
 appears on the second page, and the rest of the table is continued on
 the third page.
 
 I'm using a stock ConTeXt 9/28 distribution, but this problem can also
 be reproduced on live.contextgarden.net.
 
 Can someone please tell me what I'm doing wrong or help me debug this
 problem?  These natural table bugs are the only thing stopping us from
 deploying our ConTeXt workflow.
 
 Cheers,
 Mike Santy
 
 
 \setuppapersize[letter][letter]
 
 \showframe
 
 \starttext
 
 \def\blah{
   Now is the time for all good men to come to the aid of their %
   country.  The quick brown fox jumped over the lazy dog.
 }
 \dorecurse{28}{\blah}
 
 \placetable[split]{Broken Split Table}{
 \setupTABLE[split=repeat]
 \bTABLE
 \bTABLEhead
   \bTR[style=\bf]
 \bTD Header A \eTD

  \bTH  \eTH % this is emphasized twice in the wiki example


BTW: You have the possibility to answer to replies, like

... your answer doen't help  or
... I don't understand what you mean

Simply reposting the same question is bad behaviour. Not that clever if
you want an answer.

Peter

 \bTD Header B \eTD
   \eTR
 \eTABLEhead
 \bTABLEbody
   \dorecurse{5}{
 \bTR
   \bTD A \eTD
   \bTD B \eTD
 \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
___