2003-08-22 10:37:26 +00:00
# -*- text -*-
2003-08-22 10:08:21 +00:00
# file sciword.bind
# This file is part of LyX, the document processor.
# Licence details can be found in the file COPYING.
# author Serge Winitzki
# Full author contact details are available in file CREDITS.
1999-09-27 18:44:28 +00:00
# LyX keyboard definitions similar to those of Scientific Word.
#\bind "C-b" "font-bold"
# Copy, paste, etc.: more familiar keys
\bind "C-c" "copy"
# Display equation toggle: type it in a displayed equation to convert it
# back to an inline equation
# Sciword mnemonic.
\bind "C-d" "math-display"
#\bind "C-e" "------"
# Sciword mnemonic.
2001-08-13 13:52:40 +00:00
\bind "C-f" "math-insert \frac"
2003-03-06 15:36:42 +00:00
# Since the toggles don't work in 1.2.0, let's define all letters.
# lowercase math Greek
\bind "C-g a" "math-insert \alpha"
\bind "C-g b" "math-insert \beta"
\bind "C-g g" "math-insert \gamma"
\bind "C-g d" "math-insert \delta"
\bind "C-g e" "math-insert \varepsilon"
\bind "C-g C-e" "math-insert \epsilon"
\bind "C-g z" "math-insert \zeta"
\bind "C-g h" "math-insert \eta"
\bind "C-g q" "math-insert \theta"
\bind "C-g C-q" "math-insert \vartheta"
\bind "C-g i" "math-insert \iota"
\bind "C-g k" "math-insert \kappa"
\bind "C-g l" "math-insert \lambda"
\bind "C-g m" "math-insert \mu"
\bind "C-g n" "math-insert \nu"
\bind "C-g x" "math-insert \xi"
\bind "C-g p" "math-insert \pi"
\bind "C-g C-p" "math-insert \varpi"
\bind "C-g r" "math-insert \rho"
\bind "C-g s" "math-insert \sigma"
\bind "C-g C-s" "math-insert \varsigma"
\bind "C-g t" "math-insert \tau"
\bind "C-g v" "math-insert \upsilon"
\bind "C-g f" "math-insert \phi"
\bind "C-g c" "math-insert \chi"
\bind "C-g y" "math-insert \psi"
\bind "C-g w" "math-insert \omega"
# uppercase math Greek
\bind "C-g S-G" "math-insert \Gamma"
\bind "C-g S-D" "math-insert \Delta"
\bind "C-g S-Q" "math-insert \Theta"
\bind "C-g S-L" "math-insert \Lambda"
\bind "C-g S-X" "math-insert \Xi"
\bind "C-g S-P" "math-insert \Pi"
\bind "C-g S-S" "math-insert \Sigma"
\bind "C-g S-V" "math-insert \Upsilon"
\bind "C-g S-F" "math-insert \Phi"
\bind "C-g S-Y" "math-insert \Psi"
\bind "C-g S-W" "math-insert \Omega"
1999-09-27 18:44:28 +00:00
2000-07-20 14:15:17 +00:00
# Do we need this?
1999-09-27 18:44:28 +00:00
#\bind "C-h" "hyphenation-point-insert"
# Sciword mnemonic.
2001-08-13 13:52:40 +00:00
\bind "C-i" "math-insert \int"
1999-09-27 18:44:28 +00:00
#\bind "C-j" "------"
\bind "C-k" "line-delete-forward"
\bind "C-l" "screen-recenter"
2007-10-11 15:08:30 +00:00
\bind "C-S-I" "info-insert"
1999-09-27 18:44:28 +00:00
# Toggle: in text mode, switch to math, and vice versa. Also C-t.
\bind "C-m" "math-mode"
2000-07-20 14:15:17 +00:00
# C-n is numbering equations now. Sciword had "C-Tab" mnemonic which conflicts with many things.
# 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!
\bind "C-n" "math-number"
2003-03-06 15:36:42 +00:00
\bind "S-C-N" "math-nonumber"
\bind "C-o" "file-open"
2000-07-20 14:15:17 +00:00
1999-09-27 18:44:28 +00:00
# Insert a quote character. Do I need this?
2001-07-23 09:11:14 +00:00
# Probably, since we need a way to get a raw quote
\bind "C-q" "self-insert \""
1999-09-27 18:44:28 +00:00
# Sciword mnemonic.
2001-08-13 13:52:40 +00:00
\bind "C-r" "math-insert \sqrt"
2003-03-06 15:36:42 +00:00
\bind "S-C-R" "math-insert \root"
1999-09-27 18:44:28 +00:00
# This combination is now a gateway to math symbols (C-s ...)
2000-07-20 14:15:17 +00:00
#\bind "C-s" "------"
# Sciword mnemonic for going between text and math modes.
1999-09-27 18:44:28 +00:00
\bind "C-t" "math-mode"
2003-03-06 15:36:42 +00:00
1999-09-27 18:44:28 +00:00
\bind "C-u" "font-underline"
\bind "C-v" "paste"
2007-01-06 15:33:07 +00:00
\bind "C-S-v" "clipboard-paste"
\bind "C-M-v" "primary-selection-paste"
1999-09-27 18:44:28 +00:00
\bind "C-w" "buffer-close"
\bind "C-x" "cut"
\bind "C-z" "undo"
2003-03-06 15:36:42 +00:00
\bind "S-C-Z" "redo"
2007-01-30 22:26:50 +00:00
\bind "C-a" "command-sequence buffer-begin ; buffer-end-select" # select all
1999-09-27 18:44:28 +00:00
2000-07-20 14:15:17 +00:00
# This combination makes an umlaut accent now.
1999-09-27 18:44:28 +00:00
#\bind "S-C-quotedbl" "quote-insert"
2004-02-20 10:32:44 +00:00
\bind "S-M-quotedbl" "quote-insert single"
1999-09-27 18:44:28 +00:00
# Bracket delimiters. Sciword mnemonic is to press Control-<bracket key>
\bind "C-9" "math-delim ( )"
\bind "S-C-parenleft" "math-delim ( )"
\bind "C-0" "math-delim ( )"
\bind "S-C-parenright" "math-delim ( )"
2000-07-20 14:15:17 +00:00
\bind "C-bracketleft" "math-delim [ ]"
\bind "C-bracketright" "math-delim [ ]"
1999-09-27 18:44:28 +00:00
\bind "C-S-less" "math-delim langle rangle"
\bind "C-S-greater" "math-delim langle rangle"
# The bar bracket: on some keyboards, e.g. British, the bar character is
2000-07-20 14:15:17 +00:00
# bound to an Alt-something and on some wayward Unices to "brokenbar".
1999-09-27 18:44:28 +00:00
\bind "C-S-bar" "math-delim | |"
\bind "C-S-brokenbar" "math-delim | |"
\bind "C-M-bar" "math-delim | |"
\bind "S-C-braceleft" "math-delim { }"
\bind "S-C-braceright" "math-delim { }"
2000-07-20 14:15:17 +00:00
# Accents by Sciword mnemonics. Mostly press Ctrl-<accent key>
# e.g. Ctrl-. for overdot, Ctrl-' for acute accent, Ctrl-~ for tilde etc.
2003-03-06 15:36:42 +00:00
# Some of them work only in math mode
1999-09-27 18:44:28 +00:00
\bind "C-period" "accent-dot"
2003-03-06 15:36:42 +00:00
\bind "C-comma" "math-insert \dot"
2001-08-13 13:52:40 +00:00
\bind "S-C-colon" "math-insert \ddot"
1999-09-27 18:44:28 +00:00
\bind "C-quoteleft" "accent-grave"
\bind "S-C-asciitilde" "accent-tilde"
\bind "S-C-quotedbl" "accent-umlaut"
\bind "C-apostrophe" "accent-acute"
\bind "S-C-asciicircum" "accent-circumflex"
2003-03-06 15:36:42 +00:00
# accent-vector has been changed?
#\bind "C-equal" "accent-vector"
1999-09-27 18:44:28 +00:00
# Why is it not "accent-bar"?
2001-08-13 13:52:40 +00:00
\bind "C-minus" "math-insert \bar"
1999-09-27 18:44:28 +00:00
# What is "accent-underbar"?
#\bind "S-C-underscore" "accent-underbar"
# Function keys.
#\bind "F1" "help" # Not yet implemented!
#\bind "C-F1" "help-context" # Not yet implemented!
\bind "F2" "buffer-write"
2003-03-06 15:36:42 +00:00
\bind "S-F2" "buffer-export latex"
2006-03-20 15:56:08 +00:00
\bind "F3" "dialog-show findreplace"
1999-09-27 18:44:28 +00:00
\bind "C-F4" "buffer-close"
\bind "M-F4" "lyx-quit"
# F4 to F8 are used to switch fonts. Sciword mnemonic.
\bind "F4" "font-default"
\bind "F5" "font-bold"
\bind "F6" "font-emph"
2007-09-21 20:01:53 +00:00
\bind "F7" "font-typewriter"
1999-09-27 18:44:28 +00:00
\bind "F8" "font-noun"
2000-07-20 14:15:17 +00:00
# F9 bound below as meta-prefix (useful e.g. if the keyboard doesn't have a working ALT).
1999-09-27 18:44:28 +00:00
#\bind "F9" "------"
#\bind "F10" "------"
2003-03-06 15:36:42 +00:00
1999-09-27 18:44:28 +00:00
# Sciword mnemonics for math editing:
2001-08-13 13:52:40 +00:00
\bind "M-apostrophe" "math-insert \prime"
2003-03-06 15:36:42 +00:00
\bind "C-Up" "math-superscript"
\bind "C-Down" "math-subscript"
2001-08-13 13:52:40 +00:00
\bind "C-s d" "math-insert \partial"
\bind "C-s e" "math-insert \sum"
\bind "C-s p" "math-insert \prod"
\bind "C-s i" "math-insert \infty"
\bind "C-s x" "math-insert \times"
2003-03-06 15:36:42 +00:00
\bind "C-s m" "math-matrix 3 3"
\bind "C-s v" "math-matrix 1 2"
1999-09-27 18:44:28 +00:00
# My own embellishments for symbols I use often.
#I'd like to combine math-insert ^ and math-insert prime, but don't know how.
2003-03-06 15:36:42 +00:00
\bind "C-s apostrophe" "command-sequence math-superscript; math-insert \prime;"
2001-08-13 13:52:40 +00:00
\bind "C-s S-plus" "math-insert \dagger"
\bind "C-s equal" "math-insert \equiv"
\bind "M-equal" "math-insert \approx"
\bind "M-minus" "math-insert \sim"
\bind "C-minus" "math-insert \rightarrow"
2003-03-06 15:36:42 +00:00
# here is how to make a vector accent:
\bind "C-equals" "math-insert \overrightarrow"
2001-08-13 13:52:40 +00:00
\bind "S-M-less" "math-insert \leq"
\bind "S-M-greater" "math-insert \geq"
\bind "C-s S-less" "math-insert \ll"
\bind "C-s S-greater" "math-insert \gg"
1999-09-27 18:44:28 +00:00
2003-03-06 15:36:42 +00:00
# usual bindings
2005-12-12 10:08:53 +00:00
\bind_file math.bind
2002-11-29 13:22:38 +00:00
\bind_file menus.bind
2001-06-01 13:06:59 +00:00
\bind_file latinkeys.bind
2002-07-16 22:03:20 +00:00
\bind_file cyrkeys.bind
\bind_file greekkeys.bind
2003-03-06 15:36:42 +00:00
2006-04-26 22:43:26 +00:00
\bind "M-Up" "paragraph-move-up"
\bind "M-Down" "paragraph-move-down"
2007-10-22 22:18:52 +00:00
\bind "S-KP_Right" "char-right-select"
\bind "S-KP_Left" "char-left-select"
2003-03-06 15:36:42 +00:00
\bind "S-KP_Up" "up-select"
\bind "S-KP_Down" "down-select"
2007-10-28 20:35:57 +00:00
\bind "S-C-KP_Right" "word-right-select"
\bind "S-C-KP_Left" "word-left-select"
2003-03-06 15:36:42 +00:00
\bind "S-C-KP_Up" "paragraph-up-select"
\bind "S-C-KP_Down" "paragraph-down-select"
\bind "S-KP_Home" "line-begin-select"
2003-10-13 09:50:10 +00:00
\bind "S-KP_End" "line-end-select"
2003-03-06 15:36:42 +00:00
\bind "S-KP_Prior" "screen-up-select"
\bind "S-KP_Next" "screen-down-select"
\bind "S-C-KP_Home" "buffer-begin-select"
\bind "S-C-KP_End" "buffer-end-select"
\bind "S-C-KP_Prior" "buffer-begin-select"
\bind "S-C-KP_Next" "buffer-end-select"
\bind "C-KP_Insert" "copy"
\bind "S-KP_Insert" "paste"
\bind "S-KP_Delete" "cut"
2003-10-13 09:50:10 +00:00
2003-03-06 15:36:42 +00:00
\bind "M-x" "command-execute"