On Sat, Nov 17, 2001 at 08:54:42PM +0100, Jose Luis Diaz wrote: > But then suppose that I also want a label below each dot, typeset > with TeX, which reads: $t_1=3$, $t_2=20$, $t_3=25$. I can't use > btex/etex because I want to construct the text $t_1=3$ from the loop > variable, something like: > > for i=1 upto 3: > sprintf(string,"$f_%d=%d$",i,t[i]); %This is not Metapost, obviusly > label.bot(TEX(string), (0u, t[i]*u)); % This is > endfor; > > > How can be done?
Build your string s with something like s="$t_" & decimal(i) & "=" & decimal(t[i]) & "$"; and then write label.bot(TEX s,(0,t[i]*u)) and don't forget input TEX at the beginning of your file. Denis
