我有一个如下的多线方程:
\begin{enumerate}
\item
\begin{enumerate}
\item
\begin{align*}
A \cap (B \cup C)
& = x \in A \cap (B \cup C) \\
& = x \in A \wedge x \in (B \lor C)\\
& = x \in (A \wedge B) \lor x \in (A \wedge C) \\
& = x \in (A \cap B) \cup x \in (A \cap C) \\
& = (A \cap B) \cup (A \cap C)
\end{align*}
\end{enumerate}
\end{enumerate}
但我无法让第一行与问题编号同步(请参见下图)。我该如何实现?
答案1
你想要这个吗?
\documentclass{article}
\usepackage{amsmath}
\newcommand\Item[1][]{%
\ifx\relax#1\relax \item \else \item[#1] \fi
\abovedisplayskip=0pt\abovedisplayshortskip=0pt~\vspace*{-\baselineskip}}
\begin{document}
\begin{enumerate}
\item \begin{enumerate}
\Item \begin{align*}
A \cap (B \cup C) & = x \in A \cap (B \cup C) \\
& = x \in A \wedge x \in (B \lor C)\\
& = x \in (A \wedge B) \lor x \in (A \wedge C) \\
& = x \in (A \cap B) \cup x \in (A \cap C) \\
& = (A \cap B) \cup (A \cap C)
\end{align*}
\end{enumerate}
\end{enumerate}
\end{document}