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

migrated from stackoverflow.com Apr 17 '15 at 16:56

This question came from our site for professional and enthusiast programmers.

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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.