In reference to this question:

Movement arrows in gloss (part III)

I have one more question:

Is it possible to get four arrows: Two beneath the text in both directions and two above. Up to now there are only two arrows for the two directions... :(


\newcommand*\exdepthstrut{{\vrule height 0pt depth -\arrowht width 0pt}}
\newcommand\tikzmark[1]{\tikz[remember picture, baseline=(#1.base)] \node[anchor=base,inner sep=0pt, outer sep=0pt] (#1) {#1\exdepthstrut};}

% This code from https://tex.stackexchange.com/q/55068/2693
    ncbar angle/.initial=90,
        to path=(\tikztostart)
        -- ($(\tikztostart)!#1!\pgfkeysvalueof{/tikz/ncbar angle}:(\tikztotarget)$)
        -- ($(\tikztotarget)!($(\tikztostart)!#1!\pgfkeysvalueof{/tikz/ncbar angle}:(\tikztotarget)$)!\pgfkeysvalueof{/tikz/ncbar angle}:(\tikztostart)$)
        -- (\tikztotarget)

% Thanks to Paul Gessler and Percusse for code improvement here
\newcommand{\arrow}[2]{\begin{tikzpicture}[remember picture,overlay]
\draw[->,shorten >=3pt,shorten <=3pt] (#1.base) to [ncbar=\arrowht] (#2.base);

    \ex Example 1
        \gll ~\tikzmark{lachend} ~sagte sie \tikzmark{t} das\\
            [VF ][LSK][ MF {} {} ]\\
            \ex Example 2
        \gll  und ~hob sie t ~~auf schrecklich weinend\\
            {}  [LSK][ MF \tikzmark{t} ][RSK][ \tikzmark{NF} {} ]\\

enter image description here

Your Answer

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

Browse other questions tagged or ask your own question.