From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9271 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Background cells in tables? Date: Tue, 17 Sep 2002 09:35:23 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020917093033.026f8eb0@server-1> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035399608 1914 80.91.224.250 (23 Oct 2002 19:00:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 19:00:08 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Gilbert van den Dobbelsteen In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:9271 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9271 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 -------------------------------------------------------------------------