I have a macro of the following form:
\tikzset{
foo/.style 2 args={
...
},
foo/.default={2pt}{}
}
If I do not want to specify any argument, I can use foo. If I want to specify the first argument, I can use foo={3pt} (EDIT: in this case, the second argument is empty). If I want to specify both arguments, I can write foo={3pt}{green}.
Now I want to call foo, use the default value for the first argument and specify a value for the second argument. Is this possible ?
Something like foo={default}{green}.
foo={3pt}will not behave the way you suggested -- it always makes the second argument empty no matter what the second argument default is. – Hood Chatham Feb 01 '18 at 19:33