在乳胶中对齐数学方程

Ada*_*Lee 7 latex amsmath

我试图在等号周围对齐以下方程.我能做什么?谢谢!我正在使用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)

请参阅用户指南.


ndi*_*dim 5

长话短说......以下使用的想法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,ThomasThomas 撰写的Madsen论文的信息.)

  • 我不会为此向你投票,而是一劳永逸地知道eqnarray是邪恶的:http://www.tug.org/pracjourn/2006-4/madsen/madsen.pdf (5认同)