I am trying to define a variable with an asterisk in its value but keep getting errors. I have tried \def, \let and \newcommand but neither worked. A minimal example:
\documentclass{article}
\usepackage{enumitem}
\def\cLists{leftmargin=*}
\setlist{\cLists}
\begin{document}
\begin{itemize}
\item a
\end{itemize}
\end{document}
Any help, please?
\expandafter\setlist\expandafter{\cLists}instead. I think this has to do with the definition of\setlistthat can take optional arguments. – Werner Feb 21 '12 at 00:23\setlistexpects a list of options and doesn't perform expansion. – egreg Feb 21 '12 at 00:27