1 # This file is part of LyX
3 # LyX keyboard definitions similar to those of Scientific Word.
4 # Prepared by Serge Winitzki. Version 1.3
7 #\bind "C-b" "font-bold"
9 # Copy, paste, etc.: more familiar keys
12 # Display equation toggle: type it in a displayed equation to convert it
13 # back to an inline equation
15 \bind "C-d" "math-display"
19 \bind "C-f" "math-insert \frac"
20 # Greek for only one character. "math-greek-toggle" is the persistent Greek
21 # toggle which nobody really needs when typing math.
22 #\bind "C-g" "math-greek"
23 #\bind "C-S-G" "math-greek-toggle"
25 # Since the toggles don't work in 1.2.0, let's define all letters.
26 # lowercase math Greek
27 \bind "C-g a" "math-insert \alpha"
28 \bind "C-g b" "math-insert \beta"
29 \bind "C-g g" "math-insert \gamma"
30 \bind "C-g d" "math-insert \delta"
31 \bind "C-g e" "math-insert \varepsilon"
32 \bind "C-g C-e" "math-insert \epsilon"
33 \bind "C-g z" "math-insert \zeta"
34 \bind "C-g h" "math-insert \eta"
35 \bind "C-g q" "math-insert \theta"
36 \bind "C-g C-q" "math-insert \vartheta"
37 \bind "C-g i" "math-insert \iota"
38 \bind "C-g k" "math-insert \kappa"
39 \bind "C-g l" "math-insert \lambda"
40 \bind "C-g m" "math-insert \mu"
41 \bind "C-g n" "math-insert \nu"
42 \bind "C-g x" "math-insert \xi"
43 \bind "C-g p" "math-insert \pi"
44 \bind "C-g C-p" "math-insert \varpi"
45 \bind "C-g r" "math-insert \rho"
46 \bind "C-g s" "math-insert \sigma"
47 \bind "C-g C-s" "math-insert \varsigma"
48 \bind "C-g t" "math-insert \tau"
49 \bind "C-g v" "math-insert \upsilon"
50 \bind "C-g f" "math-insert \phi"
51 \bind "C-g c" "math-insert \chi"
52 \bind "C-g y" "math-insert \psi"
53 \bind "C-g w" "math-insert \omega"
55 # uppercase math Greek
56 \bind "C-g S-G" "math-insert \Gamma"
57 \bind "C-g S-D" "math-insert \Delta"
58 \bind "C-g S-Q" "math-insert \Theta"
59 \bind "C-g S-L" "math-insert \Lambda"
60 \bind "C-g S-X" "math-insert \Xi"
61 \bind "C-g S-P" "math-insert \Pi"
62 \bind "C-g S-S" "math-insert \Sigma"
63 \bind "C-g S-V" "math-insert \Upsilon"
64 \bind "C-g S-F" "math-insert \Phi"
65 \bind "C-g S-Y" "math-insert \Psi"
66 \bind "C-g S-W" "math-insert \Omega"
70 #\bind "C-h" "hyphenation-point-insert"
73 \bind "C-i" "math-insert \int"
77 \bind "C-k" "line-delete-forward"
78 \bind "C-l" "screen-recenter"
80 # Toggle: in text mode, switch to math, and vice versa. Also C-t.
81 \bind "C-m" "math-mode"
82 # C-n is numbering equations now. Sciword had "C-Tab" mnemonic which conflicts with many things.
83 # Numbering equations. Should perhaps simplify math-number and math-nonumber into one command since they are used in very different contexts. This and also math-macro stuff should be available in the Lyx menus!
84 \bind "C-n" "math-number"
85 \bind "S-C-N" "math-nonumber"
87 \bind "C-o" "file-open"
89 # Insert a quote character. Do I need this?
90 # Probably, since we need a way to get a raw quote
91 \bind "C-q" "self-insert \""
94 \bind "C-r" "math-insert \sqrt"
95 \bind "S-C-R" "math-insert \root"
97 # This combination is now a gateway to math symbols (C-s ...)
100 # Sciword mnemonic for going between text and math modes.
101 \bind "C-t" "math-mode"
103 \bind "C-u" "font-underline"
105 \bind "C-w" "buffer-close"
111 # This combination makes an umlaut accent now.
112 #\bind "S-C-quotedbl" "quote-insert"
114 # Bracket delimiters. Sciword mnemonic is to press Control-<bracket key>
116 \bind "C-9" "math-delim ( )"
117 \bind "S-C-parenleft" "math-delim ( )"
118 \bind "C-0" "math-delim ( )"
119 \bind "S-C-parenright" "math-delim ( )"
121 \bind "C-bracketleft" "math-delim [ ]"
122 \bind "C-bracketright" "math-delim [ ]"
123 \bind "C-S-less" "math-delim langle rangle"
124 \bind "C-S-greater" "math-delim langle rangle"
126 # The bar bracket: on some keyboards, e.g. British, the bar character is
127 # bound to an Alt-something and on some wayward Unices to "brokenbar".
128 \bind "C-S-bar" "math-delim | |"
129 \bind "C-S-brokenbar" "math-delim | |"
130 \bind "C-M-bar" "math-delim | |"
132 \bind "S-C-braceleft" "math-delim { }"
133 \bind "S-C-braceright" "math-delim { }"
135 # Accents by Sciword mnemonics. Mostly press Ctrl-<accent key>
136 # e.g. Ctrl-. for overdot, Ctrl-' for acute accent, Ctrl-~ for tilde etc.
137 # Some of them work only in math mode
139 \bind "C-period" "accent-dot"
140 \bind "C-comma" "math-insert \dot"
141 \bind "S-C-colon" "math-insert \ddot"
142 \bind "C-quoteleft" "accent-grave"
143 \bind "S-C-asciitilde" "accent-tilde"
144 \bind "S-C-quotedbl" "accent-umlaut"
145 \bind "C-apostrophe" "accent-acute"
146 \bind "S-C-asciicircum" "accent-circumflex"
147 # accent-vector has been changed?
148 #\bind "C-equal" "accent-vector"
149 # Why is it not "accent-bar"?
150 \bind "C-minus" "math-insert \bar"
151 # What is "accent-underbar"?
152 #\bind "S-C-underscore" "accent-underbar"
156 #\bind "F1" "help" # Not yet implemented!
157 #\bind "C-F1" "help-context" # Not yet implemented!
158 \bind "F2" "buffer-write"
159 \bind "S-F2" "buffer-export latex"
160 \bind "F3" "find-replace"
162 \bind "C-F4" "buffer-close"
163 \bind "M-F4" "lyx-quit"
164 # F4 to F8 are used to switch fonts. Sciword mnemonic.
165 \bind "F4" "font-default"
166 \bind "F5" "font-bold"
167 \bind "F6" "font-emph"
168 \bind "F7" "font-code"
169 \bind "F8" "font-noun"
170 # F9 bound below as meta-prefix (useful e.g. if the keyboard doesn't have a working ALT).
172 #\bind "F10" "------"
175 # Sciword mnemonics for math editing:
177 \bind "M-apostrophe" "math-insert \prime"
178 \bind "C-Up" "math-superscript"
179 \bind "C-Down" "math-subscript"
180 \bind "C-s d" "math-insert \partial"
181 \bind "C-s e" "math-insert \sum"
182 \bind "C-s p" "math-insert \prod"
183 \bind "C-s i" "math-insert \infty"
184 \bind "C-s x" "math-insert \times"
185 \bind "C-s m" "math-matrix 3 3"
186 \bind "C-s v" "math-matrix 1 2"
188 # My own embellishments for symbols I use often.
190 #I'd like to combine math-insert ^ and math-insert prime, but don't know how.
192 \bind "C-s apostrophe" "command-sequence math-superscript; math-insert \prime;"
193 \bind "C-s S-plus" "math-insert \dagger"
194 \bind "C-s equal" "math-insert \equiv"
195 \bind "M-equal" "math-insert \approx"
196 \bind "M-minus" "math-insert \sim"
197 \bind "C-minus" "math-insert \rightarrow"
198 # here is how to make a vector accent:
199 \bind "C-equals" "math-insert \overrightarrow"
200 \bind "S-M-less" "math-insert \leq"
201 \bind "S-M-greater" "math-insert \geq"
202 \bind "C-s S-less" "math-insert \ll"
203 \bind "C-s S-greater" "math-insert \gg"
206 \bind_file maths.bind
207 \bind_file menus.bind
208 \bind_file latinkeys.bind
209 \bind_file cyrkeys.bind
210 \bind_file greekkeys.bind
213 \bind "S-KP_Right" "forward-select"
214 \bind "S-KP_Left" "backward-select"
215 \bind "S-KP_Up" "up-select"
216 \bind "S-KP_Down" "down-select"
217 \bind "S-C-KP_Right" "word-forward-select"
218 \bind "S-C-KP_Left" "word-backward-select"
219 \bind "S-C-KP_Up" "paragraph-up-select"
220 \bind "S-C-KP_Down" "paragraph-down-select"
221 \bind "S-KP_Home" "line-begin-select"
222 \bind "S-KP_End" "line-end-select"
223 \bind "S-KP_Prior" "screen-up-select"
224 \bind "S-KP_Next" "screen-down-select"
225 \bind "S-C-KP_Home" "buffer-begin-select"
226 \bind "S-C-KP_End" "buffer-end-select"
227 \bind "S-C-KP_Prior" "buffer-begin-select"
228 \bind "S-C-KP_Next" "buffer-end-select"
229 \bind "C-KP_Insert" "copy"
230 \bind "S-KP_Insert" "paste"
231 \bind "S-KP_Delete" "cut"
234 \bind "M-x" "command-execute"