I would like to highlight a different node of the tikz flowchart every time I call the figure in the relevant chapter.
I was thinking of defining a new style "highlight" and then pass a parameter when including the tikz picture do this with the additional parameter that sets the style of <node name> == <parameter> to highlight.
However, I'm new to tikz so I have no clue how to do this.
The code below (tikzpicture) is included in the relevant chapter using the following:
\includestandalone[width=\textwidth]{tikz/content}
\caption{Outline of this thesis.}
\label{fig:contents}
\end{figure}
Thanks in advance for reading me and your help.
Julien
\documentclass[border=2pt]{standalone}
\usepackage[latin1]{inputenc}
\usepackage{tikz}
\usepackage{fix-cm}
\usetikzlibrary{shapes,arrows}
\usetikzlibrary{positioning}
\begin{document}
\pagestyle{empty}
% Define block styles
\tikzset{block/.style={draw, rectangle, fill=gray!20, text centered, minimum height = 3em,text width=7em}}
\tikzset{empty/.style={draw, rectangle, fill=none, text centered, minimum height = 3em,text width=7em}}
\tikzset{line/.style={draw, -latex'}}
\begin{tikzpicture}[node distance = 1cm, auto]
% Place nodes
\node [block, text width=30em] (init){\Large Aeroelastic modeling from wind tunnel tests using frequency domain identification};
\node [block, text width=17em, below=1em of init] (sysid) {\large System identification\\ in aeroelasticity};
\node [empty, text width = 12em, below=1em of sysid, node distance= 3em] (theory) {Theory \& Methods \\ \textit{Chapter \ref{chpt:theory}}};
\node [block, text width = 16em, below left=1em and -5em of theory] (unsteady) {\textbf{Unsteady Aerodynamics} \\ 2D Full-Span (Part 1)};
\node [block, text width = 18em, below right=1em and -5em of theory] (aeroelastic) {\textbf{Aeroelastic} \\3D Cantilever (Part 2)};
\node [block, below left=0.5em and -7.8em of unsteady] (setupone) {Setup};
\node [block, right=1em of setupone] (expone) {Experiments};
\node [empty, below=0.5em of setupone] (setoneCh) {The AATB \\ \textit{Chapter \ref{chpt:AATB}}};
\node [empty, below=0.5em of expone] (unsteadyExp) {Forced-motion \\ \textit{Chapter \ref{chpt:forced-motion}}};
\node [block, text width =8em, below left=0.5em and -8.8em of aeroelastic] (setuptwo) {Setup};
\node [block, right=1.2em of setuptwo, text width = 8em] (exptwo) {Experiments};
\node [empty, text width =8em, below=0.5em of setuptwo] (settwoCh) { Cantilver AATB \\ \textit{Chapter \ref{chpt:cantiAATB}}};
\node [empty,text width = 7em, below right=0.5em and -7.8em of exptwo] (NL) {Nonlinear response \\ \textit{Chapter \ref{chpt:aeroelastic}}};
\node [empty,text width = 7em, below=0.5em of NL] (gust) {Gust response \\ \textit{Chapter \ref{chpt:cantiGust}}};
\node [empty,text width = 7em, below=0.5em of gust] (tv) {Time-varying \\ \textit{Chapter \ref{chpt:TV}}};
\node [below left=-0.75em and -0.8em of exptwo] (startexp) {};
% Draw edges
\path [line] (init) -- (sysid);
\path [line] (sysid) -- (theory);
\path [line] (sysid) -| (unsteady);
\path [line] (sysid) -| (aeroelastic);
\draw (unsteady) |- (setupone);
\draw (unsteady) |- (expone);
\draw (aeroelastic) |- (setuptwo);
\draw (aeroelastic) |- (exptwo);
\draw (startexp) |- (NL);
\draw (startexp) |- (gust);
\draw (startexp) |- (tv);
\end{tikzpicture}
\end{document}

\tikzsetcommands to below the\begin{document}to make the code work when using\includestandalone[]{<tikzfile>}in the main document as illustrated in the original question. – Julien Aug 12 '16 at 13:05