3

In Lyx, I have the following Display Formula:

1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17 (1)

I want to split it into:

1+2+3+4+5+6+7+8+9+10+

+11+12+13+14+15+16+17 (1)

I found this https://wiki.lyx.org/Examples/FormulaOnMultipleLines and In Lyx how do I set up a display formula over several lines. but still cannot get multiline equations to work!

For example the answer by riddleculous: "You can use the split environment within the equation and make new lines with \" - How can I make this work?

  • 1
    The amsmath environments usually used for such things (split, aligned, , align etc. are available in the Insert --> Math manu. – Torbjørn T. Apr 21 '17 at 17:08
  • Do you know how to "insert" \begin{multline} 1+2+3+4+5+6+7+8+9+10 \\ +11+12+13+14 +15+16+17 \end{multline} into your lyx document? – Mico Apr 21 '17 at 17:14
6

As Mico mentions, the multline environment is made for this type of thing. Go to Insert --> Math, and choose AMS multline environment. You get what looks like a normal display math inset:

enter image description here

Type the first line, and then hit Ctrl + Enter. You will get a new blue placeholder box on the next line:

enter image description here

Move the cursor into this field (hit ), and type the next line:

enter image description here

You can repeat this if you want to. multline will place the first line flush left, the last line flush right, and all the lines in between centered.

| improve this answer | |
  • Note that this won't work if you're already inside a Math environment like align. In that case, use aligned inside a cell of align. – D_Serg Apr 8 at 3:42

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.