1

I'm sure there's already an answer for this somewhere but I can't really find it. I'm trying to get square arrows that go down and back up below the tree.

This is what I have right now with the following MVE

\begin{forest}
      [AgrO [AgrO,name=AgrO0] { \draw[dashed, <->] (.south) |- (O) node[near end, below] {check}; }
            [\v* [\phantom{\dots}],name=v0
                  [V [\phantom{\dots}] 
                     [\trace{O}, name=O] 
                  ]
            ]
      ]
\end{forest}

enter image description here

I want something more like this (MS Paint approximation)

enter image description here

1
  • Instead of (not working) code fragment you should provide complete small document with forest diagram. Therefore, all definitions and used libraries are unknown to us.
    – Zarko
    Feb 12, 2022 at 6:32

1 Answer 1

4

Something like this:

\documentclass[border=3.141592]{standalone}
\usepackage[linguistics]{forest}
\usetikzlibrary{arrows.meta}
\tikzset{>=Straight Barb}

\begin{document}
\begin{forest}
[AgrO
    [AgrO,name=AgrO0]
    [$v$
      [\phantom{V}]
      [V
        [\phantom{t}]
        [to,name=O]
      ]
    ]
]
  \draw[<->,densely dashed] (O) -- ++ (0,-1) -| (AgrO0)
    node[pos=0.25,below] {check};
\end{forest}
\end{document}

enter image description here

The same result can be achieved without linguistics library, however than you need to define nodes anchors accordingly:

\documentclass[border=3.141592]{standalone}
\usepackage{forest}
\usetikzlibrary{arrows.meta}
\tikzset{>=Straight Barb}

\begin{document}
\begin{forest}
for tree = {parent anchor=south,
            child anchor=north}
% tree body

You must log in to answer this question.

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