## LaTeX forum ⇒ General ⇒ Wick Contractions in Text Mode Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
Linguist
Posts: 39
Joined: Mon Nov 07, 2011 12:07 pm

### Wick Contractions in Text Mode

Hi all,

I'm currently typesetting a linguistics paper. I'm looking for a way to draw 'linking lines' between two arguments in an example sentence in order to show that that they are co-referential.

Something similar to the wick contractions provided by the simplewick package, though functioning in text mode, would be great.

I'm looking for a more flexible way to achieve what is achieved with the following code.
\documentclass{report}\usepackage{covington}\begin{document} \begin{example}\gll \emph{John saw himself.}\hspace{5mm}\rule{0.15mm}{3mm}\rule{17mm}{0.15mm}\rule{0.15mm}{3mm}\gln\glend\end{example}\end{document}

Finally, if it's possible to have more than one 'linking line' to indicate that an argument can have more than one possible referent, that would be ideal.

Tags:

Linguist
Posts: 39
Joined: Mon Nov 07, 2011 12:07 pm
A partial solution to this problem is to load the xytree package as in the following code:

\documentclass[a4paper,12pt]{report}\usepackage{covington, xytree} \begin{document} \begin{example}\xytext{\xybarnode{Alfred}\xybarconnect[2][-](D,D){4} & \xybarnode{described} & \xybarnode{Bob}\xybarconnect[4][-](D,D){2} & \xybarnode{to} & \xybarnode{himself.}}\end{example} \end{document}

Note, however, that this solution does NOT allow word by word glosses, as the use of the command \xytext{} means that all text enclosed in the braces is considered a single word for the purposes of glossing.

Linguist
Posts: 39
Joined: Mon Nov 07, 2011 12:07 pm
I stumbled across a solution to this problem today while looking for a solution to another problem. (pst-asr slow compile)

The way to do what I wanted to do (have a glossed example with a linking line between two words while maintaining the gloss alignment) can be found here http://tex.stackexchange.com/questions/140142/movement-arrow-in-gloss

Looks like the 1st day of 2015 was my lucky LaTeX day!

Stefan Kottwitz
Posts: 9567
Joined: Mon Mar 10, 2008 9:44 pm
Great that you found a solution!

Next time I will post at least a TikZ based one.

Stefan