9

I have a tikz picture and at some point I draw the following node:

\node[thick,
      scale=0.5,
      minimum size=1.3cm,
      fill=red,
      circle,
      draw,
      fill opacity=0.3,
      label=right:$= (0 1 0 1 0 \ldots)$
      ] (the) at (6.2, 1.5) { };

The thing is that I want to separate the 0 1 0 1, etc with commas. I can't do that, because I think TikZ thinks it separates the next parameter in the square brackets. How can I escape the comma?

  • 1
    Put braces around the label. – clemens Oct 30 '12 at 22:25
14

By eating healthy or using braces around shady characters.

\begin{tikzpicture}
\node[thick,
      scale=0.5,
      minimum size=1.3cm,
      fill=red,
      circle,
      draw,
      fill opacity=0.3,
      label=right:{$= (0,1,0,1,0,\ldots)$}
      ] (the) at (6.2, 1.5) { };
\end{tikzpicture}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.