![](https://secure.gravatar.com/avatar/1930c667fbd3884fd581e95eb4d5b15c.jpg?s=120&d=mm&r=g)
27 Sep
2012
27 Sep
'12
5:45 p.m.
Hi all, As I understand it, \define[2] is preferred over \def#1#2 because it refuses to overwrite existing commands. \define[2]\mycommand{code code code} defines a command to be invoked with \mycommand{...}{...} Can I use \define, or a related command, to define a command that takes square-bracket arguments, like so: \mycommand[...][...] ? When I type \define[1][2]\mycommand{code code code} that doesn't work. Cheers, Sietse