I want to create a macro that yields an inline lists. I can easily do this using enumerate* form the the enumitem package, but when I attempt to wrap this in a macro, I get:
Extra }, or forgotten \endgroup. \item ...ctor \relax \fi }\color@endgroup \egroup \enit@outeritem
Code:
\documentclass{article}
\usepackage[inline]{enumitem}
\usepackage{pgffor}
\newlist{MyHChoices}{enumerate}{2}
\setlist[MyHChoices]{label=\Alph., itemjoin={\hspace{2.0em}}}
\newcommand*{\InlineList}[1]{%
\MyHChoices
\foreach \Choice in {#1} {%
\item \Choice
}%
\endMyHChoices
}%
\begin{document}
\begin{MyHChoices}
\item One
\item Two
\item Three
\end{MyHChoices}
%\InlineList{One, Two, Three}% ???
\end{document}