I am using the packages linguex, parsetree, and avm to make an example containing a table with two phrase structure trees. I'd like to have the table start on the same line as the example number. But when I begin the tabular environment without adding a line break, the trees aren't made.
Right line, trees don't work
Wrong line, trees work
What can I do to make the table start on the same line as the example?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[]{linguex}
\usepackage[]{parsetree}
\usepackage[]{avm}
\begin{document}
\ex.
\begin{tabular}[t]{cc}
\begin{parsetree}
(
.\begin{avm}
\[
X \\
Y
\]
\end{avm}.
.\begin{avm}
\[
X \\
Y
\]
\end{avm}.
.\begin{avm}
\[
X \\
Y
\]
\end{avm}.
)
\end{parsetree}
&
\begin{parsetree}
(
.\begin{avm}
\[
X \\
Y
\]
\end{avm}.
.\begin{avm}
\[
X \\
Y
\]
\end{avm}.
.\begin{avm}
\[
X \\
Y
\]
\end{avm}.
)
\end{parsetree}
\end{tabular}
\end{document}
parsetree.sty
found? TeX Live doesn't seem to have it. And CTAN doesn't findparsetree
either. – cfr Dec 19 '16 at 11:57t
will align the top of the tabular with the baseline, which probably isn't what you want. tex.stackexchange.com/q/332976 is possibly vaguely related, but concernsqtree
rather thanparsetree
. Since I've no idea whatparsetree
does, I don't know if the question would be helpful or not. [Disclaimer: I wrote the answer there. I remembered answering something about AVM.] – cfr Dec 19 '16 at 11:59