]> git.lyx.org Git - lyx.git/blob - lib/bind/math.bind
fcaaff02ac1e4e11f42d2c156d38d38838a3440e
[lyx.git] / lib / bind / math.bind
1 # This file is part of
2 # ==================================================================
3 #
4 #                   LyX, the Document Processor
5 #
6 #               Copyright (C) 1997 LyX Team
7 #
8 #                      Version 0.1, May 28 1997
9 #
10 # ==================================================================
11
12 # This file provides math mode keys.  Most were suggested by John Weiss 
13 # and modified by Alejandro Aguilar Sierra to be used with different 
14 # keyboard layouts.
15 #
16 # This file is automatically included from the main bind file.
17 #
18 # DO NOT CHANGE THIS BINDING FILE! It will be replaced
19 # with every new install of LyX and your changes will be lost.
20 # Instead, copy it to ~/.lyx/bind/math.bind and modify that copy.
21
22 # Note that the order of these is important.  If you put the bindings
23 # that need "period" and "parenleft" first, they flood the minibuffer
24 # and make the keybinding hints impossible to read.  That's why they're
25 # at the end.
26
27 # These are defined for the math menu:
28
29 \bind "M-m f"                   "math-insert \frac"
30 \bind "M-m s"                   "math-insert \sqrt"
31 \bind "M-m e"                   "math-insert ^"
32 \bind "M-m x"                   "math-insert _"
33 \bind "M-m u"                   "math-insert \sum"
34 \bind "M-m i"                   "math-insert \int"
35 \bind "M-m m"                   "math-mode"
36 \bind "M-m d"                   "math-display"
37
38 \bind "M-m g"                   "math-greek"
39 \bind "M-m S-G"                 "math-greek-toggle" 
40 #\bind "M-m o"                  "math-insert \oint"
41 \bind "M-m p"                   "math-insert \partial"
42 \bind "M-m r"                   "math-insert \root"
43 \bind "M-m l"                   "math-limits"
44
45 \bind "M-m n"                   "math-number"
46 \bind "M-m S-N"                 "math-nonumber"
47 \bind "M-m 8"                   "math-insert \infty"
48 \bind "M-m v"                   "accent-vector"
49
50 \bind "M-m o 1"    "math-macro-arg 1"
51 \bind "M-m o 2"    "math-macro-arg 2"
52 \bind "M-m o 3"    "math-macro-arg 3"
53 \bind "M-m o 4"    "math-macro-arg 4"
54 \bind "M-m o 5"    "math-macro-arg 5"
55 \bind "M-m o 6"    "math-macro-arg 6"
56 \bind "M-m o 7"    "math-macro-arg 7"
57 \bind "M-m o 8"    "math-macro-arg 8"
58 \bind "M-m o 9"    "math-macro-arg 9"
59
60 \bind "M-m t t"   "math-mutate dump"
61 \bind "M-m t a"   "math-mutate align"
62 \bind "M-m t i"   "math-mutate inline"
63 \bind "M-m t d"   "math-mutate display"
64 \bind "M-m t e"   "math-mutate eqnarray"
65
66 \bind "M-m c i"   "math-column-insert"
67 \bind "M-m c d"   "math-column-delete"
68
69 \bind "M-m w i"   "math-row-insert"
70 \bind "M-m w d"   "math-row-delete"
71
72 \bind "M-m a v t"   "math-valign top"
73 \bind "M-m a v c"   "math-valign center"
74 \bind "M-m a v b"   "math-valign bottom"
75 \bind "M-m a h l"   "math-halign left"
76 \bind "M-m a h c"   "math-halign center"
77 \bind "M-m a h r"   "math-halign right"
78
79 # The accent-circumflex is 'h' for 'hat', which is what most math
80 # folks call it verbally.
81
82 \bind "M-m b"                   "math-insert \overline"
83 \bind "M-m h"                   "accent-circumflex"
84 \bind "M-m ~S-period"           "accent-dot"
85 \bind "M-m ~S-asciitilde"       "accent-tilde"
86 \bind "M-m ~S-apostrophe"       "math-insert \prime"
87 \bind "M-m ~S-quotedbl"         "accent-umlaut"
88
89
90 # These do pairs of: () {} [] <> ||
91
92 \bind "M-m ~S-parenleft"        "math-delim ( )"
93 \bind "M-m ~S-bracketleft"      "math-delim [ ]"
94 \bind "M-m ~S-braceleft"        "math-delim { }"
95 \bind "M-m ~S-less"             "math-delim langle rangle"  
96 \bind "M-m ~S-greater"          "math-delim rangle langle"
97 \bind "M-m ~S-bar"              "math-delim | |"
98
99
100 # Note: it's easy to insert binary relations like \pm, \mp, \neq, \geq, 
101 # and \leq just by typing them. However it's easier to remember these:
102
103 \bind "M-m ~S-plus"    "math-insert \pm" 
104 \bind "M-m ~S-equal"   "math-insert \neq"
105
106 \bind "Escape"         "escape"
107 \bind "C-Tab"          "tab-insert"
108 \bind "M-m space"      "math-space"
109 \bind "M-m S-G"      "command-sequence math-mode ; math-greek-toggle ; "