#StackBounty: #tikz-pgf "node contents" is no more available in label, what's going on?

Bounty: 100

Normally a label is a node and we can use it as such, at least I think I was able to do it before version 3.1 of TikZ.

Now when I try to use node contents in label, for example like this :

  tikznode[label={[node contents=B]}]{A};

I receive the following error

! Package tikz Error: Giving up on this path. Did you forget a semicolon?.

This is the same error that we obtain if we use node contents style within non empty node, like this node[node contents=B]{A};.

So my question is : Has something changed in the way labels are treated in TikZ since version 3.1 ?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.