summaryrefslogtreecommitdiff
path: root/.vim/mySnippets/tex.snippets
blob: dd7ae0b677ac3e7baaf8ba397fe07908a528edf5 (plain)
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# Misc #
snippet herm "Hermite polynomials" w
\hermite{$1}$0
endsnippet

snippet hermf "Hermite function" w
\hermitef{$1}$0
endsnippet

snippet gauss "Gaussian density" w
\gaussian[${1:\mu}][${2:\Sigma}]$0
endsnippet

snippet inf "Infinity" w
\infty$0
endsnippet

snippet fa "For all" w
\forall $0
endsnippet

snippet text "Math text" w
\text{ ${1:text} }$0
endsnippet



# Differential calculus #
snippet int "Integral" w
\int_{${1:\real^n}}$0
endsnippet

snippet grad "Gradient" w
\grad{$1}$0
endsnippet

snippet div "Divergence" w
\dive
endsnippet



# Sequences and sums #
snippet seq "Sequence" w
\seq{${1:element}}{${2:index}}{${3:initial}}{${4:final}}$0
endsnippet

snippet sumi "Sum over index set" w
\sum_{${1:i} \in ${2:I}}$0
endsnippet

snippet sum "Sum" w
\sum_{${1:i=1}}^{${2:n}}
endsnippet



# Operators
snippet op "Operator" w
\op{${1:operator}}$0
endsnippet

snippet mean "Expectation" w
\expect $0
endsnippet

snippet proj "Projection" w
\proj{${1:element}}{${2:subspace}}$0
endsnippet

snippet orth "Orthogonal complement" w
\orth{${1:space}}$0
endsnippet

snippet dot "Dot product" w
\dotx
endsnippet



# Spaces #
snippet space "Space" w
\Space{${1:name}}$0
endsnippet

snippet poly "Polynomials" w
\poly{${1:d}}
endsnippet

snippet cont "Continuous function" w
\cont{$1}{$2}$0
endsnippet

snippet smooth "Smooth function" w
\smooth{${1:\real^n}} $0
endsnippet

snippet test "Test functions" i
\test{${1:\real^n}}$0
endsnippet

snippet lp "Lp spaces" w
\lp{${1:exponent}}{${2:domain}}${3/^.+$/[/}${3:weight}${3/^.+$/]/}$0
endsnippet

snippet  sob "Sobolev spaces" w
\sobolev{${1:exponent}}{${2:domain}}${3/^.+$/[/}${3:weight}${3/^.+$/]/}$0
endsnippet

snippet real "Field of real numbers" w
\real
endsnippet



# Norms and inner products #
snippet abs "Absolute value" w
\abs{$1}$0
endsnippet

snippet norm "Sobolev norm" w
\norm{${1:function}}$0
endsnippet

snippet snorm "Sobolev norm" w
\norm{${1:function}}[${2:index}]$0
endsnippet

snippet wsnorm "Weighted Sobolev norm" w
\norm{${1:function}}[${2:index}][${3:weight}]$0
endsnippet

snippet ip "Inner product" w
\ip{$1}{$2}$0
endsnippet

snippet sip "Sobolev inner product" w
\ip{${1:function}}{${2:function}}[${3:index}]$0
endsnippet

snippet wsip "Weighted Sobolev inner product" w
\ip{${1:function}}{${2:function}}[${3:index}][${4:weight}]$0
endsnippet



# Beamer #
snippet frame "My frame snippet" b
\begin{frame}
	\frametitle{$1}
	$0
\end{frame}
endsnippet



# Latex commands #
snippet red "Red text" w
\red{$1}$0
endsnippet

snippet ref "Clever reference" w
\cref{$1}$0
endsnippet

snippet new "New command" b
\newcommand{$1}[$2]{$3}$0
endsnippet