Let's consider this simple example of a TikZ picture that defines the node distance and a style called mynode within the square brackets:
\begin{tikzpicture}[
node distance=2.5em, auto,
mynode/.style={draw=black, rectangle, minimuim size=2em},
]
\node[mynode] (name) {label};
\end{tikzpicture}
When create another TikZ picture within the same LaTeX document, I can copy the content between the square brackets to get the same style.
However, I have to update all figures separately to change the style. How can I define the content between the square brackets in a central place and use it in multiple TikZ figures?
\tikzset{<options>}somewhere in a higher group to apply settings for that group, or you can set them in your preamble for global settings. – Max Sep 01 '18 at 12:34style a/.style={style b/.style={draw,minimum size=2em}}. Then if you if you callstyle aat the start of yourtikzpicturelike\begin{tikzpicture}[style a], it will makestyle bavailable for use. But if you don't callstyle a, it is not available. – Max Sep 01 '18 at 13:03header.texfile containing all styles then\inputthis file in the preamble of your figures if you precompile them asstandalonedocument – BambOo Sep 01 '18 at 13:03style b, and letstyle aoverwrite it locally. Then if you callstyle afor a certain picture, it uses the overwrittenstyle b, and pictures withoutstyle ause the originalstyle b. – Max Sep 01 '18 at 13:04