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


I just tried the following and was suprised it didn't work:

  ... some commands

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

    \node {};

  ... other commands


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.

  very thick,
  every node/.style={   % <<< here was your typo
    minimum size=1.2mm,
    inner sep=0pt

  \node {};
Related Question