ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Background cells in tables?
Date: Tue, 17 Sep 2002 09:35:23 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20020917093033.026f8eb0@server-1> (raw)
In-Reply-To: <Pine.LNX.4.30.0209170910170.3227-100000@panter.soci.aau.dk >

At 09:20 AM 9/17/2002 +0200, you wrote:
>Perhaps this was discussed before, but I need to do something with tables
>and backgrounds (colors and stuff). But it didn't work! I used a simple
>example from core-tab:
>
>\starttabel[|c|c|c|]
>\HL
>\BC      \BC      \BL         \SR
>\VL test \VL test \VL test \VL\SR
>\HL
>\stoptabel
>
>This doesn't work!. In fact I need the longtables because they are bigger
>than 1 page, and I need alternating backgrounds (could use the natural
>tables for the latter, but it doesn't do the first). Well anyway, here's the
>log:

try \bTABLE ... \eTABLE instead

\setupcolors[state=start]
\setuplayout[height=8cm]
\setupTABLE[row][odd][background=color,backgroundcolor=red]
\setupTABLE[row][even][background=color,backgroundcolor=green]

\bTABLE[split=yes]
\bTR \bTD one   \eTD \bTD two  \eTD \eTR
\bTR \bTD three \eTD \bTD four \eTD \eTR
\bTR \bTD one   \eTD \bTD two  \eTD \eTR
\bTR \bTD three \eTD \bTD four \eTD \eTR
\bTR \bTD one   \eTD \bTD two  \eTD \eTR
\bTR \bTD three \eTD \bTD four \eTD \eTR
\bTR \bTD one   \eTD \bTD two  \eTD \eTR
\bTR \bTD three \eTD \bTD four \eTD \eTR
....
\eTABLE
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


       reply	other threads:[~2002-09-17  7:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.30.0209170910170.3227-100000@panter.soci.aau.dk >
2002-09-17  7:35 ` Hans Hagen [this message]
2002-09-17 10:09   ` Gilbert van den Dobbelsteen
2002-09-17 11:48     ` Gilbert van den Dobbelsteen
     [not found]     ` <Pine.LNX.4.30.0209171342420.6448-100000@panter.soci.aau.dk >
2002-09-17 12:42       ` Hans Hagen
     [not found]   ` <Pine.LNX.4.30.0209171207470.5237-100000@panter.soci.aau.dk >
2002-09-17 12:38     ` Hans Hagen
2002-09-17  7:20 Gilbert van den Dobbelsteen

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=5.1.0.14.1.20020917093033.026f8eb0@server-1 \
    --to=pragma@wxs.nl \
    --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).