Hi Jean Magnan,

You should add  \useMPlibrary[txt] in order to get textext working.
Further define AX as a path only.
In the dummy-graphic say drawdblarrow AX.withcolor blue;

After these changes I got the label as well as the double arrow.

Kind regards
Willi



Jean Magnan de Bornier wrote:
> Hello,
> I'm having some trouble with MPgraphics; here is a minimal example:
> .............................
> \setupoutput[pdftex]
> \runMPgraphicstrue
> \setuppapersize[S6][S6] 
>
> \setupcolors[state=start]
>
> \startMPinclusions
>  numeric u; u=.8cm;
> path AX; AX = drawdblarrow (10u,0) -- (0,0) -- (0,10u);
> \stopMPinclusions
>
> \starttext
> \startuseMPgraphic{dummy}
>
> pickup pencircle scaled 1mm;
> draw AX withcolor blue; 
>  label.rt(textext("$3x^2+\pi$"), (5u,6u));
> \stopuseMPgraphic
>
> \placefigure[left]{bla.bla}{\useMPgraphic{dummy}}
>  
> \input dawkins
> \stoptext
> .............................
>
>
> After compilation with texexec I get "unknown" instead of the expected
> label.
>
> What is wrong with me?
>
> TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
>
>                texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
>                texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
>                    tex : pdfeTeXk, 3.141592-1.30.4-2.2 (Web2C 7.5.5)
>                context : ver: 2005.10.27
>                cont-en : ver: 2005.10.27  fmt: 2006.4.28  mes: english
>
> Thanks ia
>   
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to