Using (first of all) xparse I want to create a command like this:
\DeclareDocumentCommand{\c}{ s > { \SplitList { ; } } r""}
{
% do something
}
It basically should just do the following:
- convert
"f;g;h;..."tof » g » h » ..., if s is false (no star is given) - convert
"f;g;h;..."tofgh..., if s is true (a star is given)
The whole purpose is being able to redefine the command to basically reverse the order, that is:
- convert
"f;g;h;..."to... « h « g « f, if s is false (no star is given) - convert
"f;g;h;..."to...hgf, if s is true (a star is given)
How can I nicely do this using "high-level functions"? I am already using xparse, xstring and I am thinking etoolbox or something similar might help. I do not really want to deal with "low-level" TeX programming, if that makes any sense.
