From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10943 Path: main.gmane.org!not-for-mail From: Jens-Uwe Morawski Newsgroups: gmane.comp.tex.context Subject: Re: Re[4]: MetaTricks? Date: Mon, 10 Feb 2003 16:36:50 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <20030210163650.2a3d2b58.morawski@gmx.net> References: <592730426.20030206233514@iol.it> <14421271667.20030205223819@iol.it> <20030206141641.20382ab9.morawski@gmx.net> <416656420.20030206152912@iol.it> <20030206174938.773342f5.morawski@gmx.net> <592730426.20030206233514@iol.it> <5.1.0.14.1.20030208205730.04d09480@remote-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1044916886 406 80.91.224.249 (10 Feb 2003 22:41:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2003 22:41:26 +0000 (UTC) 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 18iMc7-000064-00 for ; Mon, 10 Feb 2003 23:41:23 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id E062510B13; Mon, 10 Feb 2003 23:43:32 +0100 (MET) Original-Received: from mail.gmx.net (imap.gmx.net [213.165.65.60]) by ref.ntg.nl (Postfix) with SMTP id 5EEB610B89 for ; Mon, 10 Feb 2003 23:40:07 +0100 (MET) Original-Received: (qmail 3305 invoked by uid 0); 10 Feb 2003 22:40:06 -0000 Original-Received: from port1335.fra.ginko.net (HELO melior.localdomain) (212.202.67.65) by mail.gmx.net (mp006-rz3) with SMTP; 10 Feb 2003 22:40:06 -0000 Original-To: ntg-context@ntg.nl In-Reply-To: <5.1.0.14.1.20030208205730.04d09480@remote-1> X-Mailer: Sylpheed version 0.8.9 (GTK+ 1.2.10; i586-pc-linux-gnu) 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:10943 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10943 On Sat, 08 Feb 2003 21:00:00 +0100 Hans Hagen wrote: > At 05:42 PM 2/7/2003 +0100, Jens-Uwe Morawski wrote: > >Do you mean something like in the attached files? > >keyvalmp.mp : package for key-value parameters in MP; used in mpt-conf.mp > > (BTW, if anybody knows a better way to implement this, please > > let me know) > > nice example of expansion and redefinition of symbols > > about this picture key/val problem: how about passing it as string, say > > SomePic=pic("picture stuff") in keyvalmp.mp i've simplified the problem to picture-keys, since the problem will occur mostly in those cases. But the problem exists for all given values that contain groups of (...) where the (...) is not a pair or color. For example, using MetaFun, even foreground=cmyk(1,0,1,0) does not work. (BTW, this problem with a list of 4 numerics in a (...) could be solved, but not if the (...) contains a list of 5 and more numerics) Therefore i prefer something like: defineLogo(MyLogo)( label("some text",origin) ; ) ; TheKeyValMacro(logo=MyLogo) ; In contrast to your suggestion, here one can use strings in the picture expression. Jens