TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

Let's consider a really simple tree like the following :

\usepackage{qtree, tikz-qtree, tikz}

    [.X ] [.compl ] ]   


In its natural form, it looks like two symetric branches /\ . How can I make it looks like |\ (or eventually the reverse, /|). In other words, given that I only use binary branches, how can I "tell my tree" to put a branch straight, and the other one oblic left of oblic right? I may eventually want to draw a tree like this :

share|improve this question
up vote 5 down vote accepted

I don't know with qtree but with forest it's easy with options calign=first or calign=last.

%\usepackage{qtree, tikz-qtree, tikz}

    [XP, for tree={calign=first}
    [X [a [A, calign=last [B] [D]] [B]] [b] [c]] [compl, calign=last [A] [B] ] ]   


enter image description here

share|improve this answer
Oh, I never heard of this package. It seems very powerful. Maybe I'll start using only it. One small thing though, how do you do to print the bracket symbol on the tree (I want my node to print [compl] instead of simply compl ? – BonyHoax Mar 24 '14 at 17:48
@BonyHoax, This one is easy, use {[compl]}. – Ignasi Mar 24 '14 at 17:50

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.