I'm trying to draw a specific tree, with two parents node linked to the same child. The problem is that one of the parent is outside the main tree.
Here's the code I have for the moment:
\documentclass{article}
\usepackage{tikz-qtree,tikz-qtree-compat}
%\usepackage{gb4e}
\usepackage{forest}
\begin{document}
%\begin{exe}
\begin{forest}
qtree edges/.style={for tree= parent anchor=north, child anchor=south}
[A, grow=north
[C, name=C, grow'=north
[D, grow=north ]
[E, name=t5, grow=north ]
]
[B, grow=north ]
]
\hspace{0.8cm}
[$F$, name=F, grow=north ]
%\draw (F.north) -- (C.south);
\end{forest}
%\end{exe}
\end{document}
I'd like the nodes F and C to be connected. I don't know why, but if I delete the dollar signs, node F doesn't even appear on my document.
Another thing is that I want the forest environment to be embedded in an example environment, but this doesn't work either.
Thanks in advance for your help!