
言語学における番号付き例について質問します。番号付き例には gb4e を使用し、構文ツリーには forest を使用しています。質問は、2 つの構文ツリーを一列に並べる方法です。次の結果を得たいです。
ただし、この構造を受け取るために、gb4e を使用しませんでした。つまり、図の a. と b. はスクリプトで直接記述されます。
以下はこれのスクリプトです。
\begin{exe}
\ex syntactic tree \\
a. \begin{forest}
[VP
[DP]
[V’
[V]
[DP]
]
]
\end{forest} \hspace{4ex}
b. \begin{forest}
[VP
[DP]
[V’
[V]
[DP]
]
]
\end{forest} \\
c. \begin{forest}
[VP
[DP]
[V’
[V]
[DP]
]
]
\end{forest}
\end{exe}
この構造内に番号付けコードを導入すると、上の図は得られません。私がやりたいのは、図のように 2 つの構文ツリーを区切らずに配置することです。以下は、コードと、コードから取得した結果です。
\begin{exe}
\ex derivation of tree
\begin{xlist}
\ex \begin{forest}
[VP
[DP]
[V’
[V]
[DP]
]
]
\end{forest}
\quad
\ex \begin{forest}
[VP
[DP]
[V’
[V]
[DP]
]
]
\end{forest}
\end{xlist}
\end{exe}
望ましいものをどのように実装するかについてのアイデアがあれば、教えていただけますか?
ありがとう。
答え1
multicol
このパッケージを使用すると、(小さな)ツリーと例を並べて配置できます。
別の種類の解決策については、以下を参照してください。
\usepackage{gb4e}
\begin{document}
\begin{exe}
\ex syntactic tree
\begin{xlist}
\begin{multicols}{2}
\ex\begin{forest}
[VP
[DP]
[V’
[V]
[DP]
]
]
\end{forest}
\ex
\begin{forest}
[VP
[DP]
[V’
[V]
[DP]
]
]
\end{forest}
\end{multicols}
\ex\begin{forest}
[VP
[DP]
[V’
[V]
[DP]
]
]
\end{forest}
\end{xlist}
\end{exe}
\end{document}