In the description of the /tikz/shape node option on p. 216 of the TikZ & PGF manual for version 3.0.1a states:
no default, initially
rectangle
It goes on to explain that this option selects
the shape either of the current node or, when this option is not given inside a node but somewhere outside, the shape of all nodes in the current scope.
What is the difference between an option that has a default value and one that has initially a certain value? If instead of initially being rectangle the /tikz/shape would be rectangle by default, what would change in its behavior and the way it can be used?
Can someone please explain and demonstrate the differences with a minimal example?
The present question is similar to this one. However that question deals with PGF (which I am unfamiliar with), whereas the current question deals with TikZ.
PGF and TikZ are two separate levels. Consider the following quote from the manual (p. 221):
Both PGF and TikZ support such multipart nodes. On the lower level, PGF provides a system for specifying that a shape consists of several parts. On the TikZ level, you specify the different node parts by using the following command:
\nodepart[<options>]{<part name>}
The point of this quote is to show that the same feature can have different manifestations in PGF vs. in TikZ and it is reasonable to ask how a certain feature manifests in one level and how it manifests in another level, and this would constitute two different questions, just as a question about TikZ's \nodepart command can coexist with a question about PGF's system for specifying that a shape consists of several parts without any of these questions being a duplicate of the other.
My question is: Is it possible to explain the difference and to give a minimal example using only TikZ concepts and syntax without resorting to low level PGF? Is the difference perceptible from a high-level user's perspective who only knows TikZ? (I am such a user.)
tikzandpgfuse the same key management system, so I think that the question you marked (https://tex.stackexchange.com/questions/50856/pgf-keys-differences-between-initial-and-default) is really a duplicate. – Rmano Jul 11 '17 at 07:46shapekey has not default value, you can't write\node[shape]{...}. You must provide a value (like\node[shape=circle]{...}). Asshapehas an initial value (rectangle), with\node{...}you get a rectangular node. – Paul Gaborit Jul 11 '17 at 07:54rectanglebut does not have a default value. – percusse Jul 11 '17 at 08:00shapedoesn't use/.initialor/.defaulthandlers. – percusse Jul 11 '17 at 08:10/.initialand/.defaultkeys, and another one what the manual means when they say "default whatever, initial value whatever else" --- that can be implemented with that keys or not. – Rmano Jul 11 '17 at 09:18