-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy pathtexmath.snippets
53 lines (42 loc) · 892 Bytes
/
texmath.snippets
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
priority -50
##############
# MATH STUFF #
##############
snippet eqnn "Equation without a number" b
\begin{equation*}
${0:${VISUAL}}
\end{equation*}
endsnippet
snippet al "Align" b
\begin{align}
${0:${VISUAL}}
\end{align}
endsnippet
snippet alnn "Align without a number" b
\begin{align*}
${0:${VISUAL}}
\end{align*}
endsnippet
snippet eqa "Equation array" b
\begin{eqnarray}
${1:${VISUAL}} & ${2:${VISUAL}} & ${0:${VISUAL}}
\end{eqnarray}
endsnippet
snippet eqann "Equation array without a number" b
\begin{eqnarray*}
${1:${VISUAL}} & ${2:${VISUAL}} & ${0:${VISUAL}}
\end{eqnarray*}
endsnippet
#################
# PHYSICS STUFF #
#################
snippet dv "Derivative" w
\dv[${1:${VISUAL}}]{${2}}{${3}}
endsnippet
snippet pdv "Partial Derivative" w
\pdv[${1:${VISUAL}}]{${2}}{${3}}
endsnippet
snippet SI "SI-Unit" w
\SI{${1:${VISUAL}}}{${2}}
endsnippet
# vim:ft=snippets: