Taco Hoekwater wrote:
> Quick fix: You can start your MP code with an explicit color
> initialization.
>
>    \startMPcode
>       special "0 setgray";
>       ......
>    \stopMPcode
>
>
> A hack, I know. MetaPost should be able to distinguish between
>    draw p
> and
>    draw p withcolor (0,0,0)
> but currently it can't (because the structure is initialized
> as (0,0,0)). It is not quite a bug either, because there may
> well be MP code out there that depends on this.
> In fact, probably code by Knuth, Hobby, Jacko, and Hans ;-)
>   
-)

i think that (given that in principle mp produces stand alone ps code) 
it should start out with black; when embedding as eps or when used as 
xform in pdf thsi probably is automatically taken care of

it makes sense to let mp do that for you; there are a few places where 
context forces the defaultcolor; we can make it an opion in the mp topdf 
converter as well

Hans 
-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to