File: math.bind

package info (click to toggle)
lyx 1.1.6fix4-2
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 26,136 kB
  • ctags: 13,679
  • sloc: cpp: 93,591; sh: 9,563; ansic: 8,253; perl: 3,489; makefile: 1,332; tcl: 163; sed: 150; python: 112; yacc: 38
file content (75 lines) | stat: -rw-r--r-- 2,457 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# This file is part of
# ==================================================================
#
#                   LyX, the Document Processor
#
#               Copyright (C) 1997 LyX Team
#
#                      Version 0.1, May 28 1997
#
# ==================================================================

# This file provides math mode keys.  Most were suggested by John Weiss 
# and modified by Alejandro Aguilar Sierra to be used with different 
# keyboard layouts.
#
# This file is automatically included from the main bind file.
#
# DO NOT CHANGE THIS BINDING FILE! It will be replaced
# with every new install of LyX and your changes will be lost.
# Instead, copy it to ~/.lyx/bind/math.bind and modify that copy.

# Note that the order of these is important.  If you put the bindings
# that need "period" and "parenleft" first, they flood the minibuffer
# and make the keybinding hints impossible to read.  That's why they're
# at the end.

# These are defined for the math menu:

\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 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 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 v"			"accent-vector"

# 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 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-quotedbl" 	"accent-umlaut"


# These do pairs of: () {} [] <> ||

\bind "M-m ~S-parenleft"	"math-delim ( )"
\bind "M-m ~S-bracketleft"	"math-delim [ ]"
\bind "M-m ~S-braceleft"	"math-delim { }"
\bind "M-m ~S-less"		"math-delim langle rangle"  
\bind "M-m ~S-greater"		"math-delim rangle langle"
\bind "M-m ~S-bar"		"math-delim | |"


# 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"