jspitz / covington

Maintenance of the covington LaTeX package
9 stars 0 forks source link

compatible with tikz libraries for arrow drawing #14

Closed ganlinghui closed 10 months ago

ganlinghui commented 12 months ago

Hi, I wonder if there could be a fix so that this package is compatible with packages for drawing arrows indicating syntactic movements. Thank you!

I pasted an example with the gb4e package from the Pomona Linguistics LaTex Template:

\usetikzlibrary{positioning} %does something for the positioning of arrows and I can't remember what \usetikzlibrary{arrows,arrows.meta} %gives extra details for arrows (specifically, the tips of arrows) \usepackage{pstricks} %for horizontal arrows in linear diagrams \usepackage{pst-node} %for placing nodes in horizontal arrow diagrams

\ea \label{LinearExample}

\Lb{CP} \rnode{who2}{Who} \rnode{do2}{do} \Lb{TP} the children \rnode{do1}{\sout{do}} like to visit \rnode{who1}{\sout{who}} ? ] ] %the \rnode s have two arguments: the first is the name of the node and the second is the text that is shown. \psset{linearc=3pt,nodesep=5pt} %this makes the arrows look pretty (rounded corners and not starting inside the words \ncbar[angle=90]{<-}{who2}{who1} %this is the top arrow \ncput{wh-movement} %and this is the text on the top arrow. I'm pretty sure you just need to put the commands for the arrow and the text next to each other. No text necessary, this line can be deleted/commented out \ncbar[angle=-90]{-}{do2}{do1} %this is the bottom arrow, the minus sign did that \ncput{T-C-mov't} % this is the text on bottom arrow. \z

jspitz commented 12 months ago

Did you have a look at Alan Munn's movement-arrows package? It should be compatible with covington.

jspitz commented 10 months ago

No response. Closing as I don't know what to fix in covington here.