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