[Tugindia] clarification on edef

Baskaran.K tugindia@tug.org
Fri, 10 Jan 2003 09:46:59 +0530


Dear sirs,

I need some clarification. Kindly help me.

For example:

\def\kk{lllll}
\def\aa#1{\edef\kk{\kk#1,}}
\aa{aa}
\aa{bb}
\aa{cc}
\aa{dd}


\kk===>output is  ``llll,aa,bb,cc,dd,''

I wish to remove the last comma; the out put must be  ``llll,aa,bb,cc,dd''
The input of \aa  repeated several times (not fixed times). We could not
modify the input ``\aa''. How to remove the 
last puncutation , or add new punctuation in last position.



Regards
Baskaran NK