我想将这些在不同位置出现两个等号的子方程对齐。我希望等号出现在中间的方程对齐相同,等号出现在末尾的方程对齐相同。我的代码是:
\begin{subequations}
\begin{align}
\E\left[2 \cdot (a_R(n)^2-R_{R1}) \cdot 2 \cdot a_R(n)\cdot x^*(n) \right]&=0
\intertext{Assuming the symbols in different symbol periods are uncorrelated, we get}
\E\left[a_R(n) \cdot x^*(n)\right] = k \cdot \E\left[a_R(n)^2\right]\\
k \cdot \E\left[2 \cdot (a_R(n)^2-R_{R1}) \cdot 2 \cdot a_R(n)^2\right] &=0
\end{align}
\begin{align}
\E\left[a_R(n)^4\right] &= R_{R1}\E\left[a_R(n)^2\right]
\intertext{So, the value for $R_{R1}$ can be calculated as:}
R_{R1}&=\frac{\E\left[|a_R(n)^4|\right]}{\E\left[|a_R(n)^2|\right]}
\end{align}
\end{subequations}
输出:
方程式 4.12a、4.12c 应具有相同的对齐方式,且 4.12b、4.12d、4.12e 应具有相同的对齐方式,而不能改变其位置。
答案1
以下是基于环境的解决方案mathtools
(在这种情况下无需加载) :amsmath
alignat
\documentclass{article}
\usepackage[utf8]{inputenc}%
\usepackage{mathtools}
\DeclareMathOperator{\E}{E}
\begin{document}
\begin{subequations}
\begin{alignat}{2}
& &\mathllap{\E\left[2 \cdot (a_R(n)^2-R_{R1}) \cdot 2 \cdot a_R(n)\cdot x^*(n) \right]}&=0
\intertext{Assuming the symbols in different symbol periods are uncorrelated, we get}
\E\left[a_R(n) \cdot x^*(n)\right] & = k \cdot \E\left[a_R(n)^2\right]\\[1ex]
& & \mathllap{k \cdot \E\left[2 \cdot (a_R(n)^2-R_{R1}) \cdot 2 \cdot a_R(n)^2\right]} &=0 \\[1ex]
\E\left[a_R(n)^4\right] &= R_{R1}\E\left[a_R(n)^2\right]
\intertext{So, the value for $R_{R1}$ can be calculated as:}
R_{R1}&=\frac{\E\left[|a_R(n)^4|\right]}{\E\left[|a_R(n)^2|\right]}
\end{alignat}
\end{subequations}
\end{document}