On Wed, Aug 12, 2009 at 12:51, Andreas Harder wrote:
Am 12.08.2009 um 07:40 schrieb Aditya Mahajan:
Another way to do this is to use
\TeXtext{1}{ABC} etc.
and then call
draw sometxt(i)
For Sec 4.5 of Mojca's my way on sometxt http://dl.contextgarden.net/myway/sometxt.pdf
Thank you for the tip, I tried it, but sometext seems deprecated in mkiv ("[do we need TeXtexts in MkIV]").
This only means that you need to send a request to Hans and ask for reenabling the feature, explaining that it's still usable :) :) :) It's a question from him after all (I think that I disabled the feature in my module for mkiv since it didn't work). If he was sure that it needs to be deprecated, he would not write that string :) I'm sure that there's a workaround (or at least a dozen of other ways), but I have no time (and my computer is being repaired again) to inspect right now. MKIV is both very powerful and fast, so you could probably also define strings inside metapost run, something like string mystrings[]; strings[1] := "ABC"; strings[2] = "DEF"; draw textext(strings[1]); Untested.
I've different buffers named 1–12 and would like to pipe them to Metapost. I thought I could use a textext(\getbuffer[i])-construct, it failed. So I tried it with \setMPtext{}{} …
(There should be at least quotation marks: textext("\getbuffer[i]"), but I don't clain that it would work then.) Maybe Hans should answer why \setMPtext fails. Mojca