Is it possible in gb4e
to gloss an example AND have a movement arrow in the example.
I'm currently using gb4e
, and I want an arrow from 't' to 'een auto'. I already looked at other packages (xytree
, tikz
), but I found no way to do this
\documentclass[11pt]{article}
\usepackage{gb4e}
\begin{document}
\begin{xlist}
\ex \label{scramble-det}
\gll
... dat Jan een auto gisteren t gekregen heeft.\\
... that John a car yesterday t gotten has \\
... that John a car yesterday.
\end{xlist}
\end{document}
The following, as an example, is taken from the gb4e
documentation, but I don't understand it at and therefore cannot modify it to suit my needs:
Best Answer
Here's a way to do this using my version of the popular
tikzmark
macro, since thegb4e
version of arrows is very cumbersome to use. If you need the real\tikzmark
for some other purpose, you'll need to change the name of the macro in my code.Mainly this puts together bits of code from various sources. There are two issues to be solved: first connecting words in the gloss with arrows and second, adding some space after the gloss for the arrow to exist in.
I've created a new
\ex
macro\arrowex
which is for an example that will have an arrow. Each word that you want to connect with an arrow gets introduced with the\tikzmark
command. The node names will be the same as the word itself. Finally, the\arrow
macro connects the words.