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
From this TeX.SX thread: https://tex.stackexchange.com/q/508391/134574
TikZ trims spaces around node names, but only sometimes. Apparently when the node name is followed by a ) the space is not removed:
\input tikz
\tikz{
\coordinate (A) at (0,0);
\coordinate (B) at (1,1);
\draw ( A ) -- (B);
% ^ No shape named 'A ' is known;\draw ( A -| B ) -- (B-|A);
% ^ No shape named 'B ' is known;
}
\bye
But leading spaces apparently are always removed.
I would say TikZ should always trim the spaces around the node name.
One could argue that this can break existing code which relies on this feature, but relying on trailing spaces is weird, I think :-)
If not, then perhaps the error message could be changed to add quotes around the node name so that the trailing space is more easily seen (suggested here: https://tex.stackexchange.com/q/389388/134574).
The text was updated successfully, but these errors were encountered:
From this TeX.SX thread: https://tex.stackexchange.com/q/508391/134574
TikZ trims spaces around node names, but only sometimes. Apparently when the node name is followed by a
)
the space is not removed:But leading spaces apparently are always removed.
I would say TikZ should always trim the spaces around the node name.
One could argue that this can break existing code which relies on this feature, but relying on trailing spaces is weird, I think :-)
If not, then perhaps the error message could be changed to add quotes around the node name so that the trailing space is more easily seen (suggested here: https://tex.stackexchange.com/q/389388/134574).
The text was updated successfully, but these errors were encountered: