[Tex/LaTex] Why does ‘every node’ not work inside a scope environment

nodesscopingtikz-pgf

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?

Best Answer

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}
Related Question