Possible Duplicate:
More than one optional argument for newcommand
Is it easy to define a new command with several optional arguments, that one would call as follows :
\mycom[opt1=2,opt2=blabla]{some arg}
Possible Duplicate:
More than one optional argument for newcommand
Is it easy to define a new command with several optional arguments, that one would call as follows :
\mycom[opt1=2,opt2=blabla]{some arg}
\command[arg1][arg2]not optimal, since i will never remember which one is which one, if i want to give only one of them. I will look at the other suggestions. – Loic Rosnay Jan 05 '12 at 12:53keyvalandkeycommandseem to do exactly that...i just have now to choose ! Any suggestion ? – Loic Rosnay Jan 05 '12 at 12:57kvoptions? Read this, especially sections 3.3 and 7. – lockstep Jan 05 '12 at 13:08keyval. For more complex macros, see A big list of every keyval package – Leo Liu Jan 05 '12 at 13:12\usepackage{keycommand}, and it is verx eays to use, for my simple command in particular. Thanks for all the suggestions. – Loic Rosnay Jan 05 '12 at 13:58