You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pgfkeys will strip braces around single arguments, e.g.
\pgfset{
/test/foo/.code=bar,
/test/.style n args={1}{/test/.cd,#1},
/test={foo},
}
will result in
! Package pgfkeys Error: I do not know the key '/test/f' and I am going to igno
re it. Perhaps you misspelled it.
This is totally expected when you know that /.style handlers are implemented in terms of /.code handlers and usual TeX argument brace stripping applies. However, this is not mentioned clearly in the manual.
The text was updated successfully, but these errors were encountered:
With current implementation, to successfully pass foo to key /test, one has to use four extra pair of braces \pgfkeys{/test={{{{foo}}}}}, which is rather inconvenient.
Since this only happens to keys defined by <key>/.style n args={1}{...} (although this kind of usage is fully avoidable), how about specially treat #2 == 1 in definition of \pgfkeysdefnargs@? For example,
Version: 3.1.5b
pgfkeys
will strip braces around single arguments, e.g.\pgfset{ /test/foo/.code=bar, /test/.style n args={1}{/test/.cd,#1}, /test={foo}, }
will result in
This is totally expected when you know that
/.style
handlers are implemented in terms of/.code
handlers and usual TeX argument brace stripping applies. However, this is not mentioned clearly in the manual.The text was updated successfully, but these errors were encountered: