ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henri Menke <henrimenke@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Bug in Natural Tables
Date: Wed, 8 Mar 2017 15:47:16 +0100	[thread overview]
Message-ID: <5395555b-3af1-6580-559b-efae307ec941@gmail.com> (raw)
In-Reply-To: <f582f48e-4857-211b-c725-618599aa475e@uni-bonn.de>

On 03/08/2017 10:52 AM, Thomas A. Schmitz wrote:
> On 03/08/2017 10:28 AM, Henri Menke wrote:
>> \starttext
>>
>> \startTABLE[align={lohi,middle}]
>>   \NC OSI-Schicht            \NC[nx=6] Umsetzung \NC\NR
>>   \NC Anwendungsschicht      \NC[nx=2,ny=3] SOME/I \NC[nx=2,ny=3] AVB/TSN \NC[nx=2,ny=3] DoIP \NC\NR
>>   \NC Darstellungsschicht    \NC\NR
>>   \NC Sitzungsschicht        \NC\NR
>>   \NC Transportschicht       \NC[nx=3] TCP \NC[nx=3] UDP \NC\NR
>>   \NC Vermittlungsschicht    \NC[nx=3] IPv4 \NC[nx=3] IPv6 \NC\NR
>>   \NC Sicherungsschicht      \NC[nx=6] Ethernet \NC\NR
>>   \NC Bitübertragungsschicht \NC[nx=2] 100BASE-TX \NC[nx=2] 100BASE-T \NC[nx=2] 1000BASE-T \NC\NR
>> \stopTABLE
>>
>> \stoptext
> 
> Because that's not a natural table. You're confusing the old TABLE environment (\startTABLE) with natural tables (\bTABLE; \NC[nx=3] should be \bTD[nx=e]). And it's inconsistent. If you want six columns, you have to tell ConTeXt what it should do in rows 3 and 4, where you  define only one column.

No, this is Natural Tables.  The macros I am using are defined in tabl-nte.mkiv and the header there states

%D This module provides an easy way to use natural in a similiar
%D way as the older table module (based on the \TABLE\ macros) and
%D the newer tabulate module.

Nevertheless, as you requested, here the same bug with the traditional Natural Table macros:

\starttext

\bTABLE[align={lohi,middle}]
  \bTR\bTD OSI-Schicht            \eTD\bTD[nx=6] Umsetzung \eTD\eTR
  \bTR\bTD Anwendungsschicht      \eTD\bTD[nx=2,ny=3] SOME/I \eTD\bTD[nx=2,ny=3] AVB/TSN \eTD\bTD[nx=2,ny=3] DoIP \eTD\eTR
  \bTR\bTD Darstellungsschicht    \eTD\eTR
  \bTR\bTD Sitzungsschicht        \eTD\eTR
  \bTR\bTD Transportschicht       \eTD\bTD[nx=3] TCP \eTD\bTD[nx=3] UDP \eTD\eTR   
  \bTR\bTD Vermittlungsschicht    \eTD\bTD[nx=3] IPv4 \eTD\bTD[nx=3] IPv6 \eTD\eTR
  \bTR\bTD Sicherungsschicht      \eTD\bTD[nx=6] Ethernet \eTD\eTR
  \bTR\bTD Bitübertragungsschicht \eTD\bTD[nx=2] 100BASE-TX \eTD\bTD[nx=2] 100BASE-T \eTD\bTD[nx=2] 1000BASE-T \eTD\eTR
\eTABLE

\stoptext

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

___________________________________________________________________________________
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-08 14:47 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 [this message]
2017-03-08 16:46     ` Thomas A. Schmitz
2017-03-09  8:56       ` Hans Hagen

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=5395555b-3af1-6580-559b-efae307ec941@gmail.com \
    --to=henrimenke@gmail.com \
    --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).