How can I put example tree (a) and example tree (b) next to each other on the page? At the moment, tree (b) appears below tree (a):
\documentclass[12pt,a4paper]{article}
\usepackage{tikz-qtree}
\usepackage{tikz-qtree-compat}
\usepackage{ulem}
\begin{document}
\ex. \a. \begin{tikzpicture} \Tree [.DP [.N Pat ] ] \end{tikzpicture}
\b. \label{VP} \begin{tikzpicture}
\Tree [.VP [.V saw ] [.DP [.N Kim ] ]]
\end{tikzpicture}
\end{document}
\ex
,\a
and\b
should not have backslashes). After correcting this, the code compiles fine and the trees are put one next to the other.linguex
package, which should be loaded in the preamble. Then it compiles as the @user65526 describes.multicols
just like exposed in Gonzalo's answer.