ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <peter.rolf@arcor.de>
Subject: row background (TABLE)
Date: Wed, 08 Sep 2004 14:09:04 +0200	[thread overview]
Message-ID: <413EF660.2080006@arcor.de> (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

                 reply	other threads:[~2004-09-08 12:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=413EF660.2080006@arcor.de \
    --to=peter.rolf@arcor.de \
    --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).