Is there an elegant way to color subtrees in tikz-qtree, without going through each of the respective nodes and edges by hand?
The following code example shows the ugly way:
\documentclass{standalone}
\usepackage{tikz-qtree}
\begin{document}
\tikz{
\Tree
[.A
[.B D ]
[.\node[text=red]{C};
\edge[draw=red];\node[text=red]{E};
\edge[draw=red];\node[text=red]{F}; ]
]
}
\end{document}
Instead I would like to fix the color of a subtree just in one place, for example at its root node (hence at 'C' in the code example). Any suggestions?
tikz-qtree
installed, but can you use a\begin{scope}...\end{scope}
within the tree? – Turion Aug 28 '14 at 17:18\tikzset{every level 1 node/.style={text=red}}
? – user11232 Aug 29 '14 at 0:37