This is what I want to do:
\newcommand{\foobar}[n]{%
\hspace*{1.5ex}-\hspace{1ex}\emph{#n}\\%
}
And then use it like this:
\foobar
{Hello}
{World}
However this doesnt actually work. I want
\hspace*{1.5ex}-\hspace{1ex}\emph{#n}\\%
To appear for as many arguments as I supply to \foobar. How do I do this?
NOTE
To clarify, what I want finally is this:
- Hello
- World
- N number of other arguments

\foobarmacro recognizes that{World}(in your example) is the last parameter? I. e. that n=2. Is there a symbol or mark for that? – wipet Sep 02 '15 at 17:21\foobar abcis typically legal with a b and c being#1,#2,#3. You need some kind of terminator but as others have said the latex syntax here should be\foobar{a,b,c,d,e}– David Carlisle Sep 02 '15 at 17:29