On Mon, Jan 21, 2002 at 06:33:27PM +0200, Martin Vermeer wrote:

...

> 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

Improved patch.

+ Renders OK on-screen and in print, saves and loads OK
+ Key sequences M-m ^ <space> and M-m _ now work (hey, *almost* good enough :-)
- Still based on \hat. Horizontal positioning in screen rendering may look wrong.

-- 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/22 06:53:38
@@ -28,8 +28,10 @@
 
 \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"  "command-sequence accent-circumflex;char-backward;math-insert \ 
+;char-forward;"
+\bind "M-m asciicircum"        "command-sequence 
+accent-circumflex;char-backward;math-insert \ ;char-forward;"
+\bind "M-m x"                  "math-insert \_ "
+\bind "M-m ~S-underscore"      "math-insert \_ "
 \bind "M-m u"                  "math-insert \sum"
 \bind "M-m i"                  "math-insert \int"
 \bind "M-m m"                  "math-mode"

Attachment: msg31897/pgp00000.pgp
Description: PGP signature

Reply via email to