I have a tree from tikz-qtree
that looks like this:
\documentclass{standalone}
\usepackage{tikz}
\usepackage{tikz-qtree}
\tikzset{frontier/.style={distance from root=80pt},
every leaf node/.style={text=blue}
}
\begin{document}
\begin{tikzpicture}
\Tree
[.Adj
[.Adj
[.alt
R-Adj ]
[.a
AF-G ] ]
[.\node[shape=coordinate] {};
[.s
AF-N ] ]]
\end{tikzpicture}
\end{document}
As you can see, I'm able to add color to the leaves. However, I want to have multiple colors within a single leaf node. For example, I'd like to have "R" be red and "Adj" be blue inside the left-most leaf node. Then, I'd like to have "AF" in the center and right-most nodes be green. And finally, I want the "G" and "N" to be purple and brown, respectively. Is it possible to do something like this using tikz-qtree
?