Re: [NTG-context] "externalfigure" vs. "draw externalfigure" in metafun

2011-09-17 Thread Nicola
In article , Mojca Miklavec wrote: > do you have any idea what > exactly would have to be fixed in ConTeXt core code? Edit mp-spec.mp and change the line draw p withcolor ... with image(draw p withcolor ...) The line is in the body of the doexternalfigure macro. Then, 'draw externalfi

Re: [NTG-context] "externalfigure" vs. "draw externalfigure" in metafun

2011-09-17 Thread Hans Hagen
On 17-9-2011 11:32, Mojca Miklavec wrote: Hans? is in "too busy mode" currently .. more later (but the metafun mkiv way is conceptually more ok so we might need to change metafun mkii) Hans -

Re: [NTG-context] "externalfigure" vs. "draw externalfigure" in metafun

2011-09-17 Thread Mojca Miklavec
On Sat, Sep 17, 2011 at 11:11, Nicola wrote: > > Does the following workaround work for you? If Hans is willing to fix metafun, I would prefer to avoid workarounds. (I don't care which syntax is used, but I would be grateful if the same syntax worked in both mkii and mkiv.) Since you seem to be a

Re: [NTG-context] "externalfigure" vs. "draw externalfigure" in metafun

2011-09-17 Thread Nicola
In article , Nicola wrote: > Does the following workaround work for you? > > def mydraw text t = >def f = begingroup t endgroup enddef; >if picture f : draw f ; fi > enddef; > mydraw externalfigure "abc.png" xyscaled (5cm,8cm); This may be better: def mydraw text t = _mydraw begingr

Re: [NTG-context] "externalfigure" vs. "draw externalfigure" in metafun

2011-09-17 Thread Nicola
In article , Mojca Miklavec wrote: > Dear Hans, > > I have problems with externalfigure inside metapost. > > In MKII, only > externalfigure "something.png"; > works, while in MKIV only > draw externalfigure "something.png"; > is accepted. > > Is there any chance to accept one of the

Re: [NTG-context] "externalfigure" vs. "draw externalfigure" in metafun

2011-09-16 Thread Andreas Schneider
On 16.09.2011 16:00, Mojca Miklavec wrote: Dear Hans, I have problems with externalfigure inside metapost. In MKII, only externalfigure "something.png"; works, while in MKIV only draw externalfigure "something.png"; is accepted. Is there any chance to accept one of the syntaxes in bo

[NTG-context] "externalfigure" vs. "draw externalfigure" in metafun

2011-09-16 Thread Mojca Miklavec
Dear Hans, I have problems with externalfigure inside metapost. In MKII, only externalfigure "something.png"; works, while in MKIV only draw externalfigure "something.png"; is accepted. Is there any chance to accept one of the syntaxes in both flavours? Thank you, Mojca Minimal exam