align
我正在尝试在 中添加环境enumerate
,但此尝试导致传输不需要的公式。我该如何将公式保留在原处?
\item \begin{align*} C\left(z\right) = \Biggl[
& \prod\limits_{\ell=1}^{m} \frac{E_\ell\left(z_\ell\right)}{E_{\ell-
1}\left(z_\ell\right)}\Biggl] \! \Biggl[ \prod\limits_{\ell=1}^{m}
\frac{\prod_{u \in L_{z _\ell}}\left(-u\right)^N\prod_{v \in
R_{z_\ell}} \left(v+1\right)^{L-N}}{\Delta\left(R_{z_\ell}; L_{z_\ell}
\right)} \Biggl] \\
& \times \Biggl[\prod\limits_{\ell=2}^{m} \frac{z_{\ell-1}^L}{z_{\ell-1}^L-
z_\ell^L}\Biggl] \Biggl[\prod\limits_{\ell=2}^m\frac{\Delta\left(R_{z_\ell};
L_{z_{\ell-1}}\right)}{\prod_{u \in L_{z_{\ell-1}}}\left(-u\right)^N
\prod_{v \in R_{z_\ell}}\left(v+1\right)^{L-N}} \Biggl]
\end{align*}
\end{enumerate}
答案1
aligned[t]
在简单的$...$中使用 :
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{enumerate}
\item $ \begin{aligned}[t]\displaystyle C\left(z\right) = \Biggl[ & \prod\limits_{\ell=1}^{m} \frac{E_\ell\left(z_\ell\right)}{E_{\ell-1}\left(z_\ell\right)}\Biggl] ! \Biggl[ \prod\limits_{\ell=1}^{m}\frac{\prod_{u \in L_{z_\ell}}\left(-u\right)^N\prod_{v \in R_{z_\ell}} \left(v+1\right)^{L-N}}{\Delta\left(R_{z_\ell}; L_{z_\ell}\right)} \Biggl] \\
& \times \Biggl[\prod\limits_{\ell=2}^{m} \frac{z_{\ell-1}^L}{z_{\ell-1}^L-z_\ell^L}\Biggl] \Biggl[\prod\limits_{\ell=2}^m\frac{\Delta\left(R_{z_\ell};L_{z_{\ell-1}}\right)}{\prod_{u \in L_{z_{\ell-1}}}\left(-u\right)^N\prod_{v \in R_{z_\ell}}\left(v+1\right)^{L-N}} \Biggl] \end{aligned} $
\end{enumerate}
\end{document}
答案2
我使用另一个简单的解决方案“两个独立的代码“。对于项目和公式的第一部分,我使用了 $\displaystyle ......$
;在我使用了经典环境之后\align*
。您可以观察到,对于几个不同的项目,任何长方程的样式都没有任何变化。还有一个优点:=
并且\times
具有垂直对齐,如屏幕截图所示。
\documentclass[a4paper,12pt]{article}
\usepackage{mathtools,amssymb}
\begin{document}
\begin{enumerate}
\item $\displaystyle C\left(z\right) = \Biggl[
\prod\limits_{\ell=1}^{m} \frac{E_\ell\left(z_\ell\right)}{E_{\ell-
1}\left(z_\ell\right)}\Biggl] \! \Biggl[ \prod\limits_{\ell=1}^{m}
\frac{\prod_{u \in L_{z_\ell}}\left(-u\right)^N\prod_{v \in
R_{z_\ell}} \left(v+1\right)^{L-N}}{\Delta\left(R_{z_\ell}; L_{z_\ell}
\right)} \Biggl]$
\begin{align*}
& \times \Biggl[\prod\limits_{\ell=2}^{m} \frac{z_{\ell-1}^L}{z_{\ell-1}^L-
z_\ell^L}\Biggl] \Biggl[\prod\limits_{\ell=2}^m\frac{\Delta\left(R_{z_\ell};
L_{z_{\ell-1}}\right)}{\prod_{u \in L_{z_{\ell-1}}}\left(-u\right)^N
\prod_{v \in R_{z_\ell}}\left(v+1\right)^{L-N}} \Biggl]
\end{align*}
\end{enumerate}
\end{document}