misc changes - vim cursor
[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 # text
191 snippet span "Span" w
192 \text{span}($0)
193 endsnippet
194
195 snippet col "Col" w
196 \text{Col}($0)
197 endsnippet
198
199 snippet row "Row" w
200 \text{Row}($0)
201 endsnippet
202
203 snippet rank "Rank" w
204 \text{Rank}($0)
205 endsnippet
206
207 snippet nullity "Nullity" w
208 \text{Nullity}($0)
209 endsnippet
210
211 snippet eea "Extended Euclidian Algorithm" w
212 \begin{center}
213 \begin{tabular}{|c|c|c|c|}
214         \hline
215         x & y & r & q\\\\
216         \hline
217         1 & 0 & $1 & 0\\\\
218         0 & 1 & $2 & 0\\\\
219         $3
220         \hline
221 \end{tabular}
222 \end{center}
223 endsnippet
224
225 snippet lemma "Lemma" w
226 \textbf{Lemma $1}
227
228 \fbox{%
229     \parbox{\textwidth}{
230                 $0
231     }%
232 }
233
234 endsnippet
235
236 snippet piecewise "Piecewise" w
237 \[
238     \begin{cases}
239                 $0
240     \end{cases}
241 \]
242 endsnippet
243
244 snippet graph "Graph" w
245 \begin{tikzpicture}
246 \begin{axis}[
247     ticks=none,
248     axis lines = middle,
249     axis line style={->},
250     ymin=-5, ymax=5,
251     xmin=-5, xmax=5,
252     xlabel={$x$},
253     ylabel={$y$},
254     axis equal image
255 ]
256
257 \end{axis}
258 \end{tikzpicture}
259 endsnippet