ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \bTABLE bug, please help !
@ 2020-03-10 13:47 Taco Hoekwater
  2020-03-10 14:07 ` SOLVED " Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2020-03-10 13:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 582 bytes --]

Hi,

Please see the attached example. The \bTABLE in the footer of the page ‘inherits' the
first line of the split \bTABLE in the running text. I have no idea how to fix this
or why this even happens. Help!

I’ll need a way to work around this problem in my current ConTeXt installation for
this project. That is now nearly 4 years old, but the same bug is still happens with
a new beta of mkiv.

I cannot switch to \startxtable because I would need \startembeddedxtable, and that
has way too many limitations to be useful in this project.

Best wishes,
Taco



[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 12078 bytes --]

[-- Attachment #3: test.tex --]
[-- Type: application/octet-stream, Size: 328 bytes --]


\startbuffer[mytable]
\bTABLE
\bTR \bTD left footer \eTD \bTD right footer \eTD \eTR
\eTABLE
\stopbuffer

\setupfootertexts[{\getbuffer[mytable]}]

\starttext

\bTABLE[split=yes]
\dorecurse{40}
  {\bTR \bTD left item1 \eTD \bTD right item1 \eTD \eTR 
   \bTR \bTD left item2 \eTD \bTD right item2 \eTD \eTR}
\eTABLE

\stoptext

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






[-- Attachment #5: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* SOLVED Re:  \bTABLE bug, please help !
  2020-03-10 13:47 \bTABLE bug, please help ! Taco Hoekwater
@ 2020-03-10 14:07 ` Taco Hoekwater
  2020-03-10 15:20   ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2020-03-10 14:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Never mind, I got it (starting at \loggingall output for a while). This
patch to my input fixes it:

  \unprotect
  \setupfootertexts[{\tabl_ntb_next_level \getbuffer[mytable] \tabl_ntb_prev_level}]
  \protect

Best wishes,
Taco

> On 10 Mar 2020, at 14:47, Taco Hoekwater <taco@elvenkind.com> wrote:
> 
> Hi,
> 
> Please see the attached example. The \bTABLE in the footer of the page ‘inherits' the
> first line of the split \bTABLE in the running text. I have no idea how to fix this
> or why this even happens. Help!
> 
> I’ll need a way to work around this problem in my current ConTeXt installation for
> this project. That is now nearly 4 years old, but the same bug is still happens with
> a new beta of mkiv.
> 
> I cannot switch to \startxtable because I would need \startembeddedxtable, and that
> has way too many limitations to be useful in this project.
> 
> Best wishes,
> Taco
> 
> 
> <test.pdf><test.tex>
> 
> 
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

Taco Hoekwater
Elvenkind BV




___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: SOLVED Re: \bTABLE bug, please help !
  2020-03-10 14:07 ` SOLVED " Taco Hoekwater
@ 2020-03-10 15:20   ` Hans Hagen
  2020-03-10 15:43     ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2020-03-10 15:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Taco Hoekwater

On 3/10/2020 3:07 PM, Taco Hoekwater wrote:
> Hi,
> 
> Never mind, I got it (starting at \loggingall output for a while). This
> patch to my input fixes it:
> 
>    \unprotect
>    \setupfootertexts[{\tabl_ntb_next_level \getbuffer[mytable] \tabl_ntb_prev_level}]
>    \protect

you beat me on this ... (still puzzled because nesting shoudl kind of work)

I'll add this:

%D This is for the special cases where for instance a table is in a 
header or footer
%D line and we have a split table in progress. (See mail to list from Taco.)

\unexpanded\def\bTABLEnested{\tabl_ntb_next_level\bTABLE}
\unexpanded\def\eTABLEnested{\eTABLE\tabl_ntb_next_level}

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: SOLVED Re: \bTABLE bug, please help !
  2020-03-10 15:20   ` Hans Hagen
@ 2020-03-10 15:43     ` Taco Hoekwater
  0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2020-03-10 15:43 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users



> On 10 Mar 2020, at 16:20, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 3/10/2020 3:07 PM, Taco Hoekwater wrote:
>> Hi,
>> Never mind, I got it (starting at \loggingall output for a while). This
>> patch to my input fixes it:
>>   \unprotect
>>   \setupfootertexts[{\tabl_ntb_next_level \getbuffer[mytable] \tabl_ntb_prev_level}]
>>   \protect
> 
> you beat me on this ... (still puzzled because nesting shoudl kind of work)

Well, they are not _really_ nested, which is the problem, of course.

> I'll add this:
> 
> %D This is for the special cases where for instance a table is in a header or footer
> %D line and we have a split table in progress. (See mail to list from Taco.)
> 
> \unexpanded\def\bTABLEnested{\tabl_ntb_next_level\bTABLE}
> \unexpanded\def\eTABLEnested{\eTABLE\tabl_ntb_next_level}

That last macro should be \tabl_ntb_prev_level ;)

Taco

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2020-03-10 15:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-10 13:47 \bTABLE bug, please help ! Taco Hoekwater
2020-03-10 14:07 ` SOLVED " Taco Hoekwater
2020-03-10 15:20   ` Hans Hagen
2020-03-10 15:43     ` Taco Hoekwater

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).