Take the 2-minute tour ×
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.

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.

\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-qtree}

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

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

enter image description here

share|improve this question

1 Answer 1

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

 
discard

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.