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 just tried the following and was suprised it didn't work:

\begin{tikzpicture}
  ... some commands

  \begin{scope}[very thick,
    every node=./style={circle, fill=white, minimum size=1.2mm, inner sep=0pt}
    ]

    \node {};
  \end{scope}

  ... other commands

\end{tikzpicture}

results in

! Package pgfkeys Error: I do not know the key '/tikz/every node./style' 
and I am going to ignore it. Perhaps you misspelled it.

How can I make every node available in a scope environment?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

There's a typo in the syntax. Compare your version with this one.

\begin{scope}[
  very thick,
  every node/.style={   % <<< here was your typo
    circle,
    fill=white,
    minimum size=1.2mm,
    inner sep=0pt
  }
]

  \node {};
\end{scope}
share|improve this answer
    
oh thanks, this is embarrassing... :) –  Sebastian Jan 18 '12 at 8:43
    
No reason for that. Typos occur in the best circles. –  Thorsten Donig Jan 18 '12 at 8:47
1  
Apparently the = in every node=/.style... is ignored though. I didn't know that... Does anybody know why this happens? I can understand why they would not be allowed in the key tree, but stripped out alltogether seems a bit strange. –  Roelof Spijker Jan 18 '12 at 9:12
add comment

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.