[metapost] string-array

stefan knorr stefan at moontraveler.de
Sun Dec 19 20:49:41 CET 2004


dear listies,
i plan to store some strings as array in the form:

----------------------------------------------
|numeric a[];
|string  b[];
|a[0] = 0; b[0] := "label1";
|a[1] = 3; b[1] := "label2";
|.
|.
|.
----------------------------------------------

later i want to use the structure to draw labels in the form:

----------------------------------------------
|label.rt(btex b[0] etex, (a[0], a[0]));
----------------------------------------------

this does not work.
how can i do something like this? any suggestions?
is there any atlernative way to do something like this?

best regards,
stefan



More information about the metapost mailing list