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