ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: rows and columns in TABLE
Date: Mon, 8 Sep 2008 16:22:54 +0200	[thread overview]
Message-ID: <115224fb0809080722u2878c4ebgd6a594f394ac81c9@mail.gmail.com> (raw)
In-Reply-To: <20080908141049.GA16235@gaston.couberia.bzh>

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
___________________________________________________________________________________


  reply	other threads:[~2008-09-08 14:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-08 14:10 Peter Münster
2008-09-08 14:22 ` Wolfgang Schuster [this message]
2008-09-08 14:35   ` Peter Münster
2008-09-08 15:59   ` Peter Münster

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=115224fb0809080722u2878c4ebgd6a594f394ac81c9@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.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).