Having text labels inside nodes in trees drawn by tikz-qtree is straightforward, but is it possible to also have a label outside the node? For example, a node with letter A inside it, and letter B outside it on its left/right-hand-side?

1 Answer 1


You can add labels to nodes, which are nodes themselves, such as in this tikz-qtree line:

[.\node [label=right:B] {A};]

There are further placement options, such as left, above, below, above left, ... and style options, such as label={[red]right:B}.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .