GeneralWick Contractions in Text Mode

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

Wick Contractions in Text Mode

Post by Linguist »

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.

Code: Select all

\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.

Thanks in advance.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Linguist
Posts: 43
Joined: Mon Nov 07, 2011 12:07 pm

Wick Contractions in Text Mode

Post by Linguist »

A partial solution to this problem is to load the xytree package as in the following code:

Code: Select all

\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: 43
Joined: Mon Nov 07, 2011 12:07 pm

Wick Contractions in Text Mode

Post by Linguist »

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/ ... w-in-gloss

Looks like the 1st day of 2015 was my lucky LaTeX day!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10340
Joined: Mon Mar 10, 2008 9:44 pm

Re: Wick Contractions in Text Mode

Post by Stefan Kottwitz »

Great that you found a solution!

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

Stefan
LaTeX.org admin
Post Reply