I am trying to build a command which is similar to LaTeX \cite{}
, which accepts a comma-separated list of parameters like this
\cite{Wall91, Schwartz93}
I would like to pass each item in the comma-separated list which the parameter represents to another command and return the concatenation of the individual results. I imagine it to be something like this:
\newcommand{\mycite}[1]{%
\@for\var:=\split{#1} do{%
\processCitation{\var}%
}%
}
Literature on String manipulation, variables and looping in LaTeX would be great!
Also: Is there a way to join the individual results using commas again?
Thanks!