[Tex/LaTex] Comma in macro parameters

comma-separated listmacros

I have a macro accepting several optional arguments in a comma separated list.
I would like to assign a value containing a comma to a particular argument. Is there a way to "escape" this particular comma so that it will not be interpreted as the beginning of a new argument.

Here is an except of what I would like to achieve:

% ...

I would like to set arg1 to a,b and not, of course, seeing this interpreted as "arg1=a and b".


Best Answer

Well I guess that was a trivial question...

The answer is:


@Qrrbrbirlbel: thanks.