大家早上好,我需要你们的帮助来弄清楚如何将包含拆分命令的方程式左对齐。我已经阅读了所有关于它的帖子,但都不起作用。还有其他想法吗?谢谢 Andrea
\begin{equation*}
\begin{split}
i(v)=-(\frac{520}{2000})ln(\dfrac{520}{2000})-(\frac{1480}{2000})ln(\frac{11480}{2000})=0.573,\\
p(l)=\frac{800}{2000}=0.4, \\
i(l)=-(\frac{320}{800})ln(\dfrac{320}{800})-(\frac{480}{800})ln(\frac{480}{800})=0.673,\\
p(r)=\frac{1200}{2000}=0.6, \hspace{0.5cm} i(r)=-(\frac{200}{1200})ln(\dfrac{200}{1200})-(\frac{1000}{1200})ln(\frac{1000}{1200})=0.451,\\
I=0.573-0.4(0.673)-0.6(0.451)=0.0332
\end{split}
\end{equation*}
答案1
除了实施 David Carlisle 的评论(提供对齐点,并写\ln
而不是)之外ln
,您还应该扩大前五个等式右侧的括号。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\begin{split}
i(v)&=-\Bigl(\frac{520}{2000}\Bigr)\ln\Bigl(\dfrac{520}{2000}\Bigr)
-\Bigl(\frac{1480}{2000}\Bigr)\ln\Bigl(\frac{11480}{2000}\Bigr)
=0.573,\\
p(l)&= \frac{800}{2000}=0.4, \\
i(l)&=-\Bigl(\frac{320}{800}\Bigr)\ln\Bigl(\dfrac{320}{800}\Bigr)
-\Bigl(\frac{480}{800}\Bigr)\ln\Bigl(\frac{480}{800}\Bigr)
=0.673,\\
p(r)&= \frac{1200}{2000}=0.6, \\
i(r)&=-\Bigl(\frac{200}{1200}\Bigr)\ln\Bigl(\dfrac{200}{1200}\Bigr)
-\Bigl(\frac{1000}{1200}\Bigr)\ln\Bigl(\frac{1000}{1200}\Bigr)
=0.451,\\[1ex]
I&= 0.573-0.4(0.673)-0.6(0.451)=0.0332
\end{split}
\end{equation*}
\end{document}