I'm trying to figure out how to draw (forests of) potentially undecorated binary trees in Latex. So far, I've looked at the "forest" package, which I couldn't get to work with what I want. I'm hoping to draw binary trees that look like the following:
I'd also like to be able to draw forests of binary trees:
And finally, I'd like to be able to compose a forest of n trees with a tree of n leaves by vertical concatenation:
I appreciate that the last option might not exist as a built-in thing into a package, but figure I'd ask just in case.
Thanks!
Edit: Just in case anyone comes across this in the future -- the accepted solution works without error for me after updating my MacTex distribution and then compiling with XeLaTeX.




