I have inserted a tree diagram in a LaTeX document which I have drawn using the qtree
package:
...
\usepackage[noload]{qtree}
...
\begin{document}
...
\Tree [.{A} [.{B} {C} {D} ] [.{B'} {D'} ] ]
...
\end{document}
This is what the output looks like:
So far, so good.
What I would need to do now is wrap the final nodes of the tree into (labeled) boxes in a way that cuts across the syntactic branching of the tree.
To give you an idea, this is a very rough sketch of what I would like to achieve (where a and b stand for the box labels):
I understand that this might be unattainable with qtree
since the !qframesubtree
only allows you to put boxes around complete subtrees.
Any suggestions as to how to get around the problem?
qtree
is really old now. I would recommendforest
which can do this trivially.forest
either, sinceforest
seems to also require specifying the child nodes of the current subtree to be boxed, not those of other subtrees.