I'm trying to create a dynamic for loop:
\def\forinmacro{{a,b,c,d}}
\iftb{SomeBool}{\def\forinmacro{{a}}}
\foreach \m in \forinmacro {...}
Note if I change the last line to
\foreach \m in {a,b,c,d} {...}
it works.
Unfortunately the comma's seem to screw up the foreach and it gives errors(changing a,b,c,d to a lets it work).
Why is \def\forinmacro{{a,b,c,d}}
breaking the foreach but \def\forinmacro{{a}}
not?
\forinmacro
have only one element.