ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* natural tables: when I say nc=2, I really mean it
@ 2009-09-03 21:06 Zed Lopez
  2009-09-03 23:22 ` luigi scarso
  0 siblings, 1 reply; 2+ messages in thread
From: Zed Lopez @ 2009-09-03 21:06 UTC (permalink / raw)
  To: ntg-context

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

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?

thanks. (Long time subscriber, first time poster, love the macro package.)
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: natural tables: when I say nc=2, I really mean it
  2009-09-03 21:06 natural tables: when I say nc=2, I really mean it Zed Lopez
@ 2009-09-03 23:22 ` luigi scarso
  0 siblings, 0 replies; 2+ messages in thread
From: luigi scarso @ 2009-09-03 23:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2009-09-03 23:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-03 21:06 natural tables: when I say nc=2, I really mean it Zed Lopez
2009-09-03 23:22 ` luigi scarso

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