请编译下面的内容,问题就会清楚。
\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}