ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* rows and columns in TABLE
@ 2008-09-08 14:10 Peter Münster
  2008-09-08 14:22 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2008-09-08 14:10 UTC (permalink / raw)
  To: ConTeXt list

Hello,

Could you help me please? I don't get the desired result, 3 columns are
added:

\starttext
\setupTABLE[width=\dimexpr \textwidth / 8 \relax]
\bTABLE
\bTR
\bTH 1. col\eTH
\bTH 2. col\eTH
\bTH 3. col\eTH
\bTH 4. col\eTH
\bTH 5. col\eTH
\bTH 6. col\eTH
\eTR
\bTR
\bTD[nr=6]6 rows in 1. col\eTD
\bTD[nr=2]2 rows in 2. col\eTD
\bTD[nr=6]6 rows in 3. col\eTD
\bTD[nr=2]2 rows in 4. col\eTD
\bTD 1 row in 5. col\eTD
\bTD[nr=2]2 rows in 6. col\eTD
\eTR
\bTR
\bTD[nr=2]2 rows in 2. col\eTD
\bTD[nr=2]2 rows in 4. col\eTD
\bTD[nr=2]2 rows in 5. col\eTD
\bTD[nr=4]4 rows in 6. col\eTD
\eTR
\bTR
\bTD[nr=2]2 rows in 2. col\eTD
\bTD[nr=2]2 rows in 4. col\eTD
\bTD[nr=2]2 rows in 5. col\eTD
\eTR
\bTR
\bTD 1 row in 5. col\eTD
\eTR
\eTABLE
\stoptext

Thanks in advance for any advice!
Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
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] 4+ messages in thread

* Re: rows and columns in TABLE
  2008-09-08 14:10 rows and columns in TABLE Peter Münster
@ 2008-09-08 14:22 ` Wolfgang Schuster
  2008-09-08 14:35   ` Peter Münster
  2008-09-08 15:59   ` Peter Münster
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2008-09-08 14:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Sep 8, 2008 at 4:10 PM, Peter Münster <pmlists@free.fr> wrote:
> Hello,
>
> Could you help me please? I don't get the desired result, 3 columns are
> added:
>
> \starttext
> \setupTABLE[width=\dimexpr \textwidth / 8 \relax]
> \bTABLE
> \bTR
> \bTH 1. col\eTH
> \bTH 2. col\eTH
> \bTH 3. col\eTH
> \bTH 4. col\eTH
> \bTH 5. col\eTH
> \bTH 6. col\eTH
> \eTR
> \bTR
> \bTD[nr=6]6 rows in 1. col\eTD
> \bTD[nr=2]2 rows in 2. col\eTD
> \bTD[nr=6]6 rows in 3. col\eTD
> \bTD[nr=2]2 rows in 4. col\eTD
> \bTD 1 row in 5. col\eTD
> \bTD[nr=2]2 rows in 6. col\eTD
> \eTR
> \bTR
> \bTD[nr=2]2 rows in 2. col\eTD
> \bTD[nr=2]2 rows in 4. col\eTD
> \bTD[nr=2]2 rows in 5. col\eTD
> \bTD[nr=4]4 rows in 6. col\eTD
> \eTR
> \bTR
> \bTD[nr=2]2 rows in 2. col\eTD
> \bTD[nr=2]2 rows in 4. col\eTD
> \bTD[nr=2]2 rows in 5. col\eTD
> \eTR
> \bTR
> \bTD 1 row in 5. col\eTD
> \eTR
> \eTABLE
> \stoptext
>
> Thanks in advance for any advice!
> Cheers, Peter

You should use pen and paper to contruct the table, it helps.

\starttext
\bTABLE[width=0.125\textwidth]
\bTR
\bTH 1. col\eTH
\bTH 2. col\eTH
\bTH 3. col\eTH
\bTH 4. col\eTH
\bTH 5. col\eTH
\bTH 6. col\eTH
\eTR
\bTR
\bTD[nr=6]6 rows in 1. col\eTD
\bTD[nr=2]2 rows in 2. col\eTD
\bTD[nr=6]6 rows in 3. col\eTD
\bTD[nr=2]2 rows in 4. col\eTD
\bTD 1 row in 5. col\eTD
\bTD[nr=2]2 rows in 6. col\eTD
\eTR
\bTR
\bTD[nr=2] 2 rows in 5. col\eTD
\eTR
\bTR
\bTD[nr=2]2 rows in 2. col\eTD
\bTD[nr=2]2 rows in 4. col\eTD
\bTD[nr=4]4 rows in 6. col\eTD
\eTR
\bTR
\bTD[nr=2] 2 rows in 5. col\eTD
\eTR
\bTR
\bTD[nr=2]2 rows in 2. col\eTD
\bTD[nr=2]2 rows in 4. col\eTD
\eTR
\bTR
\bTD 1 row in 5. col\eTD
\eTR
\eTABLE
\stoptext

Wolfgang
___________________________________________________________________________________
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] 4+ messages in thread

* Re: rows and columns in TABLE
  2008-09-08 14:22 ` Wolfgang Schuster
@ 2008-09-08 14:35   ` Peter Münster
  2008-09-08 15:59   ` Peter Münster
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Münster @ 2008-09-08 14:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Sep 08 2008, Wolfgang Schuster wrote:

> You should use pen and paper to contruct the table, it helps.

In fact, that's what I did. But now I understand better the logic how the
rows must be defined. Thanks for your help!
Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
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] 4+ messages in thread

* Re: rows and columns in TABLE
  2008-09-08 14:22 ` Wolfgang Schuster
  2008-09-08 14:35   ` Peter Münster
@ 2008-09-08 15:59   ` Peter Münster
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Münster @ 2008-09-08 15:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Now I would like to adjust the height of each row. But I manage to get the
desired result only with a seventh fake column. Consider this example with
and without the mode "seven":

%\enablemode[seven]
\starttext
\setupTABLE[r][2,3,4,5,6,7][height=6ex]
\bTABLE[width=0.125\textwidth]
\bTR
\bTH 1. col\eTH
\bTH 2. col\eTH
\bTH 3. col\eTH
\bTH 4. col\eTH
\bTH 5. col\eTH
\bTH 6. col\eTH
\doifmode{seven}{\bTH 7. col\eTH}
\eTR
\bTR
\bTD[nr=6]6 rows in 1. col\eTD
\bTD[nr=2]2 rows in 2. col\eTD
\bTD[nr=6]6 rows in 3. col\eTD
\bTD[nr=2]2 rows in 4. col\eTD
\bTD 1 row in 5. col\eTD
\bTD[nr=2]2 rows in 6. col\eTD
\doifmode{seven}{\bTD\eTD}
\eTR
\bTR
\bTD[nr=2] 2 rows in 5. col\eTD
\doifmode{seven}{\bTD\eTD}
\eTR
\bTR
\bTD[nr=2]2 rows in 2. col\eTD
\bTD[nr=2]2 rows in 4. col\eTD
\bTD[nr=4]4 rows in 6. col\eTD
\doifmode{seven}{\bTD\eTD}
\eTR
\bTR
\bTD[nr=2] 2 rows in 5. col\eTD
\doifmode{seven}{\bTD\eTD}
\eTR
\bTR
\bTD[nr=2]2 rows in 2. col\eTD
\bTD[nr=2]2 rows in 4. col\eTD
\doifmode{seven}{\bTD\eTD}
\eTR
\bTR
\bTD 1 row in 5. col\eTD
\doifmode{seven}{\bTD\eTD}
\eTR
\eTABLE
\stoptext

Any hints, you to adjust the heights without fake column?

TIA for any help!
Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2008-09-08 15:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-08 14:10 rows and columns in TABLE Peter Münster
2008-09-08 14:22 ` Wolfgang Schuster
2008-09-08 14:35   ` Peter Münster
2008-09-08 15:59   ` Peter Münster

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