# 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 ; "
# 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" "------"
\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" "------"
# 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. #########