ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* row background (TABLE)
@ 2004-09-08 12:09 Peter Rolf
  0 siblings, 0 replies; only message in thread
From: Peter Rolf @ 2004-09-08 12:09 UTC (permalink / raw)


Hello,

I need a way to set the background for a complete row in the TABLE 
environment.
TABLE uses \framed for every single entry. But if I set the framed 
parameters
right after \bTR, it sets the defaults for all the \bTD \eTD entries and 
not for that
row. See example below to give you an idea.

So what I need is an additional \framed for every row entry.... or any 
other miracle :)

Greetings,

    Peter




% interface=en output=pdftex
\setupcolors[state=start]

\startuniqueMPgraphic{row}
  save ow,oh,p ;
  path p ;
  ow:= \overlaywidth ; oh:= \overlayheight ;

  p:= unitsquare xyscaled(ow,oh) ;
  fill p withcolor yellow ;
  draw origin--(ow,0) yshifted oh withcolor blue ;
  clip currentpicture to boundingbox p ;
\stopuniqueMPgraphic

\defineoverlay[rowbg] [\uniqueMPgraphic{row}]


\starttext

% what I want (but in a TABLE)
\framed[background={rowbg}, align={middle,lohi}, strut=no, offset=0pt]{%
  \setupframed[frame=off]
  \framed{Just}\framed[background=color,backgroundcolor=white]{a 
stupid}\framed{test}}

\blank[big]

% what I get
\bTABLE
  \bTR [background={rowbg}, offset=0pt]
    \bTD Just \eTD
    \bTD [background=color,backgroundcolor=white] a stupid \eTD
    \bTD test \eTD
  \eTR
\eTABLE

\stoptext

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-08 12:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-08 12:09 row background (TABLE) Peter Rolf

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