1 # This file is part of LyX
3 # LyX keyboard definitions similar to those of Scientific Word.
4 # Prepared by Serge Winitzki. Version 1.0
6 # Tip: to find how LyX calls a pressed key, look at the status bar after
7 # entering a non-existent key combination. E.g. want to find how "Ctrl-&" is
8 # referenced, so press Ctrl-S Ctrl-&: the status bar shows "C-s S-C-ampersand."
11 #\bind "C-b" "font-bold"
13 # Copy, paste, etc.: more familiar keys
16 # Display equation toggle: type it in a displayed equation to convert it
17 # back to an inline equation
19 \bind "C-d" "math-display"
22 # Greek for only one character. "math-greek-toggle" is the persistent Greek
23 # toggle which nobody really needs when typing math.
25 \bind "C-f" "math-insert frac"
26 \bind "C-g" "math-greek"
29 #\bind "C-h" "hyphenation-point-insert"
32 \bind "C-i" "math-insert int"
36 \bind "C-k" "line-delete-forward"
37 \bind "C-l" "screen-recenter"
39 # Toggle: in text mode, switch to math, and vice versa. Also C-t.
40 \bind "C-m" "math-mode"
42 \bind "C-o" "open-stuff"
43 \bind "C-p" "font-code"
44 # Insert a quote character. Do I need this?
45 \bind "C-q" "quote-insert"
48 \bind "C-r" "math-insert sqrt"
50 # This combination is now a gateway to math symbols (C-s ...)
51 #\bind "C-s" "font-smallcaps"
52 \bind "C-t" "math-mode"
53 \bind "C-u" "font-underline"
55 \bind "C-w" "buffer-close"
61 # This combination makes an umlaut accept now.
62 #\bind "S-C-quotedbl" "quote-insert"
64 # Bracket delimiters. Sciword mnemonic is to press Control-<bracket key>
66 \bind "C-9" "math-delim ( )"
67 \bind "S-C-parenleft" "math-delim ( )"
68 \bind "C-0" "math-delim ( )"
69 \bind "S-C-parenright" "math-delim ( )"
71 \bind "C-S-bracketleft" "math-delim [ ]"
72 \bind "C-S-bracketright" "math-delim [ ]"
73 \bind "C-S-less" "math-delim langle rangle"
74 \bind "C-S-greater" "math-delim langle rangle"
76 # The bar bracket: on some keyboards, e.g. British, the bar character is
77 # misplaced to an Alt-something
78 \bind "C-S-bar" "math-delim | |"
79 \bind "C-S-brokenbar" "math-delim | |"
80 \bind "C-M-bar" "math-delim | |"
82 \bind "S-C-braceleft" "math-delim { }"
83 \bind "S-C-braceright" "math-delim { }"
85 # Accents. Sciword mnemonic. Mostly need to press Ctrl-<accent key>
86 # e.g. Ctrl-. for overdot, Ctrl-' for acute accent, Ctrl-~ for tilda etc.
87 # Some of them seem to work only in math mode?
90 \bind "C-period" "accent-dot"
91 \bind "C-quoteleft" "accent-grave"
92 \bind "S-C-asciitilde" "accent-tilde"
93 \bind "S-C-quotedbl" "accent-umlaut"
94 \bind "C-apostrophe" "accent-acute"
95 \bind "S-C-asciicircum" "accent-circumflex"
96 \bind "C-equal" "accent-vector"
97 # Why is it not "accent-bar"?
98 \bind "C-minus" "math-insert bar"
99 # What is "accent-underbar"?
100 #\bind "S-C-underscore" "accent-underbar"
102 # Numbering equations. Should perhaps simplify math-number and math-nonumber into one command. This and also math-macro stuff should be available in the menus!
103 # Sciword mnemonic, kind of (was just "TAB").
105 \bind "C-Tab" "math-number"
106 \bind "C-S-Tab" "math-nonumber"
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"
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 (e.g. if the keyboard doesn't have ALT).
125 #\bind "F10" "------"
128 # Math menu (unmodified)
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 \bind "M-m space" "menu-open Math"
142 # Sciword mnemonics for math editing:
144 \bind "M-apostrophe" "math-insert prime"
145 \bind "C-Up" "math-insert ^"
146 \bind "C-Down" "math-insert _"
147 \bind "C-s d" "math-insert partial"
148 \bind "C-s e" "math-insert sum"
149 \bind "C-s p" "math-insert prod"
150 \bind "C-s i" "math-insert infty"
152 # My own embellishments for symbols I use often.
154 #I'd like to combine math-insert ^ and math-insert prime, but don't know how.
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 "M-less" "math-insert leq"
162 \bind "M-greater" "math-insert geq"
163 \bind "C-s S-less" "math-insert ll"
164 \bind "C-s S-greater" "math-insert gg"
166 ############################
167 ######### Almost no changes below. #########
168 ############################
174 \bind "Right" "char-forward"
175 \bind "Left" "char-backward"
178 \bind "C-Right" "word-forward"
179 \bind "C-Left" "word-backward"
180 # These are now used to insert superscripts and subscripts.
181 #\bind "C-Up" "paragraph-up"
182 #\bind "C-Down" "paragraph-down"
183 \bind "Home" "line-begin"
184 \bind "End" "line-end"
185 \bind "Prior" "screen-up"
186 \bind "Next" "screen-down"
187 \bind "C-Home" "buffer-begin"
188 \bind "C-End" "buffer-end"
189 \bind "Tab" "tab-forward"
192 # Motion + select group
195 \bind "S-Right" "forward-select"
196 \bind "S-Left" "backward-select"
197 \bind "S-Up" "up-select"
198 \bind "S-Down" "down-select"
199 \bind "S-C-Right" "word-forward-select"
200 \bind "S-C-Left" "word-backward-select"
201 \bind "S-C-Up" "paragraph-up-select"
202 \bind "S-C-Down" "paragraph-down-select"
203 \bind "S-Home" "line-begin-select"
204 \bind "S-End" "line-end-select"
205 \bind "S-Prior" "screen-up-select"
206 \bind "S-Next" "screen-down-select"
207 \bind "S-C-Home" "buffer-begin-select"
208 \bind "S-C-End" "buffer-end-select"
209 \bind "C-Insert" "copy"
210 \bind "S-Insert" "paste"
211 \bind "S-Delete" "cut"
217 \bind "Delete" "delete-forward"
218 \bind "BackSpace" "delete-backward"
219 \bind "C-Delete" "word-delete-forward"
220 \bind "C-BackSpace" "word-delete-backward"
221 \bind "Return" "break-paragraph"
222 \bind "M-Return" "break-paragraph-keep-layout"
223 \bind "C-Return" "break-line"
224 \bind "C-space" "protected-space-insert"
225 \bind "Escape" "cancel"
226 \bind "F9" "meta-prefix"
229 # Visible Menu access menu
232 \bind "F10 d" "menu-open Documents"
233 \bind "F10 e" "menu-open Edit"
234 \bind "F10 f" "menu-open File"
235 \bind "F10 h" "menu-open Help"
236 \bind "F10 i" "menu-open Insert"
237 \bind "F10 l" "menu-open Layout"
238 \bind "F10 m" "menu-open Math"
239 \bind "F10 o" "menu-open Options"
247 \bind "M-f a" "buffer-write-as"
248 \bind "M-f c" "buffer-close"
249 \bind "M-f n" "buffer-new"
250 #\bind "M-f l" "file-last" # Not yet implemented.
251 \bind "M-f o" "buffer-open"
252 \bind "M-f p" "buffer-print"
253 \bind "M-f q" "lyx-quit"
254 \bind "M-f r" "buffer-typeset"
256 \bind "M-f s" "buffer-write"
257 \bind "M-f t" "buffer-typeset"
259 \bind "M-f x" "buffer-view"
260 \bind "M-f g" "buffer-view-ps"
261 \bind "M-f space" "menu-open File"
268 #\bind "M-e b" "table" # Not yet implemented!
270 \bind "M-e e" "error-next"
271 \bind "M-e f" "find-replace"
272 \bind "M-e k" "line-delete-forward"
273 \bind "M-e m" "mark-on"
274 \bind "M-e S-M" "mark-off"
275 \bind "M-e n" "note-next"
277 \bind "M-e p" "paste"
279 \bind "M-e s" "spellchecker"
280 #\bind "M-e t" "toc-update"
282 \bind "M-e space" "menu-open Edit"
289 \bind "M-l c" "layout-character"
290 \bind "M-l p" "layout-paragraph"
291 \bind "M-l d" "layout-document"
292 \bind "M-l q" "layout-quotes"
293 \bind "M-l l" "layout-preamble"
294 \bind "M-l e" "font-emph"
295 #\bind "M-l n" "font-smallcaps"
296 \bind "M-l b" "font-bold"
297 \bind "M-l t" "tex-mode"
298 \bind "M-l v" "depth-next"
299 \bind "M-l space" "menu-open Layout"
307 \bind "M-i f" "footnote-insert"
308 \bind "M-i h" "hfill-insert"
309 \bind "M-i m" "marginpar-insert"
310 \bind "M-i n" "note-insert"
311 \bind "M-i l" "label-insert"
312 \bind "M-i r" "reference-insert"
313 \bind "M-i minus" "hyphenation-point-insert"
314 \bind "M-i apostrophe" "quote-insert"
315 \bind "M-i S-quotedbl" "quote-insert"
316 \bind "M-i space" "menu-open Insert"
324 #\bind "M-o f" "screen-font-options" # Not yet implemented!
325 #\bind "M-o s" "spellcheck-options" # Not yet implemented!
326 #\bind "M-o k" "keyboard-options" # Not yet implemented!
327 #\bind "M-o l" "latex-options" # Not yet implemented!
328 \bind "M-o space" "menu-open Options"
336 #\bind "M-d p" "buffer-previous"
337 \bind "M-d space" "menu-open Documents"
345 #\bind "M-h d" "help-documentation" # Not yet implemented!
346 #\bind "M-h o" "help-copyright" # Not yet implemented!
347 #\bind "M-h w" "help-warranty" # Not yet implemented!
348 #\bind "M-h c" "help-credits" # Not yet implemented!
349 #\bind "M-h v" "help-version" # Not yet implemented!
350 \bind "M-h space" "menu-open Help"
358 \bind "M-s S-A" "font-size largest" # \LARGE
359 \bind "M-s g" "font-size giant" # \Huge
360 \bind "M-s h" "font-size huge" # \huge
361 \bind "M-s S-H" "font-size giant" # \Huge
362 \bind "M-s l" "font-size large" # \large
363 \bind "M-s S-L" "font-size larger" # \Large
364 \bind "M-s n" "font-size normal" # \normalsize
365 \bind "M-s s" "font-size small" # \small
366 \bind "M-s t" "font-size tiny" # \tiny
368 \bind "M-s 1" "font-size tiny"
369 \bind "M-s 2" "font-size small"
370 \bind "M-s 3" "font-size normal"
371 \bind "M-s 4" "font-size large"
372 \bind "M-s 5" "font-size larger"
373 \bind "M-s 6" "font-size largest"
374 \bind "M-s 7" "font-size huge"
375 \bind "M-s 8" "font-size giant"
383 #\bind "M-a l" "para-align left" # Not yet implemented!
384 #\bind "M-a r" "para-align right" # Not yet implemented!
385 #\bind "M-a c" "para-align center" # Not yet implemented!
386 #\bind "M-a b" "para-align block" # Not yet implemented!
387 #\bind "M-a f" "para-align block" # Not yet implemented!
388 #\bind "M-a d" "para-align default" # Not yet implemented!
393 # Paragraph style menu
396 \bind "M-p c" "drop-layouts-choice"
397 \bind "M-p 1" "layout Chapter"
398 \bind "M-p 2" "layout Section"
399 \bind "M-p 3" "layout Subsection"
400 \bind "M-p 4" "layout Subsubsection"
401 \bind "M-p 5" "layout Paragraph"
402 \bind "M-p 6" "layout Subparagraph"
403 \bind "M-p b" "layout Itemize" # bulleted list
404 \bind "M-p d" "layout Description"
405 \bind "M-p e" "layout Enumerate" # numbered list
406 \bind "M-p i" "layout Itemize" # bulleted list
407 \bind "M-p l" "layout List"
408 \bind "M-p n" "layout Enumerate" # numbered list
409 \bind "M-p p" "layout Lyx-Code"
410 \bind "M-p q" "layout Quote"
411 \bind "M-p S-Q" "layout Quotation"
412 \bind "M-p s" "layout Standard"
413 \bind "M-p t" "layout Title"
414 \bind "M-p S-at" "layout Section*" # M-p S-2
415 \bind "M-p S-dollar" "layout Subsubsection*" # M-p S-4
416 \bind "M-p S-numbersign" "layout Subsection*" # M-p S-3
418 \bind "M-p Left" "depth-decrement"
419 \bind "M-p Right" "depth-increment"
424 # Character style menu
427 \bind "M-c b" "font-bold"
428 #\bind "M-c c" "font-smallcaps"
429 \bind "M-c e" "font-emph"
430 \bind "M-c i" "font-emph" # italics
431 \bind "M-c m" "math-mode"
432 \bind "M-c p" "font-code"
433 \bind "M-c r" "font-roman"
434 \bind "M-c s" "font-sans"
435 \bind "M-c t" "tex-mode"
436 \bind "M-c u" "font-underline"
438 \bind "M-c Down" "word-lowcase"
439 \bind "M-c Up" "word-upcase"
440 \bind "M-c Right" "word-capitalize"
442 \bind "M-c space" "font-default"
450 \bind "M-k 1" "keymap-primary"
451 \bind "M-k 2" "keymap-secondary"
452 \bind "M-k o" "keymap-off"
453 \bind "M-k t" "keymap-toggle"
454 \bind "M-k x" "keymap-off"
462 \bind "M-x c" "screen-recenter"