24 Jun
2007
24 Jun
'07
8:33 a.m.
how do I change
\startTeXtexts \dorecurse{10}{\TeXtext{\recurselevel}{$x_{\recurselevel}$}} \stopTeXtexts
so that I can print labels from x_0 up to x_9? Do I need to use \defineconversion and \convertnumber?
No, use \dostepwiserecuse. The general syntax is
\dostepwiserecurse {from} {to} {step} {action}
so
\dostepwiserecurse {0} {9} {1}
I guess it must be \dostepwiserecurse {0} {9} {1} {}
{\TeXtext{\recurselevel}{$x_{\recurselevel}$} should work.
I have tried that, but sometxt(0) prints nothing. Anyway, I have solved it like this: \startTeXtexts \TeXtext{0}{$x_0$} \dorecurse{30}{\TeXtext{\recurselevel}{$x_{\recurselevel}$}} \stopTeXtexts Thanks again! Nicola