TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I read many examples in tikz-qtree, but I didn't find one which illustrates how to add text around/below a node using qtree. Anyone knows how to draw the following tree using tikz-qtree?

how to draw this

share|improve this question
up vote 6 down vote accepted

Here's one way to do this:

every tree node/.style={align=center,anchor=north,draw,circle,inner sep=3pt},
sibling distance=2cm,
edge from parent/.style=
     {draw, edge from parent path={(\tikzparentnode) -- (\tikzchildnode)}},

\Tree [.{}  \node[myleaf=A]{}; [.{} \node[myleaf=B]{};  \node[myleaf=C]{}; ]]


output of code

share|improve this answer

I know that the OP asked specifically for tikz-qtree but, just in case, here's one possibility showing the approach using the powerful forest package:


for tree={
  nodes={anchor=north,draw,circle,inner sep=3pt},
  s sep=2cm
[ [,myleaf={a}] [ [,myleaf={b}] [,myleaf={c}] ] ]


enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.