I would like to put a forest tree in each cell of the first column of a table. There are some issues when I do this: The spacing is too tight, and the numbers in the rest of the table go to the bottom. I don't really know enough about how to use forest
to figure out how to add spacing around it, and I also don't know how it interacts with latex tables. Here's what it looks like right now:
MWE:
\documentclass{article}
\begin{document}
\begin{equation*}
\begin{array}{|c|c|c|}\hline
\text{Tree} & N_L(T) & \frac{1}{3}N(T) \\\hline
\begin{forest}
for tree={ grow=south, circle, draw, minimum size=3ex, inner sep=1pt, s sep=3mm }
[]
\end{forest}
& 1 & \frac{1}{3} \\\hline
\begin{forest}
for tree={ grow=south, circle, draw, minimum size=3ex, inner sep=1pt, s sep=3mm }
[[,no edge, draw=none][]]
\end{forest}
& 1 & \frac{2}{3} \\\hline
\begin{forest}
for tree={ grow=south, circle, draw, minimum size=3ex, inner sep=1pt, s sep=3mm }
[[][,no edge, draw=none]]
\end{forest}
& 1 & \frac{2}{3} \\\hline
\begin{forest}
for tree={ grow=south, circle, draw, minimum size=3ex, inner sep=1pt, s sep=3mm }
[[][]]
\end{forest}
& 2 & 1 \\\hline
\end{array}
\end{equation*}
\end{document}