在 linguex 示例中使用分隔符对齐材料

在 linguex 示例中使用分隔符对齐材料

我正在尝试将树(用 tikz-qtree 绘制)放在解释函数括号内(按此处建议的比例缩放到树(https://tex.stackexchange.com/a/133465) 在 linguex 示例中。目前,括号中的树出现在页面的中心;我希望它们与示例标签的距离与未被分隔符包围的材料相同。

mwe 的输出


\documentclass{article}
\usepackage{tikz-qtree}
\usepackage{stmaryrd}
\usepackage{linguex}

\begin{document}

\ex. 
\[ \left \llbracket
\tikz[baseline={([yshift=+-.5ex]current bounding box.center)}]{
\Tree [.S [.DP this tree ] [.VP is [.XP bracketed [.YP and centered ] ] ] ]
} \right \rrbracket\]

\ex. Look how close to the label non-arboreal examples are!

\ex. \Tree [.S [.DP this tree ] [.VP is [.XP unbracketed [.YP but in-the-right-place ] ] ] ]

\end{document}

相关内容