LyX - breaking long formula lines

Amir Rachum picture Amir Rachum · May 25, 2010 · Viewed 42.7k times · Source

How can I break long formulas in LyX into two (or more) lines? I know how to write several lines of equations in one "math box" but I'm looking for a solution to break lines even in the middle of a parenthesis.

I'm using LyX 1.6.4 and currently, when the formula is too big, it doesn't do anything (it just doesn't print the last segment of it, which is "beyond" the page).

Is this possible in LyX?

Answer

Charles Stewart picture Charles Stewart · May 25, 2010

Yes, but you have to do it by hand.

Check out:

  1. How can I have linebreaks in my long LaTeX equations?
  2. Latex Multiline Equations

Lyx has an "Insert -> Math -> AMS multline environment" control, or you can use the solutions recommended above by entering Latex directly using the Insert Latex control.

Note on breqn

Michael Downes has done some extraordinary Tex coding with this package, but it is not robust enough for general use - it is mostly incompatible with Amsmath, for instance, breaks in hard-to-understand ways, and makes some demonstrably unsound linebreaks in formulae.

Automatic line-breaking in display formulae was listed as one of the top open research problems in Tex.