On Sun, Jan 20, 2002 at 01:44:16PM +0200, Dekel Tsur wrote: > On Sun, Jan 20, 2002 at 12:50:42PM +0200, Martin Vermeer wrote: > > On Sun, Jan 20, 2002 at 09:46:43AM +0100, Herbert Voss wrote: > > > > > > how can I insert "X_Blah" in math without getting > > > subscript? > > > > > > Herbert > > > > Type M-m x. > > But when saving the file, it is stored as '_' and not as '\_' !
Aaargh!! I had once an old math teacher (well I thought he was old, I suppose he was then my age today :-) He had the habit of quietly asking us a very simple -- *apparently* very simple -- question. Something you would think even a moron could answer. Usually his questions were 'deep', things that great mathematicians continue to ponder about. And no hope for us poor kids to figure out the answer. This is one of those things. The attached patch does the following things: + Allows _ and ^ symbols to be saved and re-loaded, + Gives correct output to LaTeX. - Does not render quite right on-screen. Renders WYSIWYG only on re-load. - Actually uses a "hat" over a blank; not comme-il-faut and especiallly unacceptable in non-math text. (But then of course there we have the real McCoy, just type ^.) I just didn't manage to get a real circumflex to work. ...but I suppose this will have to do until Einstein visits this list ;-) What is also still undone is to make the key sequences \_ and \^ do the right thing. -- Martin
Index: math.bind =================================================================== RCS file: /cvs/lyx/lyx-devel/lib/bind/math.bind,v retrieving revision 1.7 diff -u -b -B -p -r1.7 math.bind --- math.bind 2001/10/15 10:30:32 1.7 +++ math.bind 2002/01/21 16:15:27 @@ -28,8 +28,8 @@ \bind "M-m f" "math-insert \frac" \bind "M-m s" "math-insert \sqrt" -\bind "M-m e" "math-insert ^" -\bind "M-m x" "math-insert _" +\bind "M-m e" "math-insert \hat{\ }" +\bind "M-m x" "math-insert \_ " \bind "M-m u" "math-insert \sum" \bind "M-m i" "math-insert \int" \bind "M-m m" "math-mode"
msg31887/pgp00000.pgp
Description: PGP signature