7
\documentclass{article}
\usepackage{forest}
\begin{document}
\begin{forest}
    [TP
        [DP]
        [T'
        [T]
        [VP
        [DP]
        [V', name=node
        [V]
        [DP] ] ]]]
        \draw [red, thick, dotted] (node) --++(0em,+10ex) ellipse (1.5cm and 1cm);
\end{forest}
\end{document}

Hi, I am trying to draw an ellipse in an adjusted position with a --++ option in a forest tree, but I keep getting an unwanted line as shown in the picture attached. How can I draw a figure without that unwanted line?

enter image description here

0

1 Answer 1

8
\documentclass{article}
\usepackage{forest}
\begin{document}
\begin{forest}
    [TP
        [DP]
        [T'
        [T]
        [VP
        [DP]
        [V', name=node
        [V]
        [DP] ] ]]]
        \draw [red, thick, dotted] (node) ++(0em,+10ex) ellipse (1.5cm and 1cm);
\end{forest}
\end{document}

Just replacing --++ with ++. The output:

output pdf screenshot

Then you can adjust position and shape of the ellipse as usual (package forest is based on TikZ).

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .