I have several chapters in the folder /Chapters and I have the following LaTeX code:
\newcommand\chapnames{Chap1, Chap2, Chap3, Chap4, Chap5, Chap6}
\ForEach
{,}
{\input{./Chapters/\thislevelitem}}
{\chapnames}
Unfortunately, this piece of code does not work unless I change it to:
\ForEach
{,}
{\input{./Chapters/\thislevelitem}}
{Chap1, Chap2, Chap3, Chap4, Chap5, Chap6}
Is there a way to make it work while using \chapnames variable as shown in the \ForEach code at the top?
\ForEach? – egreg Jan 06 '13 at 19:22