I want to align three trees in the way shown in the following figure:
What I have now is the following code:
\documentclass{minimal}
\usepackage{forest}
\forestset{
tag/.style={for tree={parent anchor=south, child anchor=north,align=center,base=top},where
n children=0{}{}}
}
\begin{document}
\hfill
\begin{forest}
tag
[NP
[John]]
\end{forest}
\hfill
\begin{forest}
tag
[S
[NP$\downarrow$]
[VP
[V
[laughs]]]]
\end{forest}
\hfill
\begin{forest}
tag
[VP
[ADV
[always]]
[VP*]]
\end{forest}
\hfill\mbox{}
\end{document}
I know of the baseline
attribute, but this would not do real centering. Before using forest
I just used tables and this got the alignment right automatically.