]> git.lyx.org Git - features.git/commitdiff
use new syntax for 'math-insert'
authorDekel Tsur <dekelts@tau.ac.il>
Mon, 13 Aug 2001 13:52:40 +0000 (13:52 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Mon, 13 Aug 2001 13:52:40 +0000 (13:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2500 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/bind/math.bind
lib/bind/sciword.bind

index 0af60043f16472d360649fd02de3d410efdd49e7..9c743f79c14b66e8905f344163d235c6cb768b99 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-25  André Pönitz <poenitz@gmx.net>
+
+       * bind/math.bind:
+         bind/sciword.bind: use new syntax for 'math-insert'
+
 2001-08-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * ui/default.ui: change 'toggle appendix' entry
index 3fe77e076c29bf0d4dac81bce2d2700c92d425d6..fcaaff02ac1e4e11f42d2c156d38d38838a3440e 100644 (file)
 
 # These are defined for the math menu:
 
-\bind "M-m f"                  "math-insert frac"
-\bind "M-m s"                  "math-insert sqrt"
+\bind "M-m f"                  "math-insert \frac"
+\bind "M-m s"                  "math-insert \sqrt"
 \bind "M-m e"                  "math-insert ^"
 \bind "M-m x"                  "math-insert _"
-\bind "M-m u"                  "math-insert sum"
-\bind "M-m i"                  "math-insert int"
+\bind "M-m u"                  "math-insert \sum"
+\bind "M-m i"                  "math-insert \int"
 \bind "M-m m"                  "math-mode"
 \bind "M-m d"                  "math-display"
 
 \bind "M-m g"                  "math-greek"
 \bind "M-m S-G"                        "math-greek-toggle" 
-\bind "M-m o"                  "math-insert oint"
-\bind "M-m p"                  "math-insert partial"
-\bind "M-m r"                  "math-insert root"
+#\bind "M-m o"                 "math-insert \oint"
+\bind "M-m p"                  "math-insert \partial"
+\bind "M-m r"                  "math-insert \root"
 \bind "M-m l"                  "math-limits"
 
 \bind "M-m n"                  "math-number"
 \bind "M-m S-N"                        "math-nonumber"
-\bind "M-m 8"                  "math-insert infty"
+\bind "M-m 8"                  "math-insert \infty"
 \bind "M-m v"                  "accent-vector"
 
+\bind "M-m o 1"    "math-macro-arg 1"
+\bind "M-m o 2"    "math-macro-arg 2"
+\bind "M-m o 3"    "math-macro-arg 3"
+\bind "M-m o 4"    "math-macro-arg 4"
+\bind "M-m o 5"    "math-macro-arg 5"
+\bind "M-m o 6"    "math-macro-arg 6"
+\bind "M-m o 7"    "math-macro-arg 7"
+\bind "M-m o 8"    "math-macro-arg 8"
+\bind "M-m o 9"    "math-macro-arg 9"
+
 \bind "M-m t t"   "math-mutate dump"
 \bind "M-m t a"   "math-mutate align"
 \bind "M-m t i"   "math-mutate inline"
 # The accent-circumflex is 'h' for 'hat', which is what most math
 # folks call it verbally.
 
-\bind "M-m b"                  "math-insert overline"
+\bind "M-m b"                  "math-insert \overline"
 \bind "M-m h"                  "accent-circumflex"
 \bind "M-m ~S-period"          "accent-dot"
 \bind "M-m ~S-asciitilde"      "accent-tilde"
-\bind "M-m ~S-apostrophe"      "math-insert prime"
+\bind "M-m ~S-apostrophe"      "math-insert \prime"
 \bind "M-m ~S-quotedbl"        "accent-umlaut"
 
 
 # Note: it's easy to insert binary relations like \pm, \mp, \neq, \geq, 
 # and \leq just by typing them. However it's easier to remember these:
 
-\bind "M-m ~S-plus"    "math-insert pm" 
-\bind "M-m ~S-equal"   "math-insert neq"
+\bind "M-m ~S-plus"    "math-insert \pm" 
+\bind "M-m ~S-equal"   "math-insert \neq"
 
 \bind "Escape"         "escape"
 \bind "C-Tab"          "tab-insert"
 \bind "M-m space"      "math-space"
-
+\bind "M-m S-G"      "command-sequence math-mode ; math-greek-toggle ; "
index 6a6c504c0189f2f4f1550d5e591ae08eac0cdd91..86afc57cbfa24f359537055b079f4df4285ae581 100644 (file)
 # Greek for only one character. "math-greek-toggle" is the persistent Greek
 # toggle which nobody really needs when typing math.
 # Sciword mnemonic.
-\bind "C-f"    "math-insert frac"
+\bind "C-f"    "math-insert \frac"
 \bind "C-g"    "math-greek"
 
 # Do we need this?
 #\bind "C-h"   "hyphenation-point-insert"
 
 # Sciword mnemonic.
-\bind "C-i"    "math-insert int"
+\bind "C-i"    "math-insert \int"
 
 #\bind "C-j"   "------"
 
@@ -49,7 +49,7 @@
 \bind "C-q"    "self-insert \""
 
 # Sciword mnemonic.
-\bind "C-r"    "math-insert sqrt"
+\bind "C-r"    "math-insert \sqrt"
 
 # This combination is now a gateway to math symbols (C-s ...)
 #\bind "C-s"   "------"
@@ -93,7 +93,7 @@
 # Some of them seem to work only in math mode?
 
 \bind "C-period"       "accent-dot"
-\bind "S-C-colon"      "math-insert ddot"
+\bind "S-C-colon"      "math-insert \ddot"
 \bind "C-quoteleft"    "accent-grave"
 \bind "S-C-asciitilde" "accent-tilde"
 \bind "S-C-quotedbl"   "accent-umlaut"
 \bind "S-C-asciicircum" "accent-circumflex"
 \bind "C-equal"                "accent-vector"
 # Why is it not "accent-bar"?
-\bind "C-minus"        "math-insert bar"
+\bind "C-minus"        "math-insert \bar"
 # What is "accent-underbar"?
 #\bind "S-C-underscore"        "accent-underbar"
 
 # Math menu (unmodified)
 #
 
-\bind "M-m f"                  "math-insert frac"
-\bind "M-m i"                  "math-insert int"
-\bind "M-m o"                  "math-insert oint"
-\bind "M-m p"                  "math-insert partial"
-\bind "M-m s"                  "math-insert sqrt"
-\bind "M-m S-S"                "math-insert sum"
+\bind "M-m f"                  "math-insert \frac"
+\bind "M-m i"                  "math-insert \int"
+\bind "M-m o"                  "math-insert \oint"
+\bind "M-m p"                  "math-insert \partial"
+\bind "M-m s"                  "math-insert \sqrt"
+\bind "M-m S-S"                "math-insert \sum"
 \bind "M-m l"                  "math-limits"
 \bind "M-m n"                  "math-number"
 \bind "M-m v"                  "accent-vector"
 
 # Sciword mnemonics for math editing:
 
-\bind "M-apostrophe"   "math-insert prime"
+\bind "M-apostrophe"   "math-insert \prime"
 \bind "C-Up"           "math-insert ^"
 \bind "C-Down"         "math-insert _"
-\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"
+\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"
 
 # My own embellishments for symbols I use often.
 
 #I'd like to combine math-insert ^ and math-insert prime, but don't know how.
 
-\bind "C-s apostrophe" "math-insert prime"
-\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"
-\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"
+\bind "C-s apostrophe" "math-insert \prime"
+\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"
+\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"
 
        ############################
 ######### Almost no changes below. #########