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

2011-09-17 Thread Nicola
In article calbomsadxdyx8q9pmva2_cpm3rq8j1mxkepqgnasjtafuhc...@mail.gmail.com, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: Dear Hans, I have problems with externalfigure inside metapost. In MKII, only externalfigure something.png; works, while in MKIV only draw

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

2011-09-17 Thread Nicola
In article nvitacolonna-9462e1.4817092...@news.gmane.org, Nicola nvitacolo...@gmail.com 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

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 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 Nicola
In article calbomsbm2thsup+kzjlkfd8pba2bbt7jvf-bvrwkrkz3+wb...@mail.gmail.com, Mojca Miklavec mojca.miklavec.li...@gmail.com 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

[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

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 both