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)
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:
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:
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.The latest versions instead convert it to an
align*
environment (fromamsmath
). This is a good change, becauseeqnarray
should be avoided: eqnarray vs alignIt does however work a bit differently, in that it uses two columns to obtain alignment,
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 analign
formrl
pairs, see e.g. What does a double ampersand (&&) mean in LaTeX?