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

I am using the following code to draw a fairly simple tree. The problem is that the line break commands are being ignored although I have found a number of examples on the net that show that they should work. What I am getting is the figure below. I am not sure where my problem is and would appreciate any help.


\tikzset{level distance=40pt, sibling distance=10pt}

\Tree [. {MapReduce Join \\ Implementations} 
        [.{Repartition Join} ]
        [.{Semijoin} ] 
        [.{Map-only Join} 
            [.{Broadcast join} ]
            [.{Partition join} ] 
    [.{Similarity join} ]
    [.{Multi-way join} 
        [.{Multiple \\ MapReduce \\ jobs} ]
        [.{Replicated join}  ] 

enter image description here

share|improve this question

Never mind... I should read the manual more carefully. The following solves the issue:

\tikzset{every tree node/.style={align=center,anchor=north}}

Sorry for taking up bandwidth.

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.