I've been working with gb4e to manage numbered examples for a long time, but I was wondering it was possible to incorporate movement lines, or if I should use some other package. More concretely, I would like to generate something like the below:

Bracketed structures with movement


I don't know about the best way to create the bracketed structures, but here I show how to insert the so-called movement lines: \connect[direction]{left-end}{mid-text}{right-end}. Here is the MWE.

\def\rlht{3ex}    \def\rlwd{.8pt} \def\rloffset{3pt}
  \if x#1%
  \if l#1\conR[a]{#2}\else\conR{#2}\fi%
  \if r#1\conL[a]{#4}\else\conL{#4}\fi\ignorespaces%

\lb{TP}\itshape Seve%
\connect[l]{r}{al riots\upshape\lb{T}are]\lb{VP}\lb{V}believed]\lb{TP}%

enter image description here


Personally, I once used linguex in conjunction with pst-jtree. That gives you all the power you need. Please excuse that I shortened the example somewhat. The \jtree command has to be called once in the document before the example for some reason. Also note that the document has to be compiled as .ps first.



\exi. \rnode{a1}{X} [CP $\ldots$ [TP $\ldots$ \rnode{a2}{t} $\ldots$]]

\ncbar[angleA=270, angleB=270, linestyle=dashed]{<-}{a1}{a2}


Sample output


You know, actually there is an example of such a thing in the end of the gb4e documentation.

\lb{TP} & \emph{Seveal riots} & \lb{T}are]\lb{VP}\lb{V}believed]\lb{TP}\lb{T}to]\lb{AUXP}\lb{AUX}have]\lb{VP}\lb{V}occurred]\lb{QP}&\emph{t}&]]]]]] \cr
&\fillright\pu&\link1&\fillleft\vrule & \cr}}

But there is a problem with an alignment: number is between an arrow and an example… There is no such a problem with Steven B. Segletes’s solution. First I've tried to do it with tikz-dependency, but there is the same alignment problem.

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.