ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: natural tables: when I say nc=2, I really mean it
Date: Fri, 4 Sep 2009 01:22:55 +0200	[thread overview]
Message-ID: <fe8d59da0909031622m379d0f51q4b2f127efe1dc75@mail.gmail.com> (raw)
In-Reply-To: <83a996de0909031406yafc5f59v10e8ffd29e1b4540@mail.gmail.com>

On Thu, Sep 3, 2009 at 11:06 PM, Zed Lopez<zed.lopez@gmail.com> wrote:
> Hi folks,
>
> When I compile this table:
>
> \starttext
> \setupTABLE[c][1][width=12pt,rightframe=off]
> \setupTABLE[c][2][width=108pt,leftframe=off]
> \setupTABLE[c][each][width=60pt]
> \bTABLE
> \bTR \bTD x \eTD \bTD y \eTD \bTD z \eTD \eTR
> \bTR \bTD[nc=2] thisisaverylongwordishthing \eTD \bTD word \eTD \eTR
> \eTABLE
> \endtext
>
> I get the 2 rows I expect: the first with 1 narrow column, 1 wide
> column, and 1 medium column; the second with 1 even wider column and 1
> medium column.
>
> When I do the same thing, but with the first row omitted:
>
> \starttext
> \setupTABLE[c][1][width=12pt]
> \setupTABLE[c][2][width=108pt]
> \setupTABLE[c][each][width=60pt]
> \bTABLE
> \bTR \bTD[nc=2] thisisaverylongwordishthing \eTD \bTD word \eTD \eTR
> \eTABLE
> \endtext
\endtext or \stoptext ?

>
> it's as if the nc=2 is ignored -- it tries to squeeze
> "thisisaverylongwordishthing" into 1 12pt column instead of a combined
> 120pt column.
>
> How can I convince it to do what I mean with nc=2 despite having only
> one row with only 2 cells?
>
\starttext
\setupTABLE[c][1][width=12pt]
\setupTABLE[c][2][width=108pt]
\setupTABLE[c][each][width=60pt]
\bTABLE
\bTR \bTD[nc=2] this is a very long wordish thing \eTD \bTD word \eTD \eTR
\bTR[frame=off,strut=no,offset=0pt]
\bTD\relax\eTD\bTD\relax\eTD\bTD\relax\eTD\eTR
\eTABLE
\stoptext


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


      reply	other threads:[~2009-09-03 23:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-03 21:06 Zed Lopez
2009-09-03 23:22 ` luigi scarso [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=fe8d59da0909031622m379d0f51q4b2f127efe1dc75@mail.gmail.com \
    --to=luigi.scarso@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).