af11478a66613fffe59f6eb4b8bbc4dbaf3b6a01
[dotfiles.git] / .vim / mysnippets / tex.snippets
1 # Enviros
2 snippet \begin "enviroment" bA
3 \begin{$1}
4         $0
5 \end{$1}
6 endsnippet
7
8
9 snippet enum "enumerate" w
10 \begin{enumerate}[$1]
11         $0
12 \end{enumerate}
13 endsnippet
14
15
16 snippet align "align" w
17 \begin{align*}
18         $0
19 \end{align*}
20 endsnippet
21
22
23 snippet center "center" w
24 \begin{center}
25         $0
26 \end{center}
27 endsnippet
28
29 # FRACTIONS
30 snippet // "frac" iA
31 \\frac{$1}{$2}$0
32 endsnippet
33
34
35 # LIMITS
36 snippet lim "limit" w
37 \lim\limits_{$1 \to $2}$3
38 endsnippet
39
40
41 snippet inflim "limit to infinity" w
42 \lim\limits_{n \to \infty}
43 endsnippet
44
45
46 # SUMMATION
47 snippet sum "Summation" w
48 \sum\limits_{$1}^{$2}$3
49 endsnippet
50
51 snippet prod "Product" w
52 \prod\limits_{$1}^{$2}$3
53 endsnippet
54
55 # MATH MODES
56 priority 10
57 snippet im "inline math" w
58 $$1$$0
59 endsnippet
60
61
62 snippet bm "block math" w
63 \[
64         $1
65 \]$0
66 endsnippet
67
68
69 # SETS
70 snippet set "Set" w
71 \\{ $0 \\}
72 endsnippet
73
74
75 snippet reals "Set of Reals" w
76 \mathbb{R}
77 endsnippet
78
79
80 snippet integers "Set of Integers" w
81 \mathbb{Z}
82 endsnippet
83
84
85 snippet naturals "Set of Naturals" w
86 \mathbb{N}
87 endsnippet
88
89 snippet complex "Set of Complex" w
90 \mathbb{C}
91 endsnippet
92
93 # OTHERS
94 snippet implies "Implies" w
95 \Rightarrow
96 endsnippet
97
98
99 snippet mod "Mod" w
100 {\ (\textrm{mod}\ $1)}
101 endsnippet
102
103
104 snippet eea "Extended Euclidian Algorithm" w
105 \begin{center}
106 \begin{tabular}{|c|c|c|c|}
107         \hline
108         x & y & r & q\\\\
109         \hline
110         1 & 0 & $1 & 0\\\\
111         0 & 1 & $2 & 0\\\\
112         $3
113         \hline
114 \end{tabular}
115 \end{center}
116 endsnippet
117
118
119 snippet lemma "Lemma" w
120 \textbf{Lemma $1}
121
122 \fbox{%
123     \parbox{\textwidth}{
124                 $0
125     }%
126 }
127
128 endsnippet