1
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap}
\begin{document}
\begin{tikzpicture}[mindmap, every node/.style=concept, concept color=blue, level 1/.append style={level distance=4cm, sibling angle=90}]
\node{apple}
child{node{fruit}};
\end{tikzpicture}
\end{document}

The output: enter image description hereIt is unsatisfactory on two front:firstly, the child node is connected to the parent node vertically which takes more space than I would like. Secondly, it is of different sizes. I would like to specify to have two equal size nodes. Maybe I shouldn't use mindmap library. So if that is the case, please point to the right library I should use. I am looking for something that have the same nice transformation on the connecting edge.

1

You can control the angle e.g. with clockwise from=0, and the size e.g. with every concept/.append style={minimum size=6em,text width=5em}.

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap}
\begin{document}
\begin{tikzpicture}[mindmap, every node/.style={concept}, 
every concept/.append style={minimum size=6em,text width=5em},
concept color=blue,clockwise from=0, 
level 1/.append style={level distance=4cm, sibling angle=90}]
\node{apple}
child{node{fruit}};
\end{tikzpicture}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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