I'm trying to use the forest
package to draw adjacent trees. My problem is that the trees are too close to each other.
\documentclass[border=10pt]{standalone}
\usepackage{forest}
\begin{document}
\begin{forest}
for tree={grow=north}
[$a+b\cdot c$
[$\oplus$
[$b\cdot c$
]
[$a$
]
]
]
\end{forest}
\begin{forest}
for tree={grow=north}
[$a+b\cdot c$
[$\oplus$
[$\otimes$
[$c$]
[$b$]
]
[$a$
]
]
]
\end{forest}
\end{document}
On the other hand the following code doesn't generate two adjacent trees, but only the node a
.
\documentclass[border=10pt]{standalone}
\usepackage{forest}
\begin{document}
\begin{forest}
for tree={grow=north}
[a
]
[b
]
\end{forest}
\end{document}
How can I draw adjacent trees?
\hfil
or\hfill
betweenforest
trees:\end{forest}\hfil\begin{forest}
forest
. Is that okay?forest
diagram, this is not clear what you expect. To have all trees on one image?