On 3 Aug 2007, at 16:19, Richard Heck wrote:

Stephen Cornell wrote:

Position the cursor in a single-line equation. Press CMD-return
Expected behaviour: create a new line, with all material before the cursor on the present line to remain on the current line, and all material after the cursor to move to the newly created line. Actual behaviour: all material including and after the equals sign is moved to the new line, irrespective of where the cursor was.

This is because cmd-return creates an eqnarray or an align environment, depending upon whether AMSMath is in use, and the equals sign is used for alignment.


...except that the equals sign is moved to the new line, not kept on the old one. This is NEVER the intended behaviour; you either want to type a new equation, or to add additional terms on the right-hand side of the current one.

Even if this were the correct behaviour, it's inconsistent with C- return in an already multi-line equation - which gets it right, IMO.

e.g. if `|' represents the position of the cursor, and `[', `]' delimit the fields of a multi-line equation, then the display equation

A=B|C

should become, after CMD-return
 [A][=][B]
[][][|C]

rather than
[A|][][]
[][=][BC]

as it does currently.


Meanwhile, if the cursor is positioned before the equals sign on the current line , then e.g.

A|B=C

should become

[A][][]
[|B][=][C]




When typing a LaTeX command in Math mode, the space bar completes the command and displays the symbol. This accords roughly with what would be expected if one were typing LaTeX. What is strange to me is that hitting the space bar in other circumstances causes the cursor to jump to just after the math box, even if it were previously only half way through. It's confusing to have such radically different behaviour in very similar circumstances, and I can't think why the second behaviour would be very very useful.

1.3 was actually superior, as the space bar was ignored in math mode unless the cursor was positioned at the end of the math box. Extra white space is benign in LaTeX, and I think this should also be the case in LyX (as it is in text mode).

This seems like a bug. I agree: If you're at the end, you should exit; if you're not, it should do nothing.


Glad you agree :-)


But it's clear why it behaves this way: It's an easy way to exit the formula...or, more generally, an inset within a formula.


Maybe the space bar is the wrong key for these too. It's pretty ingrained in most users that Space means `end of word', so you should exit only if you're at the end of that unit. Perhaps `ESC' should be used to exit, no matter where you are?

--
Stephen Cornell  [EMAIL PROTECTED]  +44-113-3432899
Institute of Integrative and Comparative Biology
University of Leeds, Leeds, LS2 9JT, UK


Reply via email to