\documentclass{article}
\usepackage{avm}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
}
\avmsortfont{\scriptsize\it}
\avmfont{\sc}
\title{AVM examples}
\author{Team Overleaf}
\begin{document}
\maketitle
\section*{Advisory notes on AVM packages for \LaTeX}
This project uses the \texttt{avm} package which is not available in \TeX{} Live; consequently, it has been uploaded into this project. Anyone wishing to use attribute value matrices may be interested in the more recent package,\href{https://ctan.org/pkg/langsci-avm?lang=en}{\texttt{langsci-avm}}, which is now available in \TeX{} Live. Due to syntax and feature differences, this document will not compile with \texttt{langsci-avm} and will require some editing. See section 4.6 of the
\href{http://mirrors.ctan.org/macros/latex/contrib/langsci-avm/langsci-avm.pdf}{\texttt{langsci-avm} documentation} for guidance on switching from \texttt{avm} to \texttt{langsci-avm}.
%%---Introductory example---
\begin{center}
\begin{avm}
\[ cat\|subcat & \<NP$_{it}$, NP$_{\@2}$, S[comp]:\@3\> \\
content & \[ relation & \bf bother\\
bothered & \@2 \\
soa-arg & \@3 \] \]
\end{avm}
\end{center}
\vspace{1cm}
%%---Example of the Basic usage---
\begin{center}
\begin{avm}
\[ subj & \[ pers & 3 \\
num & sg \\
gend & masc\\
pred & \rm ‘pro’ \]\\
pred & \rm ‘eat\q<SUBJ, OBJ\q>’\\
obj & \[ pers & 3 \\
num & pl \\
gend & fem \\
pred & \rm ‘pro’ \]
\]
\end{avm}
\end{center}
\vspace{1cm}
%%---Unaligned columns---
\begin{center}
\begin{avm}
\[ \avmspan{system\|local\|content\; \@2} \\
qstore & \[det & \textnormal{forall} \\
restpar & \@2 \[para & \@1 \\
restr & \[reln & \textnormal{book} \\
inst & \@1 \] \] \] \]
\end{avm}
\end{center}
\vspace{1cm}
%%---Sort labels example 1---
\avmsortfont{\it}
\avmvalfont{\it}
\begin{center}
\begin{avm}
\[ \asort{indexed-obj}
index & \[\asort{index}
variable & \@1 \[\asort{variable}
per & 3rd \\
num & sing \\
gend & neut \] \\
restriction & \[\asort{psoa}
relation & book \\
instance & \@1 \] \] \]
\end{avm}
\end{center}
\vspace{1cm}
%%---Sort labels example 2---
\avmvalfont{\it}
\avmsortfont{\it}
\begin{center}
\begin{avm}
\sort{indexed-obj}{\[ index & \osort{index}{\[
variable & \@1 \osort{variable}{\[ per & 3rd \\
num & sing \\
gend & neut \]} \\
restriction & \osort{psoa}{\[relation & book \\
instance & \@1 \]} \]} \]}
\end{avm}
\end{center}
\end{document}