我正在使用 begin align 命令并希望将方程式左对齐。我了解到使用flalign
它可以将整个方程式左对齐。但这不是我现在需要的。我想“逐个组件”将方程式左对齐。以下是我输入的内容。右侧会自动右对齐。我该如何解决这个问题?
\begin{align*}
\frac{\partial f}{\partial v^j}&=&\frac{\partial f}{\partial u^l}\frac{\partial u^l}{\partial v^j}\\
\frac{\partial^2f}{\partial v^j\partial v^i}&=&\frac{\partial^2 f}{\partial u^l\partial u^m}\frac{\partial u^m}{\partial v^i}\frac{\partial u^l}{\partial v^j}+\frac{\partial f}{\partial u^l}\frac{\partial^2u^l}{\partial v^j\partial v^i}
\end{align*}
图片说明。我想将 1 改为 2 的样子。
1.(right aligned right hand side)
_________________________
aa= aaaaaaaaaaa
aa= aaaa
_________________________
2.(left aligned right hand side)
_________________________
aa= aaaaaaaaaaa
aa= aaaa
答案1
删除第二&
个
&=&
这样就变成了
&=
代码:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\frac{\partial f}{\partial v^j} &=\frac{\partial f}{\partial u^l}\frac{\partial u^l}{\partial v^j}\\
\frac{\partial^2f}{\partial v^j\partial v^i} &=\frac{\partial^2 f}{\partial u^l\partial u^m}\frac{\partial u^m}{\partial v^i}\frac{\partial u^l}{\partial v^j}+\frac{\partial f}{\partial u^l}\frac{\partial^2u^l}{\partial v^j\partial v^i}
\end{align*}
\end{document}
永远记住&
(和朋友里面的对齐说明符align
)有右对齐和左对齐对,即的左侧&
是右对齐,而右侧是成对的左对齐。