I am using etoolbox
for list processing, specifically \forcsvlist
.
When passing the comma-separated list directly to \forcsvlist
, it is able to parse each item in the list. However, if I define the list variable somewhere else, \forcsvlist
is not able to distinguish between each item in the list, and takes it as one whole argument.
Eg:
\newcommand\doforme[1]{#1 \\}
\forcsvlist\doforme{a,b,c}
Above code works perfectly adding newline to end of each item. But following code doesn't work
\newcommand\doforme[1]{#1 \\}
\def\@authors{a,b,c}
\forcsvlist\doforme{\@authors}
This makes me think that there must be some other way to define the list that \forcsvlist
can interpret.