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