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 have some trouble trying to put a mindmap graph and a tikz-qtree graph together in the same document. With the example below, the mindmap is all scrunched up. But if you comment out the \usepackage{tikz-qtree} line and the first tikzpicture which contains the tikz-qtree code, then the mindmap looks just fine.

Is there a way to put them together? Thanks. Btw, not sure if this is relevant, I will also use this in with beamer.

\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usetikzlibrary{arrows,backgrounds,calc,fit,mindmap,positioning,trees,shapes}

\begin{document}

\begin{tikzpicture}
    \Tree       % space is REQUIRED after every node!!!
    [.S
    [.A
        [.B [.C D ]
            [.E false ] ]
    ]
    ]
\end{tikzpicture}


\begin{tikzpicture}{mindmap}
\path[mindmap,concept color=black,text=white]
    node[concept] {Start}
    [clockwise from=0]
    child[concept color=green] {
        node[concept] (A) {A}
        [clockwise from=0]
        child { node[concept] {C} }
    }   
    child[concept color=blue] {
        node[concept] (B) {B}
    };
    \begin{pgfonlayer}{background}
        \draw [circle connection bar] (A) edge (B);
    \end{pgfonlayer}
\end{tikzpicture}

\end{document}
share|improve this question
1  
I've tested your example without problems with pgf-cvs and tikz-qtree version 1.11. I'm using MikTeX 2.9. –  Ignasi Jun 10 '11 at 9:48
    
oh... I updated tikz-qtree to 1.11 and it worked. Thanks! –  ceiling cat Jun 10 '11 at 11:15
    
@Ignasi If you turn your comment into an answer (i.e. that this bug has been fixed with version 1.11 of qtree, then ceiling cat can accept it.) This will remove it from the "unanswered questions" list. –  Alan Munn Jun 10 '11 at 15:59
add comment

1 Answer

up vote 5 down vote accepted

This wrong behaviour has been fixed with version 1.11 of tikz-qtree.

share|improve this answer
add comment

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.