![大小分隔符 (\left( \right)) 对于垂直对齐数组 (\begin{array}[t]) 来说太高](https://linux22.com/image/247716/%E5%A4%A7%E5%B0%8F%E5%88%86%E9%9A%94%E7%AC%A6%20(%5Cleft(%20%5Cright))%20%E5%AF%B9%E4%BA%8E%E5%9E%82%E7%9B%B4%E5%AF%B9%E9%BD%90%E6%95%B0%E7%BB%84%20(%5Cbegin%7Barray%7D%5Bt%5D)%20%E6%9D%A5%E8%AF%B4%E5%A4%AA%E9%AB%98.png)
请编译下面的内容,问题就会清楚。
\documentclass{article}
\begin{document}
\noindent Compare
\[
\begin{array}{l}
\land ~a\\
\land \left(
\begin{array}[t]{l}
\lor ~a\\
\lor \left(
\begin{array}[t]{l}
\land ~a\\
\land ~b\\
\end{array}
\right)
\end{array}
\right)\\
\end{array}
\]
with
\[
\begin{array}{l}
\land ~a\\
\land
\begin{array}[t]{l}
\lor ~a\\
\lor
\begin{array}[t]{l}
\land ~a\\
\land ~b\\
\end{array}
\end{array}
\end{array}
.\]
I also don't want
\[
\begin{array}{l}
\land ~a\\
\land \left(
\begin{array}{l}
\lor ~a\\
\lor \left(
\begin{array}{l}
\land ~a\\
\land ~b\\
\end{array}
\right)
\end{array}
\right)\\
\end{array}
,\]
although it's better than the first version.
\end{document}
我想要第二个版本中的垂直布局,但嵌套子公式周围有括号。
答案1
这是相当接近的,间距可以稍微调整一下,取决于您的需要,这只是包中的默认间距。
\documentclass{article}
\usepackage{delarray}
\begin{document}
\noindent Compare
\[
\begin{array}{ll}
\land &a\\
\land&\begin{array}[t]({ll})
\lor &a\\
\lor &
\begin{array}[t]({ll})
\land&a\\
\land&b
\end{array}
\end{array}
\end{array}
\]
\end{document}