I've been looking for a TikZ example for a while now that looks something like the attached powerpoint picture. I can't imagine that nobody has done something similar.
I tried adapting this example, but failed…
Does anybody have an idea where I can find a similar diagram?
Is there a way to just add the LaTeX table enviroment into a TikZ picture?
Best Answer
Here is a solution using
forest
.It makes no sense to use a float in this context, so the tabulars cannot benefit from the automatic numbering of the
table
environment. However, you can arrange to have them numbered automatically and added to the list of tables. To do this, you need to be a little careful when the counter is incremented and when the contents line written. In the code below, this is done when the label itself is typeset.The tabulars are placed in regular nodes, just surrounded by curly brackets.
The dashed line and level labels are added after the tree is drawn. The
name
key provided byforest
is used to help with positioning, and abrace
TiKZ decoration is used for the lines required here.calc
is used to compute positions for the level labels themselves.