mailing-list for TeXmacs Users

Text archives Help


keymaps II


Chronological Thread 
  • From: "Juan Pablo Romero" <address@hidden>
  • To: address@hidden
  • Subject: keymaps II
  • Date: Mon, 01 Dec 2003 01:37:01 +0000

Ok, I found how to bind "left shift" to "enter/leave math mode".

In "src/Windows/X/x_init.cpp", after line 675, added this:

Map (XK_Find, "find");
Map (XK_Shift_L, "shift_l");

Then recompile texmacs, and modify my-init-texmacs.scm:

(kbd-map in-math?
...
("shift_l" (go-end-with "mode" "math"))
)

(kbd-map in-text?
...
("shift_l" (if (inside? "hybrid") (insert-string "$") (make-with "mode" "math")))
)


So this makes me think perhaps it is a good idea to add many more XK_xxxx symbols to x_init.cpp (perhaps all from /usr/X11R6/include/X11/keysymdef.h ?).

Also tryied this:

(kbd-map in-text?
("ordfeminine" (insert-string "ª"))
("masculine" (insert-string "º"))
...
)


But texmacs inserts some other characters (something like z + "check"), so no luck here :(


Regards

Juan Pablo

_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es




Archive powered by MHonArc 2.6.19.

Top of page