From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7720 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: How to apply a color or screen background to a tabulate (or table) cell? Date: Thu, 18 Apr 2002 10:35:56 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020418103413.0328b5f0@server-1> References: <87bschr0xm.fsf@inanna.rimspace.net> 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 1035398164 21593 80.91.224.250 (23 Oct 2002 18:36:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:36:04 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Daniel Pittman In-Reply-To: <87bschr0xm.fsf@inanna.rimspace.net> Xref: main.gmane.org gmane.comp.tex.context:7720 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7720 At 04:11 PM 4/18/2002 +1000, you wrote: >I would like to place a screen behind one cell of a table that I am >using at the moment. Ideally, rounding the corners of this screen would >also be possible, but I can live without that. the most robust mechanism is bTABLE eTABLE which provides \framed features behind each cell >According to the comments in 'core-tbl.tex', color is to be done "as >required". Is this accurate and, if so, is there no way to achieve >this? > >Using \startbackrgound or \startframedtext both screw up the placement >of the text in the cell in fairly dramatic ways, most of the time, and >even when they work roughly right they only cover the text, not the full >height of the cell... If this works on your system, you can spend the rest of the day trying to figure out what happens here: \starttext \setupcolors[state=start] \definepositionframed[w][background=color,backgroundcolor=yellow] \definepositionframed[x][background=color,backgroundcolor=red] \definepositionframed[y][background=color,backgroundcolor=green] \definepositionframed[z][background=color,corner=round,backgroundcolor=blue] \starttabulate[|c|c|c|] \NC this is a small \NC table \NC in which we \NC \FR \NC will demonstrate \NC that this \NC positioning \NC \MR \NC mechanism also \NC works quite well \NC in tables \NC \LR \stoptabulate \starttabulate[|c|c|c|] \GFC[f:x] this is a small \GTC table \NC in which we \NC \FR \NC will demonstrate \GFC[g:z] that this \GTC[g] positioning \NC \MR \GSC[e:y] mechanism also \GTC[f] works quite well \NC in tables \NC \LR \stoptabulate \starttabulate[|c|c|c|] \GFC[f:x,d:w] this is a small \GTC[d] table \NC in which we \NC \FR \NC will demonstrate \GFC[g:z] that this \GTC[g] positioning \NC \MR \GSC[e:y] mechanism also \GTC[f] works quite well \NC in tables \NC \LR \stoptabulate \starttabulate[|c|c|c|] \XC[+f:x] this is a small \XC table \NC in which we \NC \FR \NC will demonstrate \XC[+g:z] that this \XC[-g] positioning \NC \MR \XC[=e:y] mechanism also \XC[-f] works quite well \NC in tables \NC \LR \stoptabulate \starttabulate[|c|c|c|] \XC[+f:x,+d:w] this is a small \XC[-d] table \NC in which we \NC \FR \NC will demonstrate \XC[+g:z] that this \XC[-g] positioning \NC \MR \XC[=e:y] mechanism also \XC[-f] works quite well \NC in tables \NC \LR \stoptabulate \definepositionframed[x][background=color,backgroundcolor=red] \definepositionframed[y][background=color,backgroundcolor=green] \definepositionframed[z][background=color,backgroundcolor=blue] \starttabulate[|c|c|c|] \GFC[f:x] this is a small \NC table \NC in which we \NC \FR \NC will demonstrate \GFC[g:z] that this \GTC[g] positioning \NC \MR \GSC[e:y] mechanism also \GTC[f] works quite well \NC in tables \NC \LR \stoptabulate \stoptext ------------------------------------------------------------------------- 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 -------------------------------------------------------------------------