I am new to latex. I would like to pass command line arguments (probably more) to \newcommand macro and expecting output like below.
if input is 1
/include {1.tex}
else if input is 2
/include {2.tex}
else if input is 3
/include {3.tex}
else if input is 1 and 2
/include {1.tex}
/include {2.tex}
else if input is 1 and 2 and 3
/include {1.tex}
/include {2.tex}
/include {3.tex}
and so on. I have heard some xkeyval, xargs packages do like this. But i am not sure about its implementations.
How can i give too many arguments to latex? How can i parse/differentiate the arguments and then pass accordingly?
\multiinput{1,2,3}, in other words input is the name of the files to be added. Am I right? – percusse Mar 26 '13 at 14:41