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

Gerben Wierda gerben.wierda at rna.nl
Mon Apr 27 10:47:09 CEST 2020

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:


pic p;
p := textext("\startuseMPgraphic[instance=doublefun]{followtokens}path RotPath ; RotPath := fullcircle ;\stopuseMPgraphic\followtokens{I am creating a line of text here}");
draw pic;


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200427/6c92e79e/attachment.htm>

More information about the ntg-context mailing list