I think this is an easy for-loop question, but I can't seem to get it to work...
I frequently need to put a CC list at the end of the documents that I prepare. I have been making the list manually, doing something like
\noindent
\begin{tabular}{l l}
CC: & Dr. A. Name \\
& Mr. B. Name \\
& Dr. C. Name
\end{tabular}
How would I make a macro that accepts that list of names as an argument and outputs the tabular? I would like to declare a variable in my document
\cc{Dr. A Name, Mr. B Name, Dr. C Name}
then at the end of the doc do something like
\makecclist
which puts in the formatted cc list table at the end.
Thanks for any help!

csvsimplecould help? – Bernard Nov 12 '21 at 21:54