forked from ma-anwar/mathfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.talon
109 lines (100 loc) · 2.11 KB
/
notes.talon
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
app: lyx
app: LyX.exe
app: LyX2.3.exe
app: LyX for Windows
-
push dot:
key(end)
key(end)
insert(".")
#try to go to the very right, most useful navigation command
# parrot(tut):
# key(end)
# key(end)
# insert(" ")
push:
key(end)
key(end)
insert(" ")
push comma:
key(end)
key(end)
insert(", ")
push math:
key(end)
key(end)
insert(" ")
key(ctrl-m)
state define <phrase>:
insert("Definition - ")
insert(user.formatted_text(phrase, "title"))
insert(": ")
state prop <phrase>:
insert("Proposition - ")
insert(user.formatted_text(phrase, "title"))
insert(": ")
state idea <phrase>:
insert("Thm - ")
insert(user.formatted_text(phrase, "title"))
insert(": ")
justify <phrase>:
key(end)
key(end)
insert(' - ')
insert(phrase)
append:
key(end)
example: insert("e.g. ")
capital example: insert("E.g. ")
proof let:insert("Let ")
if and only if: insert("iff ")
# 5 x 3 in the middle of normal text
<number> by <number>:
insert(" {number_1} x {number_2} ")
next:
key(end)
key(tab)
kick: ", "
that is: "i.e. "
state proof: "Pf: "
state solution: "Soln: "
# "n^th"
ordinal <user.letter>:
insert(' ')
key(ctrl-m)
insert('{letter}^th ')
key(space)
state where: " where "
# math text letter in the middle of normal text
mark <user.letter>:
insert(' ')
key(ctrl-m)
insert('{letter} ')
key(space)
#math text capital letter in the middle of normal text
matrix <user.letter>:
insert(" ")
key(ctrl-m)
insert(user.formatted_text(letter, "ALL_CAPS"))
edit.right()
insert(" ")
#calligraphic letter in the middle of normal text
relation <user.letter>:
key(ctrl-m)
insert('\mathcal ')
user.insert_formatted(letter,"ALL_CAPS")
edit.right()
edit.right()
#calligraphic letter in the middle of normal text
space relation <user.letter>:
insert(' ')
key(ctrl-m)
insert('\mathcal ')
user.insert_formatted(letter,"ALL_CAPS")
edit.right()
edit.right()
insert(' ')
big equivalent:
insert('LEQV ')
question <user.letter>:
insert(" {letter}) ")