Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
1  
Put braces around the label. –  cgnieder Oct 30 '12 at 22:25
    
thanks, that works. –  kloop Oct 30 '12 at 22:26

1 Answer 1

up vote 5 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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