2 Jun
2006
2 Jun
'06
9:09 p.m.
On Fri, 2 Jun 2006, Taco Hoekwater wrote:
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}}
Thanks Taco, Works like ... er ... magic. Where is \done set to true? Aditya