]> git.lyx.org Git - lyx.git/blob - lib/bind/math.bind
895758b2d75c6a4908e6f88f740207a5617f2fa8
[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 o"                  "math-insert \oint"
39 \bind "M-m p"                   "math-insert \partial"
40 \bind "M-m r"                   "math-insert \root"
41 \bind "M-m l"                   "math-limits"
42
43 \bind "M-m n"                   "math-number"
44 \bind "M-m S-N"                 "math-nonumber"
45 \bind "M-m 8"                   "math-insert \infty"
46 \bind "M-m v"                   "accent-vector"
47
48 \bind "M-m o 1"    "math-macro-arg 1"
49 \bind "M-m o 2"    "math-macro-arg 2"
50 \bind "M-m o 3"    "math-macro-arg 3"
51 \bind "M-m o 4"    "math-macro-arg 4"
52 \bind "M-m o 5"    "math-macro-arg 5"
53 \bind "M-m o 6"    "math-macro-arg 6"
54 \bind "M-m o 7"    "math-macro-arg 7"
55 \bind "M-m o 8"    "math-macro-arg 8"
56 \bind "M-m o 9"    "math-macro-arg 9"
57
58 \bind "M-m t t"   "math-mutate dump"
59 \bind "M-m t a"   "math-mutate align"
60 \bind "M-m t i"   "math-mutate inline"
61 \bind "M-m t d"   "math-mutate display"
62 \bind "M-m t e"   "math-mutate eqnarray"
63
64 \bind "M-m c i"   "math-column-insert"
65 \bind "M-m c d"   "math-column-delete"
66
67 \bind "M-m w i"   "math-row-insert"
68 \bind "M-m w d"   "math-row-delete"
69
70 \bind "M-m a v t"   "math-valign top"
71 \bind "M-m a v c"   "math-valign center"
72 \bind "M-m a v b"   "math-valign bottom"
73 \bind "M-m a h l"   "math-halign left"
74 \bind "M-m a h c"   "math-halign center"
75 \bind "M-m a h r"   "math-halign right"
76
77 # The accent-circumflex is 'h' for 'hat', which is what most math
78 # folks call it verbally.
79
80 \bind "M-m b"                   "math-insert \overline"
81 \bind "M-m h"                   "accent-circumflex"
82 \bind "M-m ~S-period"           "accent-dot"
83 \bind "M-m ~S-asciitilde"       "accent-tilde"
84 \bind "M-m ~S-apostrophe"       "math-insert \prime"
85 \bind "M-m ~S-quotedbl"         "accent-umlaut"
86
87
88 # These do pairs of: () {} [] <> ||
89
90 \bind "M-m ~S-parenleft"        "math-delim ( )"
91 \bind "M-m ~S-bracketleft"      "math-delim [ ]"
92 \bind "M-m ~S-braceleft"        "math-delim { }"
93 \bind "M-m ~S-less"             "math-delim langle rangle"  
94 \bind "M-m ~S-greater"          "math-delim rangle langle"
95 \bind "M-m ~S-bar"              "math-delim | |"
96
97
98 # Note: it's easy to insert binary relations like \pm, \mp, \neq, \geq, 
99 # and \leq just by typing them. However it's easier to remember these:
100
101 \bind "M-m ~S-plus"    "math-insert \pm" 
102 \bind "M-m ~S-equal"   "math-insert \neq"
103
104 \bind "Escape"         "escape"
105 \bind "C-Tab"          "tab-insert"
106 \bind "M-m space"      "math-space"
107 \bind "M-m S-G"        "math-greek-toggle"
108
109 # This should be handled properly by some "get the next key" method
110
111 \bind "M-m g a"      "math-insert \alpha"
112 \bind "M-m g b"      "math-insert \beta"
113 \bind "M-m g c"      "math-insert \chi"
114 \bind "M-m g d"      "math-insert \delta"
115 \bind "M-m g e"      "math-insert \epsilon"
116 \bind "M-m g f"      "math-insert \phi"
117 \bind "M-m g g"      "math-insert \gamma"
118 \bind "M-m g h"      "math-insert \eta"
119 \bind "M-m g i"      "math-insert \iota"
120 \bind "M-m g j"      "math-insert \epsilon"
121 \bind "M-m g k"      "math-insert \kappa"
122 \bind "M-m g l"      "math-insert \lambda"
123 \bind "M-m g m"      "math-insert \mu"
124 \bind "M-m g n"      "math-insert \nu"
125 \bind "M-m g o"      "math-insert \omega"
126 \bind "M-m g p"      "math-insert \pi"
127 \bind "M-m g q"      "math-insert \vartheta"
128 \bind "M-m g r"      "math-insert \rho"
129 \bind "M-m g s"      "math-insert \sigma"
130 \bind "M-m g t"      "math-insert \tau"
131 \bind "M-m g u"      "math-insert \upsilon"
132 \bind "M-m g v"      "math-insert \theta"
133 \bind "M-m g w"      "math-insert \omega"
134 \bind "M-m g x"      "math-insert \xi"
135 \bind "M-m g y"      "math-insert \varphi"
136 \bind "M-m g z"      "math-insert \zeta"
137
138 \bind "M-m g S-D"    "math-insert \Delta"
139 \bind "M-m g S-E"    "math-insert \varepsilon"
140 \bind "M-m g S-F"    "math-insert \Phi"
141 \bind "M-m g S-G"    "math-insert \Gamma"
142 \bind "M-m g S-I"    "math-insert \iota"
143 \bind "M-m g S-J"    "math-insert \epsilon"
144 \bind "M-m g S-O"    "math-insert \Omega"
145 \bind "M-m g S-P"    "math-insert \Pi"
146 \bind "M-m g S-Q"    "math-insert \vartheta"
147 \bind "M-m g S-R"    "math-insert \varrho"
148 \bind "M-m g S-S"    "math-insert \Sigma"
149 \bind "M-m g S-T"    "math-insert \varsigma"
150 \bind "M-m g S-U"    "math-insert \Upsilon"
151 \bind "M-m g S-V"    "math-insert \Theta"
152 \bind "M-m g S-W"    "math-insert \Omega"
153 \bind "M-m g S-X"    "math-insert \Xi"
154 \bind "M-m g S-Y"    "math-insert \Varphi"
155
156
157 \bind "M-m S-Aring"     "math-insert Å"
158 \bind "M-m aring"       "math-insert å"
159 \bind "M-m S-Oslash"    "math-insert Ø"
160 \bind "M-m oslash"      "math-insert ø"
161 \bind "M-m S-Adiaeresis"    "math-insert Ä"
162 \bind "M-m adiaeresis"  "math-insert ä"
163 \bind "M-m S-Odiaeresis"    "math-insert Ö"
164 \bind "M-m odiaeresis"  "math-insert ö"
165 \bind "M-m S-Udiaeresis"    "math-insert Ü"
166 \bind "M-m udiaeresis"  "math-insert ü"
167