[Tex/LaTex] Displaying a really long chain of inequalities

equationsformattingline-breakinglyx

I'm trying to enter a long chain of inequalities in math display mode. If I enter the expressions as I want them to, LyX will continue displaying them off the screen – so that they don't show up when I compile the pdf (and I cannot see what I am typing). Is there a way I can enter a long chain of expressions in display mode so that LyX displays them nicely? My only option so far has been to exit display mode when I'm too far right of the screen, hit enter and go back into display mode to enter the next line. However, this doesn't look too great on the pdf, and I have no idea when is a good time to shift to the next line anyway. I'm assuming there is a proper way to do this.

Best Answer

As people mentioned in the comments you should use eqnarray or align By default you can do it by pressing Ctrl-Enter in math mode, this will create an eqnarray environment. By pressing Ctrl-Enter again, you can get additional lines. Spacing should be much better than acieved by separate displayed math environments.

To use the AMS align environment, you should tick "Use AMS math package" (first untick "Use AMS math package automatically") in Document->Settings->Math Options. This is probably the best thing to do, as align is much better looking than eqnarrary.

Related Question