ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Patrick Gundlach <pg@levana.de>
Subject: table and MPpositiongraphic
Date: Tue, 11 Mar 2003 17:30:45 +0100	[thread overview]
Message-ID: <874r69dfwq.fsf@gundla.ch> (raw)

Hello, 

while browsing thru the source and trying some examples, I can't
sensible output of the following code. (No MP stuff is visible)

%output=pdf

\setupcolors[state=start]

\def\cw#1{\color[green]{#1}}

\def\TableShade#1#2%
  {\startMPpositiongraphic
     initialize_area(\MPpos{b:#1},\MPpos{e:#1}) ;
     show pxy;
     linear_shade(pxy,0,.4#2,.9#2) ;
     anchor_area(\MPanchor{b:#1}) ;
   \stopMPpositiongraphic}

\dosetpositionaction{b:x}{\TableShade{x}{red}}
\dosetpositionaction{b:y}{\TableShade{y}{green}}
\dosetpositionaction{b:z}{\TableShade{z}{blue}}

\starttext
\starttable[|c|c|c|]
\GFC[b:z] \cw{this is a small}  \NC       \cw{table}            \NC     in which we      \NC \FR
\NC       \cw{will demonstrate} \GFC[c:y] \cw{that this}        \GTC[c] \cw{positioning} \NC \MR
\GSC[a:x] \cw{mechanism also}   \GTC[b]   \cw{works quite well} \NC     in tables        \NC \LR
\stoptable

\stoptext

Any ideas how to get the MPpositiongraphic working?

Patrick

             reply	other threads:[~2003-03-11 16:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-11 16:30 Patrick Gundlach [this message]
2003-03-11 21:48 ` Hans Hagen
2003-03-19  8:19   ` Patrick Gundlach
2003-03-19  9:23     ` Hans Hagen

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=874r69dfwq.fsf@gundla.ch \
    --to=pg@levana.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).