我试图在等号周围对齐以下方程.我能做什么?谢谢!我正在使用AMSMath包
$$m\ddot{x}_{1}-K(x_{2}+x_{12})+C(\dot{x}_{12}+\dot{x}_{2})+2C\dot{x}_{1} = fx_{1}$$
$$m\ddot{x}_{2}-K(x_{3}+x_{1})+C(\dot{x}_{1}+\dot{x}_{3})+2C\dot{x}_{2} = fx_{2}$$
$$m\ddot{x}_{3}-K(x_{4}+x_{2})+C(\dot{x}_{2}+\dot{x}_{4})+2C\dot{x}_{3} = fx_{3}$$
Run Code Online (Sandbox Code Playgroud)
Jed*_*Jed 21
\begin{align}
m\ddot{x}_{1}-K(x_{2}+x_{12})+C(\dot{x}_{12}+\dot{x}_{2})+2C\dot{x}_{1} &= fx_{1} \\
m\ddot{x}_{2}-K(x_{3}+x_{1})+C(\dot{x}_{1}+\dot{x}_{3})+2C\dot{x}_{2} &= fx_{2} \\
m\ddot{x}_{3}-K(x_{4}+x_{2})+C(\dot{x}_{2}+\dot{x}_{4})+2C\dot{x}_{3} &= fx_{3}
\end{align}
Run Code Online (Sandbox Code Playgroud)
请参阅用户指南.
长话短说......以下使用的想法eqnarray很明显,但结果却是一个非常糟糕的主意.eqnarray带来了很多问题,这些问题都在amsmath相关的包中得到解决.阅读Lars Madsen:有关详细信息,请避免使用eqnarray.
\begin{eqnarray*} %% Do avoid eqnarray if possible.
x_1 & = & 1 \\
x_2 & = & 2 \\
x_3 & = & 3
\end{eqnarray*}
Run Code Online (Sandbox Code Playgroud)
(答案修改了Arthur Reutenauer,Thomas和Thomas 撰写的Madsen论文的信息.)