I have a paper formatted like this one, i.e. two columns of text per page.
I've been trying to make a tree structure to fit inside of one column, but so far I've been unable to make it work.
There are resources about how to make tree structures using tikz, this one for instance, or this. But so far I've been unsuccessful in adapting those solutions to fit my current situation.
I wrote out by hand how I need the tree to look. It's important that the first node be able to spread out across two lines, using, I guess, // or /newline.
Thus far I have this:
\begin{figure}[t]
\centering
\caption{An illustration of a simple delete operation. \label{fig:simple}}
{
\begin{tikzpicture}[level/.style={sibling distance = 5cm/#1, level distance = 1.5cm}, scale=0.6,transform shape]
\node {\footnotesize educated at( Bush, University of Texas at Austin)}
child
{
%node [treenode] {$Y$ \\ 50}
child
{
%node [treenode] {$Z$ \\ 40}
child
{
node [treenode] {$S1$ \\ 30}
child
{
node {\\60}
}
{
node {\\60}
}
}
child
{
{
node {\\60}
}
{
node {\\60}
}
}
}
child[edge from parent path ={(\tikzparentnode.-50) -- (\tikzchildnode.north)}]
{
node [subtree,yshift=0.4cm] (a) {} % delay the text till later
}
}
child[edge from parent path ={(\tikzparentnode.-30) -- (\tikzchildnode.north)}]
{
node [subtree,yshift=0.4cm] (b) {} % delay the text till later
}
;
% ------------------------------------------------ put the text into subtree nodes
\node[align=center,yshift=0.1cm] at (a) {$Z$\\200};
\node[align=center,yshift=0.1cm] at (b) {$Z$\\200};
\end{tikzpicture}
}
\end{figure}
and these packages:
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{shapes.geometric,arrows,fit,matrix,positioning}
This is ideally how it would look:


treenode? – cfr Apr 29 '15 at 15:09tikzMWE and the other one had aqtreeMWE, but the same problems arise either way and are best dealt with usingforest. – Jason Zentz Apr 29 '15 at 15:43forestanswer so I didn't pay very close attention ;).) But people should not ask the same question twice! – cfr Apr 29 '15 at 15:47