On Sat, 08 Feb 2003 21:00:00 +0100
Hans Hagen <[EMAIL PROTECTED]> 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
_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to