]> git.lyx.org Git - lyx.git/blob - lib/bind/math.bind
- Math.lyx: - update math bold description to the new shortcuts
[lyx.git] / lib / bind / math.bind
1 # -*- text -*-
2
3 # file math.bind
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6
7 # author John Weiss
8 # author Alejandro Aguilar Sierra
9 # author Lars Gullik Bjønnes
10 # author Jean-Marc Lasgouttes
11 # author John Levon
12 # author André Pönitz
13 # author Michael Gerz
14 # author Martin Vermeer
15
16 # Full author contact details are available in file CREDITS.
17
18 # This file provides math mode keys.  Most were suggested by John Weiss
19 # and modified by Alejandro Aguilar Sierra to be used with different
20 # keyboard layouts.
21 #
22 # This file is automatically included from the main bind file.
23 #
24 # DO NOT CHANGE THIS BINDING FILE! It will be replaced
25 # with every new install of LyX and your changes will be lost.
26 # Instead, copy it to ~/.lyx/bind/math.bind and modify that copy.
27
28 # Note that the order of these is important.  If you put the bindings
29 # that need "period" and "parenleft" first, they flood the minibuffer
30 # and make the keybinding hints impossible to read.  That's why they're
31 # at the end.
32
33 # These are defined for the math menu:
34
35 \bind "M-m f"                   "math-insert \frac"
36 \bind "M-m s"                   "math-insert \sqrt"
37 \bind "M-m x"                   "math-subscript"
38 \bind "M-m e"                   "math-superscript"
39
40 \bind "M-m u"                   "math-insert \sum"
41 \bind "M-m i"                   "math-insert \int"
42 \bind "M-m m"                   "math-mode" # produces mathematical text
43 \bind "M-m d"                   "math-display"
44
45 \bind "M-m y"                   "math-insert \oint"
46 \bind "M-m p"                   "math-insert \partial"
47 \bind "M-m r"                   "math-insert \root"
48 \bind "M-m l"                   "math-limits"
49 \bind "M-m S-L l"               "math-limits limits"
50 \bind "M-m S-L n"               "math-limits nolimits"
51 \bind "M-m S-L space"           "math-limits empty"
52
53
54 \bind "M-m n"                   "math-number-toggle"
55 \bind "M-m S-N"                 "math-number-line-toggle"
56 \bind "M-m 8"                   "math-insert \infty"
57
58 \bind "M-m o 1"   "self-insert \#1"
59 \bind "M-m o 2"   "self-insert \#2"
60 \bind "M-m o 3"   "self-insert \#3"
61 \bind "M-m o 4"   "self-insert \#4"
62 \bind "M-m o 5"   "self-insert \#5"
63 \bind "M-m o 6"   "self-insert \#6"
64 \bind "M-m o 7"   "self-insert \#7"
65 \bind "M-m o 8"   "self-insert \#8"
66 \bind "M-m o 9"   "self-insert \#9"
67
68 \bind "M-m t n"   "math-mutate none"
69 \bind "M-m t t"   "math-mutate dump"
70 \bind "M-m t a"   "math-mutate align"
71 \bind "M-m t i"   "math-mutate simple"
72 \bind "M-m t d"   "math-mutate equation"
73 \bind "M-m t e"   "math-mutate eqnarray"
74 \bind "M-m t m"   "math-mutate multline"
75
76 \bind "M-m c i"   "tabular-feature append-column"
77 \bind "M-m c d"   "tabular-feature delete-column"
78 \bind "M-m c c"   "tabular-feature copy-column"
79 \bind "M-m c s"   "tabular-feature swap-column"
80 \bind "M-m c a"   "tabular-feature add-vline-left"
81 \bind "M-m c e"   "tabular-feature delete-vline-left"
82 \bind "M-m c z"   "tabular-feature add-vline-right"
83 \bind "M-m c x"   "tabular-feature delete-vline-right"
84
85 \bind "M-m w i"   "tabular-feature append-row"
86 \bind "M-m w d"   "tabular-feature delete-row"
87 \bind "M-m w c"   "tabular-feature copy-row"
88 \bind "M-m w s"   "tabular-feature swap-row"
89 \bind "M-m w a"   "tabular-feature add-hline-above"
90 \bind "M-m w e"   "tabular-feature delete-hline-above"
91 \bind "M-m w z"   "tabular-feature add-hline-below"
92 \bind "M-m w x"   "tabular-feature delete-hline-below"
93
94 \bind "M-m w t"   "tabular-feature valign-top"
95 \bind "M-m w m"   "tabular-feature valign-middle"
96 \bind "M-m w b"   "tabular-feature valign-bottom"
97 \bind "M-m c l"   "tabular-feature align-left"
98 \bind "M-m c m"   "tabular-feature align-center"
99 \bind "M-m c r"   "tabular-feature align-right"
100
101 # Decoration accents
102
103 # The accent-circumflex is 'h' for 'hat', which is what most math
104 # folks call it verbally.
105
106 \bind "M-m ~S-quotedbl"         "math-insert \ddot"
107 \bind "M-m h"                           "math-insert \hat"
108 \bind "M-m ~C-~M-~S-backslash"  "math-insert \grave"
109 \bind "M-m ~S-slash"            "math-insert \acute"
110 \bind "M-m ~C-~M-~S-ampersand"  "math-insert \tilde"
111 \bind "M-m ~S-minus"            "math-insert \bar"
112 \bind "M-m ~S-period"           "math-insert \dot"
113 \bind "M-m S-V"                         "math-insert \check"
114 \bind "M-m S-U"                         "math-insert \breve"
115 \bind "M-m v"                           "math-insert \vec"
116 \bind "M-m ~S-underscore"       "math-insert \underbar"
117
118 \bind "M-m b"                   "math-insert \overline"
119 \bind "M-m ~S-apostrophe"       "math-insert \prime"
120
121 # These do pairs of: () {} [] <> ||
122
123 \bind "M-m ~S-parenleft"        "math-delim ( )"
124 \bind "M-m ~C-~M-~S-bracketleft" "math-delim [ ]"
125 \bind "M-m ~C-~M-~S-braceleft"  "math-delim { }"
126 \bind "M-m ~S-less"             "math-delim langle rangle" # produces < >
127 \bind "M-m ~S-greater"          "math-delim rangle langle" # produces > <
128 \bind "M-m ~C-~M-~S-bar"        "math-delim | |"
129
130
131 # Note: it's easy to insert binary relations like \pm, \mp, \neq, \geq,
132 # and \leq just by typing them. However it's easier to remember these:
133
134 \bind "M-m ~S-plus"    "math-insert \pm"
135 \bind "M-m ~S-equal"   "math-insert \neq"
136
137 \bind "Escape"         "escape"
138 \bind "M-m space"      "math-space"
139 # FIXME: find another shortcut for cell-split as C-Tab is used for buffer-next
140 # in 'cua.bind'.
141 #\bind "C-Tab"          "cell-split"
142
143 # math-macros
144 \bind "C-plus"         "math-macro-unfold"
145 # FIXME: this accelerator is already taken by
146 # specialspecialchar-insert hyphenation in cua.bind
147 #\bind "C-minus"        "math-macro-fold"
148
149 # This should be handled properly by some "get the next key" method
150
151 \bind "M-m g a"      "math-insert \alpha"
152 \bind "M-m g b"      "math-insert \beta"
153 \bind "M-m g c"      "math-insert \chi"
154 \bind "M-m g d"      "math-insert \delta"
155 \bind "M-m g e"      "math-insert \epsilon"
156 \bind "M-m g f"      "math-insert \phi"
157 \bind "M-m g g"      "math-insert \gamma"
158 \bind "M-m g h"      "math-insert \eta"
159 \bind "M-m g i"      "math-insert \iota"
160 \bind "M-m g j"      "math-insert \varphi"
161 \bind "M-m g k"      "math-insert \kappa"
162 \bind "M-m g l"      "math-insert \lambda"
163 \bind "M-m g m"      "math-insert \mu"
164 \bind "M-m g n"      "math-insert \nu"
165 \bind "M-m g o"      "math-insert \omega"
166 \bind "M-m g p"      "math-insert \pi"
167 \bind "M-m g q"      "math-insert \vartheta"
168 \bind "M-m g r"      "math-insert \rho"
169 \bind "M-m g s"      "math-insert \sigma"
170 \bind "M-m g t"      "math-insert \tau"
171 \bind "M-m g u"      "math-insert \upsilon"
172 \bind "M-m g v"      "math-insert \theta"
173 \bind "M-m g w"      "math-insert \omega"
174 \bind "M-m g x"      "math-insert \xi"
175 \bind "M-m g y"      "math-insert \psi"
176 \bind "M-m g z"      "math-insert \zeta"
177
178 \bind "M-m g S-D"    "math-insert \Delta"
179 \bind "M-m g S-E"    "math-insert \varepsilon"
180 \bind "M-m g S-F"    "math-insert \Phi"
181 \bind "M-m g S-G"    "math-insert \Gamma"
182 \bind "M-m g S-I"    "math-insert \iota"
183 \bind "M-m g S-J"    "math-insert \epsilon"
184 \bind "M-m g S-L"    "math-insert \Lambda"
185 \bind "M-m g S-O"    "math-insert \Omega"
186 \bind "M-m g S-P"    "math-insert \Pi"
187 \bind "M-m g S-Q"    "math-insert \vartheta"
188 \bind "M-m g S-R"    "math-insert \varrho"
189 \bind "M-m g S-S"    "math-insert \Sigma"
190 \bind "M-m g S-T"    "math-insert \varsigma"
191 \bind "M-m g S-U"    "math-insert \Upsilon"
192 \bind "M-m g S-V"    "math-insert \Theta"
193 \bind "M-m g S-W"    "math-insert \Omega"
194 \bind "M-m g S-X"    "math-insert \Xi"
195 \bind "M-m g S-Y"    "math-insert \Psi"