[NTG-context] Using \startuseMPgraphic inside a textext() in METAPOST?

Hans Hagen j.hagen at xs4all.nl
Mon Apr 27 11:24:37 CEST 2020


On 4/27/2020 10:47 AM, Gerben Wierda wrote:
> I am in METAPOST which is inside TeX and I’d like (in METAPOST, not in 
> TeX) to let a string follow a path. Adapting from the MetaFun manual 
> around page 250, I tried this:
> 
> \starttext
> 
> \startMPpage[instance=doublefun]
> pic p;
> p := textext("\startuseMPgraphic[instance=doublefun]{followtokens}path 
> RotPath ; RotPath := fullcircle ;\stopuseMPgraphic\followtokens{I am 
> creating a line of text here}");
> draw pic;
> \stopMPpage
> 
> \stoptext
> 
> But that does not work. Is there a way I can from within my METAPOST 
> code get  string (TeX code) to follow a path I have? In my case, I 
> cannot escape outside the \startMPpage- -\stopMPpage environment, as the 
> actual path is constructed there and the text following the path should 
> be on that page.
search for lmt_followtext in the luametafun manual

Hans

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


More information about the ntg-context mailing list