I'm trying to define a macro that take as an input a CSV list and create an item list.
etoolbox comes just handy for this and the macro I'm using is
\begin{itemize}
\renewcommand*{\do}[1]{\item[] #1}
\expandafter\docsvlist\expandafter{\participants}
\end{itemize}
where \participants is the CSV list of items to itemize.
My problem is that when I insert this macro as a newcommand definition like
\newcommand{\listparticipants}{
\begin{itemize}
\renewcommand*{\do}[1]{\item[] #1}
\expandafter\docsvlist\expandafter{\participants}
\end{itemize}
}
I get the following error message
! Illegal parameter number in definition of \listparticipants.
<to be read again>
1
l.29 }
What am I missing?


