I use TikZ to create trees. Now I've to arrange four trees in a matrix like this:
Tree A Tree B
Tree C Tree D
I already tried the \matrix command. This works, but it leaves absolutely no space between the trees. I want to have the trees to be seperated by a space, in order to create arrows between the trees. Ideally the four trees are located in four boxes, which all have the same size and the same space between them.
Any suggestions?
Thanks.
Edit: This is what I've come up with:
\documentclass{article}
\usepackage{scalefnt}
\usepackage{tikz}
\usetikzlibrary{arrows,calc}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{trees}
\usetikzlibrary{matrix}
\pgfdeclarelayer{background}
\pgfsetlayers{background,main}
\begin{document}
\begin{tikzpicture}
[
every node/.style={rectangle, draw, fill=black!10,
text badly centered, font=\scalefont{0.45}, text width=1.3cm},
level distance=0.7cm,
level 1/.style={sibling distance=2cm}
]
\matrix [draw=none, fill=none, column sep=2cm, row sep=1.5cm]
{
\path node {Ressourcen} [edge from parent fork down]
child {node {Zeit}}
child {node {Umwelt}
child {node [text width=2.8cm]{Lernumgebung, Personen Material}}
}
child {node {Physiologie}};
&
\path node {Ziele} [edge from parent fork down]
child {node {kurzfristig}}
child {node {langfristig}};\\
\path node {Volition} [edge from parent fork down]
child {node {Aufmerksamkeit}}
child {node {Motivation}}
child {node {Emotionskontrolle}};
&
\node {Lernstrategien};\\
};
\end{tikzpicture}
\end{document}
Now it would be nice to have boxes around the trees and to have arrows between the boxes...


column sep=<length>parameter for the matrix. Will that help? – Torbjørn T. Jun 12 '11 at 14:22row sep=<length>for the rows, which you probably figured out. – Torbjørn T. Jun 12 '11 at 14:34