我在多行环境中排版以下方程。换行符后面的项会按照一些非预期的间距对齐。如何将所有项左对齐?
P(r)= \frac{9\sqrt{3}}{4\pi(1-\alpha^2)}\frac{r(1+r)}{(1+r+r^2)^2}\left[\frac{2\alpha(9+(11+20r(1 + r))\alpha^2)}{(3 +(1 + 2 r)^2 \alpha^2)^2} + \frac{\sqrt{3}\arccot\left(2\alpha\sqrt{\frac{1 + r + r^2}{3(1-\alpha^2}}\right)}{\sqrt{(1 + r + r^2)(1 - \alpha^2)}}\\+ \frac{18 r^3 \alpha + 2 r (20 + r (20 + 11 r)) \alpha^3}{(3 r^2 + (2 + r)^2 \alpha^2)^2}+\frac{\sqrt{3}\arccot\left(\frac{2\alpha}{r}\sqrt{\frac{1 + r + r^2}{3(1-\alpha^2}}\right)}{\sqrt{(1 + r + r^2)(1 - \alpha^2)}}\\-\frac{18 (1 + r)^3 \alpha + 2 (1 + r) (11 + r (2 + 11 r)) \alpha^3}{(3 (1 + r)^2 + (1 - r)^2 \alpha^2)^2}- \frac{\sqrt{3}\arccot\left(\frac{2\alpha}{1+r}\sqrt{\frac{1 + r + r^2}{3(1-\alpha^2}}\right)}{\sqrt{(1 + r + r^2)(1 - \alpha^2)}}\right]
答案1
三个观察结果:
您的代码缺少
\right.
第一行末尾的指令和\left.
第三行开头的指令。的三个实例
{3(1-\alpha^2}
应该是{3(1-\alpha^2)}
,对吗?如果不希望第二行和第三行相对于第一行逐渐缩进,请不要使用环境
multline
。而是使用align
环境(需要两个\notag
指令)或嵌套的equation
andaligned
环境对。
\documentclass{article}
\usepackage[letterpaper,margin=1in]{geometry} % set page block parameters appropriately
\usepackage{amsmath}
\DeclareMathOperator{\arccot}{arccot}
\begin{document}
\begin{equation}
\begin{aligned}[b] % 'b' option to place equation number on last row
P(r)&= \frac{9\sqrt{3}}{4\pi(1-\alpha^2)}
\frac{r(1+r)}{(1+r+r^2)^2}
\left[ \frac{2\alpha(9+(11+20r(1+r))\alpha^2)}
{(3 +(1 + 2 r)^2 \alpha^2)^2}
+ \frac{\sqrt{3}\arccot\left(2\alpha \sqrt{\frac{1 + r + r^2}
{3(1-\alpha^2)}}\,\right)}{
\sqrt{(1 + r + r^2)(1 - \alpha^2)}} \right. \\ % end of first row
&\quad+\frac{18 r^3 \alpha + 2 r (20 + r (20 + 11 r)) \alpha^3}
{(3 r^2 + (2 + r)^2 \alpha^2)^2}
+\frac{\sqrt{3}\arccot\left(\frac{2\alpha}{r}
\sqrt{\frac{1 + r + r^2}{3(1-\alpha^2)}}\,\right)}
{\sqrt{(1 + r + r^2)(1 - \alpha^2)}} \\ % end of second row
&\quad-\left.\frac{18 (1+r)^3 \alpha + 2 (1+r) (11 + r (2 + 11 r)) \alpha^3}
{(3 (1+r)^2 + (1 - r)^2 \alpha^2)^2}
- \frac{\sqrt{3}\arccot\left(\frac{2\alpha}{1+r}
\sqrt{\frac{1 + r + r^2}{3(1-\alpha^2)}}\,\right)}
{\sqrt{(1 + r + r^2)(1 - \alpha^2)}}\right]
\end{aligned}
\end{equation}
\end{document}