Is there a TikZ style attribute for adding default text to a node? For instance, I want to be able to do something like the following:
\begin{tikzpicture}[%
stuff/.style={%
draw,
text=Bla bla
},
]
\node at (0,0) [stuff] {};
\node at (0,1) [stuff] {};
\node at (0,2) [stuff] {};
\node at (0,3) [stuff] {};
\end{tikzpicture}
to produce a picture containing 4 nodes, each with the text "Bla bla". I want to be able to create nodes with the same text without having to add it manually.
Best Answer
It's not exactly what it was designed for, but you can add fixed text to the
font
parameter: