答案1
没有必要使用adjustbox
包来执行此操作,您只需将树包装在tikzpicture
环境中并适当设置基线即可。就输入量而言,虽然它是六个,另一个是六个。
\documentclass{article}
\usepackage{tikz-qtree}
\usepackage{adjustbox}
\usepackage{stmaryrd}
\tikzset{aligned/.style={baseline=(current bounding box.center)}}
\begin{document}
\[
\left\llbracket
\begin{tikzpicture}[aligned]
\Tree [.VP [.V' [.V is ] [.AP brown ]]]
\end{tikzpicture}
\right\rrbracket
\left (
\left \llbracket
\begin{tikzpicture}[aligned]
\Tree[.NP [.D the ] [.N' [.N handbag ]]]
\end{tikzpicture}
\right \rrbracket
\right )
\]
\end{document}
答案2
感谢Žarko,我可以像Heim & Kratzer 1998那样绘制组合分析的过程,这里有一个例子。
% LuaLaTeX & XeLaTeX
\documentclass{article}
\usepackage{tikz-qtree}
\usepackage{adjustbox}
\usepackage{stmaryrd}
\begin{document}
\[
\left\llbracket \adjustbox{valign=m}{
\Tree [.VP [.V' [.V is ] [.AP brown ]]]
}
\right\rrbracket
\left (
\left \llbracket
\adjustbox{valign=m}{ \Tree[.NP [.D the ] [.N' [.N handbag ]]] }
\right \rrbracket
\right )
\]
\end{document}
答案3
作为起点...
通过使用unicode-math
、forest
和adjustbox
包。使用 LuaLateX 编译:
% LuaLateX
\documentclass[varwidth, margin=3mm]{standalone}
\usepackage{unicode-math}
\usepackage{forest}
\usepackage{adjustbox}
\begin{document}
\[
\left\lBrack\adjustbox{valign=m}{
\begin{forest}
[VP,
[likes]
[all]
]
\end{forest}}
\right\rBrack = [\lambda\in D, \dots]
\]
\[
\left\lBrack\adjustbox{valign=m}{
\begin{forest}
[S,
[Ann]
[VP,
[likes]
[all]
]
]
\end{forest}}
\right\rBrack
= \left\lBrack\adjustbox{valign=m}{
\begin{forest} % =center
[VP,
[likes]
[all]
] = [\lambda x\in D, ...]
\end{forest}r}
\right\rBrack
\]
\end{document}