I have an equation that I need to split, but I want the two resulting lines to be alligned at the opposite side of the column.

I am using \begin{split} to split my line:


\usepackage{amsmath, amsthm, amssymb}

        \frac{1}{2\Delta t^2}\left\Vert\mathbf{M}^\frac{1}{2}\left(\mathbf{x} - \mathbf{s}^{(n)}\right)\right\Vert_F^2 \\
        + \sum_i \frac{w_i}{2}\left\Vert \mathbf{A}_i\mathbf{S}_i\mathbf{x}-\mathbf{B}_i\mathbf{p}_i \right\Vert_F^2 + \delta_{C_i}(\mathbf{p}_i),

The resulting document looks like this: enter image description here What I want to achieve is that the first line is aligned left, while the second line is aligned right: enter image description here How can I achieve this behavior?

  • 1
    Welcome to TeX.SX. Try the multline environment from amsmath package. – Stefan Pinnow Jul 16 '16 at 11:22
  • @StefanPinnow Thank you! Works like a charm. If you post your solution as an answer I will accept it. – maddin45 Jul 16 '16 at 11:31

As already stated in the comment below the question simply use the multline environment from the amsmath package.

Here is an MWE of your given equation.

        \frac{1}{2\Delta t^2}\left\Vert\mathbf{M}^\frac{1}{2}\left(\mathbf{x}
            - \mathbf{s}^{(n)}\right)\right\Vert_F^2 \\
        + \sum_i \frac{w_i}{2}\left\Vert \mathbf{A}_i\mathbf{S}_i\mathbf{x}
            -\mathbf{B}_i\mathbf{p}_i \right\Vert_F^2 + \delta_{C_i}(\mathbf{p}_i),
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.