![对齐环境中分割方程的对齐错误](https://linux22.com/image/292125/%E5%AF%B9%E9%BD%90%E7%8E%AF%E5%A2%83%E4%B8%AD%E5%88%86%E5%89%B2%E6%96%B9%E7%A8%8B%E7%9A%84%E5%AF%B9%E9%BD%90%E9%94%99%E8%AF%AF.png)
这是我的问题的示例代码:
\documentclass[a4paper]{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
x_n&=\begin{split}
&1+\frac{1}{2}+\left( \frac{1}{3}+\frac{1}{4} \right)+\left( \frac{1}{5}+\frac{1} {6}+\frac{1}{7}+\frac{1}{8} \right)+\cdots+\left( \frac{1}{2^{k-1}+1}+\cdots+\frac{1}{2^k} \right)\\
&+\cdots+\left( \frac{1}{2^{2N-1}+1}+\cdots+\frac{1}{2^{2N}} \right)
\end{split}\\
&>1+2^0\frac{1}{2^1}+2^1\frac{1}{2^2}+2^2\frac{1}{2^3}+\cdots+2^{k-1}\frac{1}{2^k}+\cdots+2^{2N-1}\frac{1}{2^{2N}}
\end{align*}
\end{document}
它在等号和分裂方程之间产生了一个巨大的空白间隙,如下所示:
我不知道哪里出了问题。有人能告诉我吗?
答案1
我认为你最好使用multlined
来自mathtools 包。
\documentclass[a4paper]{article}
\usepackage{mathtools}
\begin{document}
\begin{align*}
x_n&=
\begin{multlined}[t]
1+\frac{1}{2}+\left( \frac{1}{3}+\frac{1}{4} \right)
+\left( \frac{1}{5}+\frac{1}{6}+\frac{1}{7}+\frac{1}{8} \right)
+\cdots+\left( \frac{1}{2^{k-1}+1}+\cdots+\frac{1}{2^k} \right)\\
+\cdots+\left( \frac{1}{2^{2N-1}+1}+\cdots+\frac{1}{2^{2N}} \right)
\end{multlined}\\
&>1+2^0\frac{1}{2^1}+2^1\frac{1}{2^2}+2^2\frac{1}{2^3}+\cdots+2^{k-1}
\frac{1}{2^k}+\cdots+2^{2N-1}\frac{1}{2^{2N}}
\end{align*}
\end{document}