From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11344 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: table and MPpositiongraphic Date: Tue, 11 Mar 2003 22:48:55 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20030311223832.02488098@server-1> References: <874r69dfwq.fsf@gundla.ch> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1047463301 28875 80.91.224.249 (12 Mar 2003 10:01:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2003 10:01:41 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Mar 12 11:01:40 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18t32z-0007UA-00 for ; Wed, 12 Mar 2003 11:01:17 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3CB3910B7A; Wed, 12 Mar 2003 11:01:59 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 0AEB110B55 for ; Wed, 12 Mar 2003 10:57:07 +0100 (MET) Original-Received: from server-1.pragma-net.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id h2C9v2sm027055 for ; Wed, 12 Mar 2003 10:57:03 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-net.nl (8.12.3/8.12.2) with ESMTP id h2C9v3EY003426 for ; Wed, 12 Mar 2003 10:57:04 +0100 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <874r69dfwq.fsf@gundla.ch> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11344 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11344 Hi Patrick, >while browsing thru the source and trying some examples, I can't >sensible output of the following code. (No MP stuff is visible) right, this is because it's old crappy code; and so you got me in debugging mode again \setupcolors[state=start] \starttext \def\cw#1{\color[white]{#1}} \startMPpositiongraphic{tableshade} initialize_area(\MPpos{\MPvar{from}},\MPpos{\MPvar{to}}) ; color c ; c := \MPvar{color} ; linear_shade(pxy,0,.4c,.9c) ; anchor_area(\MPanchor{\MPvar{from}}) ; \stopMPpositiongraphic \setMPpositiongraphic{b:x}{tableshade}{from=b:x,to=e:x,color=red} \setMPpositiongraphic{b:y}{tableshade}{from=b:y,to=e:y,color=green} \setMPpositiongraphic{b:z}{tableshade}{from=b:z,to=e:z,color=blue} \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 so, \startMPpositiongraphic is now named and handles vars btw, i leave it to you to figure out the \XC alternative (which is a nicer way of coding) there are a few more places where this kind of old code shows up (which is one reason why it's in the comments and not in manuals); last week i fixed something in a presentation style -) This kind of code is now reaching a more stable state because it's quite extensively used in some of the projects that we're involved in (i can show you some of the coding in bremen if you're interested; this kind of things is needed to make dtp competing/beating styles and it's a slow process to make the mechanisms programmable and the code readable) btw, the textbackground features work ok in tables as well, so in a way this kind of things are no longer needed, unless you want to span cells in complicated ways Hans ------------------------------------------------------------------------- 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 -------------------------------------------------------------------------