2 Jun
2006
2 Jun
'06
8:47 p.m.
Aditya Mahajan wrote:
There is an extra comma at the end. That is,
\SEQ X[1,2,3] expands to $X_1,X_2,X_3,$ ^^^
How can I treat the last element of a commalist differently?
It is much easier to treat the first element as special: \def\doSEQ[#1][#2]% {\ifsecondargument \donefalse \mathematics{\processcommalist[#2]{\dodoSEQ{#1}}} \else \mathematics{\bold{#1}}\fi} \def\dodoSEQ#1#2% {\ifdone ,\else \donetrue\fi#1_{#2}} Cheers, Taco