If I would like to create a new command called \AddTwoArguments, which takes two arguments, I could do it as follows:
\newcommand{\AddTwoArguments}[2]{ {\bfseries#1} {`#2'} }
So,
\AddTwoArguments{A}{B}
will output:
A ‘B’
Great. The world couldn't be happier.
But, imagine I would like to create a new command called \AddAnyEvenNumberOfArguments which works for any even number of arguments, which always follows the pattern above, for every pair of arguments.
For example,
\AddAnyEvenNumberOfArguments{A}{B}
would still give:
A ‘B’
whereas
\AddAnyEvenNumberOfArguments{A}{B}{C}{D}{E}{F}
would give:
A ‘B’ C ‘D’ E ‘F’
How could that be done please?
For example,



\AddAnyEvenNumberOfArguments{A}{B}{C}{D}{E}{F}\stop? – Werner Oct 06 '17 at 02:33\stop, so I have difficulty understanding. Could you explain more or perhaps post an answer please? – O0123 Oct 06 '17 at 02:39\AddAnyEvenNumberOfArgumentsalways (a) consist of single letters and (b) be enclosed in curly braces? Separately, can it be guaranteed that there will always be an even number of arguments to the\AddAnyEvenNumberOfArgumentsdirective? If not, i.e., if the number of arguments is odd, what is supposed to be done? – Mico Oct 06 '17 at 03:05