% !TEX TS-program = LuaLaTeXmk \documentclass[11pt]{article} \usepackage{calc} \usepackage{fontspec} \usepackage[margin=.75in]{geometry} \usepackage{titling} \usepackage{array, booktabs,tabularx} \usepackage{enumitem} \usepackage{fancyvrb} \usepackage{listings} \usepackage{url} \usepackage[sf,small]{titlesec} \usepackage[section]{placeins} \usepackage[colorlinks=true]{hyperref} \setmonofont{Inconsolatazi4} \usepackage{gb4e} \usepackage{movement-arrows} \usepackage{parskip} \DefineShortVerb{\|} \title{The \texttt{movement-arrows} package} \author{Alan Munn\\amunn@msu.edu} \date{Version 2.0\\June 2, 2023} \lstset{% basicstyle=\ttfamily\small, commentstyle=\itshape\ttfamily\small, showspaces=false, showstringspaces=false, breaklines=true, breakautoindent=true, aboveskip=\baselineskip, language=TeX, frame=tl, } \newcommand*{\pkg}[1]{\texttt{#1}} \newcolumntype{t}[1]{>{\ttfamily}#1} \newcolumntype{T}{>{\ttfamily}c} \newcommand*{\bs}{\textbackslash} \setlength{\droptitle}{-1in} \renewcommand{\abstractname}{\sffamily Abstract} \begin{document} \maketitle \thispagestyle{empty} \begin{abstract}{\noindent The |movement-arrows| package supplies simple support for drawing arrows between elements in text or math. Its origin comes from linguistics, where drawing arrows between words is often used as an indication that the word or phrase has moved, hence the package name. Because of this origin, the package is aware of the main linguistics packages for example sentences and can be used with those packages, but does not require you to use of any of them. Arrows can also be annotated with labels. The package uses TikZ as a base, and various properties of the arrows can be adjusted using TikZ styles. The package has been tested with the \pkg{gb4e}, \pkg{linguex}, \pkg{covington} and \pkg{ExPex} example packages. } \end{abstract} \section{Basic usage} The way the package works is that you mark words in text using the |\mkword| macro and then use the |\mvarrow| or |\mvlink| macro to connect the words. Here's a simple example: \begin{quote} \begin{lstlisting} \documentclass{article} \usepackage{movement-arrows} \mkword{Where} did this move from \mkword{t}? \mvarrow{t}{Where} \end{lstlisting} \mkword{Where} did this move from \mkword{t}? \mvarrow{t}{Where} \end{quote} \section{Package commands} \begin{table}[htpb] \centering \begin{tabularx}{\textwidth}{t{l}X} \toprule \bs mkword[]\{\} & marks a word or phrase for arrow placement; if \pkg{word} is a single word with no formatting, \pkg{name} will be set to \pkg{word}. If \pkg{word} is a phrase or contains formatting, a \pkg{name} must be given.\\ \bs mvarrow[]\{\}\{\} & add an arrow between start and end nodes defined with \pkg{\bs mkword}. \pkg{\bs mvarrow*} draws an arrow above the words.\\ \bs mvlink[]\{\}\{\} & add a link (no arrows) between start and end nodes. \pkg{\bs mvlink*} draws an link above the words. \\ \bs setarrowstyle\{