[NTG-context] Context style macros for metapost

Taco Hoekwater taco at elvenkind.com
Thu Dec 21 09:32:45 CET 2006


Aditya Mahajan wrote:

> definedash
>      [[myeven]]
>      [[on 3 off 3]] ;
> 
> beginfig(1)
>    draw (0,0)--(100,100) dashed myeven ;
> endfig ;
> end;
> 
> Is there a better way to do this in metapost?

Not really, I think. A dash pattern like

   definedash
       [[stutter]]
       [[on 3 off 3 on 1 off 3]] ;

is allowed, making a true key-value solution almost impossible.
(and I expect similar situations with just about everything)

Taco


More information about the ntg-context mailing list