[Tex/LaTex] Aligning equations in LyX (Last updated version)

horizontal alignmentlyx

I used to use ctrl+enter to create aligned equation in LyX. But since I updated to the last version, that does not seem to be working the same way anymore.

I am trying to creat something like this (I wrote this before I updated LyX, and it still worked)
enter image description here

The important resources that I need here are the equations that align along the equal sign and that each equation can be numbered. In Lyx, it used to look like this:

enter image description here

I tried using arrays and using rcl as the horizontal alignment option, but that environment does not allow to number each equation separatly and there is less spacing between the equations. It would look like this:

enter image description here

Does anybody know a way around this?

Best Answer

Presumably in older versions of LyX, Ctrl + Enter would convert a standard unnumbered equation into an eqnarray environment. This environment uses three columns to obtain alignment, i.e.

<right aligned> & <center aligned> & <left aligned>

The latest versions instead convert it to an align* environment (from amsmath). This is a good change, because eqnarray should be avoided: eqnarray vs align

It does however work a bit differently, in that it uses two columns to obtain alignment,

<right aligned> & <left aligned>

So now in newer versions of LyX, don't add the third column, instead add both = and the RHS in the second column. The third column is again right aligned, as the columns in an align form rl pairs, see e.g. What does a double ampersand (&&) mean in LaTeX?