Wondering if you can accomplish all of these variations in LaTeX by defining a custom command:
\mycmd{tag}{color}{keyval}
\mycmd{tag}{keyval}
\mycmd{keyval}
So it could be used like this:
\mycmd{foo}{black}{size=1cm}
\mycmd{foo}{color=black,size=1cm}
\mycmd{tag=foo,color=black,size=1cm}
Either one would work. How to define the command so this sort of thing would work?
\newcommand\mycmd[3][...]
g
specifier{}
delimited arguments should be mandatory, if you want optional arguments as here, then they should be[]
delimited.