14 Nov
2008
14 Nov
'08
4:15 p.m.
On Fri, 14 Nov 2008, Alan STONE wrote:
Hi,
For example
\define\somemacro[3]{...}
gets invoked with
\somemacro{#1}{#2}{#3}
How do you get rid of those repeating pesky curly brackets and invoke a user defined macro with
\somemacro{#1,#2,#3}
instead ? :O)
Others have replied how to define this if you want arbitrary number of parameters. But if you want something similar to \somemacro#1#2#3 you can use (the is some extra book-keeing because you want {..} as delimiters. Which means you either change catcodes, or do this shuffling around of arguments) \def\somemacro#1% {\dosomemaco[#1]} \def\dosomemacro[#1,#2,#3]% {whatever you want the macro to be} Aditya