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
_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context