ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Bug in Natural Tables
Date: Thu, 9 Mar 2017 09:56:22 +0100	[thread overview]
Message-ID: <750f9508-08d7-8baa-be29-1e6b8cfd3d53@wxs.nl> (raw)
In-Reply-To: <343e78ad-08b6-ab86-efd6-a5b4097ea9f4@uni-bonn.de>

On 3/8/2017 5:46 PM, Thomas A. Schmitz wrote:
> On 03/08/2017 03:47 PM, Henri Menke wrote:
>> No, this is Natural Tables.  The macros I am using are defined in
>> tabl-nte.mkiv and the header there states
>
> You're right, I was too fast with my response.
>
>>
>> Nevertheless, as you requested, here the same bug with the traditional
>> Natural Table macros:
>
> I didn't request anything, but there seems to be a real bug. Here's my
> code:
>
> \setuppapersize [A4,landscape]
>
> \starttext
>
> \setupTABLE [row] [each] [align={lohi,middle}]
> \setupTABLE [column] [1] [width=5cm]
> \setupTABLE [column] [2] [width=2cm]
> \setupTABLE [column] [3] [width=2cm]
> \setupTABLE [column] [4] [width=2cm]
> \setupTABLE [column] [5] [width=2cm]
> \setupTABLE [column] [6] [width=2cm]
> \setupTABLE [column] [7] [width=2cm]
>
> \bTABLE
> \bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \bTD 5 \eTD \bTD 6
> \eTD \bTD 7 \eTD \eTR
> \bTR \bTD OSI-Schicht          \eTD \bTD[nc=6] Umsetzung \eTD \eTR
> \bTR \bTD Anwendungsschicht    \eTD \bTD[nc=2,nr=3] SOME/I\eTD
> \bTD[nc=2,nr=3] AVB/TSN\eTD \bTD[nc=2,nr=3] DoIP \eTD \eTR
> \bTR \bTD  Darstellungsschicht   \eTD  \eTR
> \bTR \bTD  Sitzungsschicht       \eTD  \eTR
> \bTR \bTD Transportschicht     \eTD \bTD[nc=3] TCP\eTD \bTD[nc=3] UDP
> \eTD \eTR
> \bTR \bTD Vermittlungsschicht  \eTD \bTD[nc=3] IPv4\eTD \bTD[nc=3] IPv6
> \eTD \eTR
> \bTR \bTD Sicherungsschicht    \eTD \bTD[nc=6] Ethernet \eTD \eTR
> \bTR \bTD Bitübertragungsschicht \eTD \bTD[nc=2] 100BASE-TX\eTD
> \bTD[nc=2] 100BASE-T\eTD \bTD[nc=2] 1000BASE-T \eTD \eTR
> \eTABLE
>
> \stoptext
>
> If I comment out the first table row, the table is out of whack. Same if
> I do not define the width of columns explicitly. So something is not
> quite right here.

Fixing this will break something else (which is why i don't want to 
touch the code)

What works is adding a first row:

\bTR[height=0pt,offset=overlay,frame=off] \dorecurse{7}{\bTD\eTD} \eTR

makes me wonder if that should be an option but it needs testing.

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
___________________________________________________________________________________

      reply	other threads:[~2017-03-09  8:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-08  9:28 Henri Menke
2017-03-08  9:52 ` Thomas A. Schmitz
2017-03-08 14:47   ` Henri Menke
2017-03-08 16:46     ` Thomas A. Schmitz
2017-03-09  8:56       ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=750f9508-08d7-8baa-be29-1e6b8cfd3d53@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).