update
[dotfiles.git] / .vim / mysnippets / tex.snippets
1 # Enviros
2 snippet beg "enviroment" w
3 \begin{$1}
4         $0
5 \end{$1}
6 endsnippet
7
8 snippet enum "enumerate" w
9 \begin{enumerate}[$1]
10         \item $0
11 \end{enumerate}
12 endsnippet
13
14 snippet list "Itemized List" w
15 \begin{itemize}
16         \item $0
17 \end{itemize}
18 endsnippet
19
20 snippet def "Definition" w
21 \textbf{$1} - $2
22 endsnippet
23
24 snippet align "align" w
25 \begin{align*}
26         $0
27 \end{align*}
28 endsnippet
29
30 snippet center "center" w
31 \begin{center}
32         $0
33 \end{center}
34 endsnippet
35
36 snippet proof "proof" w
37 \begin{proof}
38         $0
39 \end{proof}
40 endsnippet
41
42 snippet ibeg "inline enviroment" w
43 \begin{$1} $2 \end{$1} $0
44 endsnippet
45
46 snippet ibmat "inline bmatrix" w
47 \begin{bmatrix} $1 \end{bmatrix} $0
48 endsnippet
49
50 snippet ibsmat "inline small bmatrix" w
51 \begin{bsmallmatrix} $1 \end{bsmallmatrix} $0
52 endsnippet
53
54 # FRACTIONS
55 snippet // "frac" iA
56 \\frac{$1}{$2}$0
57 endsnippet
58
59
60 # LIMITS
61 snippet lim "limit" w
62 \lim\limits_{$1 \to $2}$3
63 endsnippet
64
65 snippet inflim "limit to infinity" w
66 \lim\limits_{n \to \infty}
67 endsnippet
68
69
70 # SUMMATION
71 snippet sum "Summation" w
72 \sum\limits_{$1}^{$2}$3
73 endsnippet
74
75 snippet prod "Product" w
76 \prod\limits_{$1}^{$2}$3
77 endsnippet
78
79
80 snippet defint "Definite Integral" w
81 \int_{$1}^{$2} $0
82 endsnippet
83
84
85 # MATH MODES
86 priority 10
87 snippet im "inline math" w
88 $$1$$0
89 endsnippet
90
91 snippet bm "block math" w
92 \[
93         $1
94 \]$0
95 endsnippet
96
97 # mathbb
98 snippet set "Set" w
99 \\{ $0 \\}
100 endsnippet
101
102 snippet field "Field" w
103 \mathbb{F}
104 endsnippet
105
106 snippet complex "Set of Complex" w
107 \mathbb{C}
108 endsnippet
109
110 snippet reals "Set of Reals" w
111 \mathbb{R}
112 endsnippet
113
114 snippet rationals "Set of Rational" w
115 \mathbb{Q}
116 endsnippet
117
118 snippet integers "Set of Integers" w
119 \mathbb{Z}
120 endsnippet
121
122 snippet naturals "Set of Naturals" w
123 \mathbb{N}
124 endsnippet
125
126 snippet matrix "Set of Matricies" w
127 \mathbb{M}_{$1}($2)$0
128 endsnippet
129
130
131 # OTHERS
132 snippet implies "Implies" w
133 \to
134 endsnippet
135
136 snippet iff "If and only if" w
137 \leftrightarrow
138 endsnippet
139
140 snippet mod "Mod" w
141 {\ (\textrm{mod}\ $1)}
142 endsnippet
143
144 snippet floor "Floor" w
145 \lfloor $1 \rfloor
146 endsnippet
147
148 snippet cubert "Cube root" w
149 \sqrt[\leftroot{-2}\uproot{2}3]{$1}
150 endsnippet
151
152 snippet nroot "Root" w
153 \sqrt[\leftroot{-2}\uproot{2}$1]{$2}
154 endsnippet
155
156 snippet ceil "Ceiling" w
157 \lceil $1 \rceil
158 endsnippet
159
160 snippet sin "Sin" w
161 \sin($1)
162 endsnippet
163
164 snippet cos "Cos" w
165 \cos($1)
166 endsnippet
167
168 snippet tan "Tan" w
169 \tan($1)
170 endsnippet
171
172 snippet asin "Arcsin" w
173 \sin^{-1}($1)
174 endsnippet
175
176 snippet acos "Arccos" w
177 \cos^{-1}($1)
178 endsnippet
179
180 snippet atan "Arctan" w
181 \tan^{-1}($1)
182 endsnippet
183
184 snippet sins "Sin Squared" w
185 \sin^{2}($1)
186 endsnippet
187
188 snippet coss "Cos Squared" w
189 \cos^{2}($1)
190 endsnippet
191
192 snippet tans "Tan Squared" w
193 \tan^{2}($1)
194 endsnippet
195
196 snippet cis "Cis" w
197 \mathrm{cis}($1)
198 endsnippet
199
200 snippet ... "elpises" iA
201 \ldots
202 endsnippet
203
204 snippet big) "Big paren" w
205 \left( $1 \right) $0
206 endsnippet
207
208 snippet big| "Big abs" w
209 \left| $1 \right| $0
210 endsnippet
211
212 # text
213 snippet span "Span" w
214 \text{span}($0)
215 endsnippet
216
217 snippet col "Col" w
218 \text{Col}($0)
219 endsnippet
220
221 snippet row "Row" w
222 \text{Row}($0)
223 endsnippet
224
225 snippet rank "Rank" w
226 \text{Rank}($0)
227 endsnippet
228
229 snippet nullity "Nullity" w
230 \text{Nullity}($0)
231 endsnippet
232
233 snippet eea "Extended Euclidian Algorithm" w
234 \begin{center}
235 \begin{tabular}{|c|c|c|c|}
236         \hline
237         x & y & r & q\\\\
238         \hline
239         1 & 0 & $1 & 0\\\\
240         0 & 1 & $2 & 0\\\\
241         $3
242         \hline
243 \end{tabular}
244 \end{center}
245 endsnippet
246
247 snippet lemma "Lemma" w
248 \textbf{Lemma $1}
249
250 \fbox{%
251     \parbox{\textwidth}{
252                 $0
253     }%
254 }
255
256 endsnippet
257
258 snippet piecewise "Piecewise" w
259 \[
260     \begin{cases}
261                 $0
262     \end{cases}
263 \]
264 endsnippet
265
266 snippet graph "Graph" w
267 \begin{tikzpicture}
268 \begin{axis}[
269     ticks=none,
270     axis lines = middle,
271     axis line style={->},
272     ymin=-5, ymax=5,
273     xmin=-5, xmax=5,
274     xlabel={$x$},
275     ylabel={$y$},
276     axis equal image
277 ]
278
279 \end{axis}
280 \end{tikzpicture}
281 endsnippet