]> git.lyx.org Git - lyx.git/blob - lib/bind/sciword.bind
Fix rotateOrigin
[lyx.git] / lib / bind / sciword.bind
1 # This file is part of LyX
2
3 # LyX keyboard definitions similar to those of Scientific Word.
4 # Prepared by Serge Winitzki. Version 1.2
5
6 # Tip: to find the "LyX name" for a key, look at the status bar after
7 # typing some non-existent key combination. E.g. to find how "Ctrl-&" is
8 # referenced, press Ctrl-S Ctrl-&: the status bar shows "C-s S-C-ampersand."
9
10 #\bind "C-a"                    "------"
11 #\bind "C-b"                    "font-bold"
12
13 # Copy, paste, etc.: more familiar keys
14 \bind "C-c"     "copy"
15
16 # Display equation toggle: type it in a displayed equation to convert it
17 # back to an inline equation
18 # Sciword mnemonic.
19 \bind "C-d"     "math-display"
20
21 #\bind "C-e"    "------"
22 # Greek for only one character. "math-greek-toggle" is the persistent Greek
23 # toggle which nobody really needs when typing math.
24 # Sciword mnemonic.
25 \bind "C-f"     "math-insert \frac"
26 \bind "C-g"     "math-greek"
27
28 # Do we need this?
29 #\bind "C-h"    "hyphenation-point-insert"
30
31 # Sciword mnemonic.
32 \bind "C-i"     "math-insert \int"
33
34 #\bind "C-j"    "------"
35
36 \bind "C-k"     "line-delete-forward"
37 \bind "C-l"     "screen-recenter"
38
39 # Toggle: in text mode, switch to math, and vice versa. Also C-t.
40 \bind "C-m"     "math-mode"
41 # C-n is numbering equations now. Sciword had "C-Tab" mnemonic which conflicts with many things.
42 # 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!
43 \bind "C-n"     "math-number"
44 \bind "S-C-n" "math-nonumber"
45 \bind "C-o"     "inset-toggle"
46
47 # Insert a quote character. Do I need this?
48 # Probably, since we need a way to get a raw quote
49 \bind "C-q"     "self-insert \""
50
51 # Sciword mnemonic.
52 \bind "C-r"     "math-insert \sqrt"
53
54 # This combination is now a gateway to math symbols (C-s ...)
55 #\bind "C-s"    "------"
56
57 # Sciword mnemonic for going between text and math modes.
58 \bind "C-t"     "math-mode"
59 \bind "C-u"     "font-underline"
60 \bind "C-v"     "paste"
61 \bind "C-w"     "buffer-close"
62 \bind "C-x"     "cut"
63 \bind "C-z"     "undo"
64 \bind "S-C-z"   "redo"
65
66
67 # This combination makes an umlaut accent now.
68 #\bind "S-C-quotedbl"           "quote-insert"
69
70 # Bracket delimiters. Sciword mnemonic is to press Control-<bracket key>
71
72 \bind "C-9"     "math-delim ( )"
73 \bind "S-C-parenleft"   "math-delim ( )"
74 \bind "C-0"     "math-delim ( )"
75 \bind "S-C-parenright"  "math-delim ( )"
76
77 \bind "C-bracketleft"           "math-delim [ ]"
78 \bind "C-bracketright"  "math-delim [ ]"
79 \bind "C-S-less"                "math-delim langle rangle"
80 \bind "C-S-greater"             "math-delim langle rangle"
81
82 # The bar bracket: on some keyboards, e.g. British, the bar character is
83 # bound to an Alt-something and on some wayward Unices to "brokenbar".
84 \bind "C-S-bar"         "math-delim | |"
85 \bind "C-S-brokenbar"   "math-delim | |"
86 \bind "C-M-bar"         "math-delim | |"
87
88 \bind "S-C-braceleft"           "math-delim { }"
89 \bind "S-C-braceright"          "math-delim { }"
90
91 # Accents by Sciword mnemonics. Mostly press Ctrl-<accent key>
92 # e.g. Ctrl-. for overdot, Ctrl-' for acute accent, Ctrl-~ for tilde etc.
93 # Some of them seem to work only in math mode?
94
95 \bind "C-period"        "accent-dot"
96 \bind "S-C-colon"       "math-insert \ddot"
97 \bind "C-quoteleft"     "accent-grave"
98 \bind "S-C-asciitilde"  "accent-tilde"
99 \bind "S-C-quotedbl"    "accent-umlaut"
100 \bind "C-apostrophe"    "accent-acute"
101 \bind "S-C-asciicircum" "accent-circumflex"
102 \bind "C-equal"         "accent-vector"
103 # Why is it not "accent-bar"?
104 \bind "C-minus" "math-insert \bar"
105 # What is "accent-underbar"?
106 #\bind "S-C-underscore" "accent-underbar"
107
108 # Function keys.
109
110 #\bind "F1"     "help"  # Not yet implemented!
111 #\bind "C-F1"                   "help-context"                  # Not yet implemented!
112 \bind "F2"                     "buffer-write"
113 \bind "F3"                     "find-replace"
114
115 \bind "C-F4"                   "buffer-close"
116 \bind "M-F4"                   "lyx-quit"
117 # F4 to F8 are used to switch fonts. Sciword mnemonic.
118 \bind "F4"                     "font-default"
119 \bind "F5"                     "font-bold"
120 \bind "F6"                     "font-emph"
121 \bind "F7"                     "font-code"
122 \bind "F8"                     "font-noun"
123 # F9 bound below as meta-prefix (useful e.g. if the keyboard doesn't have a working ALT).
124 #\bind "F9"                     "------"
125 #\bind "F10"                    "------"
126
127 #
128 # Math menu (unmodified)
129 #
130
131 \bind "M-m f"                   "math-insert \frac"
132 \bind "M-m i"                   "math-insert \int"
133 \bind "M-m o"                   "math-insert \oint"
134 \bind "M-m p"                  "math-insert \partial"
135 \bind "M-m s"                  "math-insert \sqrt"
136 \bind "M-m S-S"                "math-insert \sum"
137 \bind "M-m l"                  "math-limits"
138 \bind "M-m n"                  "math-number"
139 \bind "M-m v"                  "accent-vector"
140
141 # Sciword mnemonics for math editing:
142
143 \bind "M-apostrophe"    "math-insert \prime"
144 \bind "C-Up"            "math-insert ^"
145 \bind "C-Down"          "math-insert _"
146 \bind "C-s d"           "math-insert \partial"
147 \bind "C-s e"           "math-insert \sum"
148 \bind "C-s p"           "math-insert \prod"
149 \bind "C-s i"           "math-insert \infty"
150 \bind "C-s x"           "math-insert \times"
151
152 # My own embellishments for symbols I use often.
153
154 #I'd like to combine math-insert ^ and math-insert prime, but don't know how.
155
156 \bind "C-s apostrophe"  "math-insert \prime"
157 \bind "C-s S-plus"      "math-insert \dagger"
158 \bind "C-s equal"       "math-insert \equiv"
159 \bind "M-equal"         "math-insert \approx"
160 \bind "M-minus"         "math-insert \sim"
161 \bind "C-minus"         "math-insert \rightarrow"
162 \bind "S-M-less"        "math-insert \leq"
163 \bind "S-M-greater"     "math-insert \geq"
164 \bind "C-s S-less"      "math-insert \ll"
165 \bind "C-s S-greater"   "math-insert \gg"
166
167         ############################
168 ######### Almost no changes below. #########
169         ############################
170
171 #
172 # Motion group
173 #
174
175 \bind "Right"                  "char-forward"
176 \bind "Left"                   "char-backward"
177 \bind "Up"                     "up"
178 \bind "Down"                   "down"
179 \bind "C-Right"                "word-forward"
180 \bind "C-Left"                 "word-backward"
181 # These are now used to insert superscripts and subscripts.
182 #\bind "C-Up"                   "paragraph-up"
183 #\bind "C-Down"                 "paragraph-down"
184 \bind "Home"                   "line-begin"
185 \bind "End"                    "line-end"
186 \bind "Prior"                  "screen-up"
187 \bind "Next"                   "screen-down"
188 \bind "C-Home"                 "buffer-begin"
189 \bind "C-End"                  "buffer-end"
190 \bind "Tab"                    "tab-forward"
191
192 #
193 # Motion + select group
194 #
195
196 \bind "S-Right"                "forward-select"
197 \bind "S-Left"                 "backward-select"
198 \bind "S-Up"                   "up-select"
199 \bind "S-Down"                 "down-select"
200 \bind "S-C-Right"              "word-forward-select"
201 \bind "S-C-Left"               "word-backward-select"
202 \bind "S-C-Up"                 "paragraph-up-select"
203 \bind "S-C-Down"               "paragraph-down-select"
204 \bind "S-Home"                 "line-begin-select"
205 \bind "S-End"                  "line-end-select"
206 \bind "S-Prior"                "screen-up-select"
207 \bind "S-Next"                 "screen-down-select"
208 \bind "S-C-Home"               "buffer-begin-select"
209 \bind "S-C-End"                "buffer-end-select"
210 \bind "C-Insert"               "copy"
211 \bind "S-Insert"               "paste"
212 \bind "S-Delete"               "cut"
213
214 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
215 \bind "S-KP_Right"              "forward-select"
216 \bind "S-KP_Left"               "backward-select"
217 \bind "S-KP_Up"                 "up-select"
218 \bind "S-KP_Down"               "down-select"
219 \bind "S-C-KP_Right"            "word-forward-select"
220 \bind "S-C-KP_Left"             "word-backward-select"
221 \bind "S-C-KP_Up"               "paragraph-up-select"
222 \bind "S-C-KP_Down"             "paragraph-down-select"
223 \bind "S-KP_Home"               "line-begin-select"
224 \bind "S-KP_End"                "line-end-select"               
225 \bind "S-KP_Prior"              "screen-up-select"
226 \bind "S-KP_Next"               "screen-down-select"
227 \bind "S-C-KP_Home"             "buffer-begin-select"
228 \bind "S-C-KP_End"              "buffer-end-select"
229 \bind "S-C-KP_Prior"            "buffer-begin-select"
230 \bind "S-C-KP_Next"             "buffer-end-select"
231 \bind "C-KP_Insert"             "copy"
232 \bind "S-KP_Insert"             "paste"
233 \bind "S-KP_Delete"             "cut"
234
235 #
236 # Edit group
237 #
238
239 \bind "Delete"                 "delete-forward"
240 \bind "BackSpace"              "delete-backward"
241 \bind "C-Delete"               "word-delete-forward"
242 \bind "C-BackSpace"            "word-delete-backward"
243 \bind "Return"                 "break-paragraph"
244 \bind "M-Return"               "break-paragraph-keep-layout"
245 \bind "C-Return"               "break-line"
246 \bind "C-S-L"                  "ligature-break-insert"
247 \bind "C-space"                "protected-space-insert"
248 \bind "Escape"                 "cancel"
249 \bind "F9"                     "meta-prefix"
250
251
252
253 #
254 # Font size menu
255 #
256
257 \bind "M-s S-A"                "font-size largest"             # \LARGE
258 \bind "M-s g"                  "font-size giant"               # \Huge
259 \bind "M-s h"                  "font-size huge"                # \huge
260 \bind "M-s S-H"                "font-size giant"               # \Huge
261 \bind "M-s l"                  "font-size large"               # \large
262 \bind "M-s S-L"                "font-size larger"              # \Large
263 \bind "M-s n"                  "font-size normal"              # \normalsize
264 \bind "M-s s"                  "font-size small"               # \small
265 \bind "M-s t"                  "font-size tiny"                # \tiny
266
267 \bind "M-s 1"                  "font-size tiny"
268 \bind "M-s 2"                  "font-size small"
269 \bind "M-s 3"                  "font-size normal"
270 \bind "M-s 4"                  "font-size large"
271 \bind "M-s 5"                  "font-size larger"
272 \bind "M-s 6"                  "font-size largest"
273 \bind "M-s 7"                  "font-size huge"
274 \bind "M-s 8"                  "font-size giant"
275
276
277
278 #
279 # Alignment menu
280 #
281
282 #\bind "M-a l"                  "para-align left"               # Not yet implemented!
283 #\bind "M-a r"                  "para-align right"              # Not yet implemented!
284 #\bind "M-a c"                  "para-align center"             # Not yet implemented!
285 #\bind "M-a b"                  "para-align block"              # Not yet implemented!
286 #\bind "M-a f"                  "para-align block"              # Not yet implemented!
287 #\bind "M-a d"                  "para-align default"            # Not yet implemented!
288
289
290
291 #
292 # Paragraph style menu
293 #
294
295 \bind "M-p c"                  "drop-layouts-choice"
296 \bind "M-p 1"                  "layout Chapter"
297 \bind "M-p 2"                  "layout Section"
298 \bind "M-p 3"                  "layout Subsection"
299 \bind "M-p 4"                  "layout Subsubsection"
300 \bind "M-p 5"                  "layout Paragraph"
301 \bind "M-p 6"                  "layout Subparagraph"
302 \bind "M-p b"                  "layout Itemize"                        # bulleted list
303 \bind "M-p d"                  "layout Description"
304 \bind "M-p e"                  "layout Enumerate"                      # numbered list
305 \bind "M-p i"                  "layout Itemize"                        # bulleted list
306 \bind "M-p l"                  "layout List"
307 \bind "M-p n"                  "layout Enumerate"                      # numbered list
308 \bind "M-p p"                  "layout Lyx-Code"
309 \bind "M-p q"                  "layout Quote"
310 \bind "M-p S-Q"                "layout Quotation"
311 \bind "M-p s"                  "layout Standard"
312 \bind "M-p t"                  "layout Title"
313 \bind "M-p S-at"               "layout Section*"                       # M-p S-2
314 \bind "M-p S-dollar"           "layout Subsubsection*"                 # M-p S-4
315 \bind "M-p S-numbersign"       "layout Subsection*"                    # M-p S-3
316
317 \bind "M-p Left"               "depth-decrement"
318 \bind "M-p Right"              "depth-increment"
319
320
321
322 #
323 # Character style menu
324 #
325
326 \bind "M-c b"                  "font-bold"
327 #\bind "M-c c"                  "font-smallcaps"
328 \bind "M-c e"                  "font-emph"
329 \bind "M-c i"                  "font-emph"                                              # italics
330 \bind "M-c m"                  "math-mode"
331 \bind "M-c p"                  "font-code"
332 \bind "M-c r"                  "font-roman"
333 \bind "M-c s"                  "font-sans"
334 \bind "M-c t"                  "ert-insert"
335 \bind "M-c u"                  "font-underline"
336
337 \bind "M-c Down"               "word-lowcase"
338 \bind "M-c Up"                 "word-upcase"
339 \bind "M-c Right"              "word-capitalize"
340
341 \bind "M-c space"              "font-default"
342
343
344
345 #
346 # Keyboard menu
347 #
348
349 \bind "M-k 1"                  "keymap-primary"
350 \bind "M-k 2"                  "keymap-secondary"
351 \bind "M-k o"                  "keymap-off"
352 \bind "M-k t"                  "keymap-toggle"
353 \bind "M-k x"                  "keymap-off"
354
355 #
356 # Misc menu
357 #
358  
359 # this clashes with M-x so we can't use it. M-x is more
360 # important (reported by Serge Winitzki <winitzki@yahoo.com>)
361 # \bind "M-x c"                  "screen-recenter"
362
363 \bind "M-x"                     "command-execute"
364
365
366 \bind_file latinkeys.bind
367 \bind_file cyrkeys.bind
368 \bind_file greekkeys.bind