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
-
___
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___