Stephen Cornell wrote:
(2) Creating multi-line equations breaks the equation in a brain-dead place

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.
This causes a lot of frustration to me, because often I only decide that an equation has to be multi-line when I'm already half-way through typing it. When this happens, I have to type CMD-return, then CMD-z to undo the creation of the new line, re-position the cursor, and type CMD-return again :-(
I agree that this isn't the most useful behavior...for me, but obviously someone did choose this. Andre---do you have a view?
Much of the necessary code should already be there, because CMD-return DOES respect the position of the cursor if the display equation is already multi-line.
Yes, even I could change this...and I don't understand the math code at all.
This looks like Bug 2552, except that that bug claims `the parts... are distributed to the slots depending on the cursor position', which is not the case for me.
I've closed that bug. I think it's out of date now.
(3) confusing behaviour of space-bar in Math Mode

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. 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. You get the same behavior in superscripts, for example. This is also an easy fix. I've got it working locally already.

Richard


--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to