I just tested luatex rev 4090:
--------------
\starttext
\startMPpage
externalfigure "blblogo.pdf" scaled .4 ;
%label(textext("Test"),origin);
\stopMPpage
\stoptext
--------------
gives no error message and an empty pdf 1mmx5mm
--------------
\starttext
\startMPpage
%externalfigure "blblogo.pdf" scaled .4 ;
label(textext("Test"),origin);
\stopMPpage
\stoptext
--------------
results in "mpout"
--------------
\starttext
\startMPpage
externalfigure "blblogo.pdf" scaled .4 ;
label(textext("Test"),origin);
\stopMPpage
\stoptext
--------------
gives:

metapost        > initializing instance 'metafun' using format 'metafun'
metapost        > loading 'metafun.mp' (experimental metapost version two)
! String contains an invalid utf-8 sequence.
l.6
   񞞋_number=2
<inserted text> ...re.mp ; fi ; ;;;;]===], false)}

\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
                                                 \egroup \placeMPgraphic \d...
\dostartMPpage ...??mg ][#1]\processMPgraphic {#2}
                                                 \dostopfittingpage
l.5 \stopMPpage

?


All three files compile as expected with luatex rev 4086


Greetings Lutz


2011/3/1 Hans Hagen <pra...@wxs.nl>:
> On 1-3-2011 11:17, Lutz Haseloff wrote:
>>
>> Hi all,
>>
>> with latest ConTeXt MKIV
>> Metapost Labels doesn't work for me anymore.
>> My Code:
>>
>> \starttext
>> \startMPcode
>> label(textext("Test"),origin);
>> \stopMPcode
>> \stoptext
>>
>> The Output only shows the word "mpout" as the Label.
>
> works ok here
>
>> There seems to be a Problem with externalfigure too.
>>
>> With:
>>
>> \starttext
>> \startMPcode
>> externalfigure "blblogogr.pdf" xscaled 35mm yscaled 19mm shifted
>> (13mm,15mm);
>> \stopMPcode
>> \stoptext
>>
>> I get the error message:
>>
>> metapost>  loading 'metafun.mp' (experimental metapost version two)
>
> beware: 35cm is a scale factor so the natural size gets scaled by 35 * cm (a
> constant)
>
> use xsized and ysized instead (or just one to stay in proportion)
>
>
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to