33cef9307caf3ebe32192d976cc0a8aa55098920
[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
117 # OTHERS
118 snippet implies "Implies" w
119 \Rightarrow
120 endsnippet
121
122 snippet mod "Mod" w
123 {\ (\textrm{mod}\ $1)}
124 endsnippet
125
126 snippet floor "Floor" w
127 \lfloor $1 \rfloor
128 endsnippet
129
130 snippet cubert "Cube root" w
131 \sqrt[\leftroot{-2}\uproot{2}3]{$1}
132 endsnippet
133
134 snippet nroot "Root" w
135 \sqrt[\leftroot{-2}\uproot{2}$1]{$2}
136 endsnippet
137
138 snippet ceil "Ceiling" w
139 \lceil $1 \rceil
140 endsnippet
141
142 snippet sin "Sin" w
143 \sin($1)
144 endsnippet
145
146 snippet cos "Cos" w
147 \cos($1)
148 endsnippet
149
150 snippet tan "Tan" w
151 \tan($1)
152 endsnippet
153
154 snippet asin "Arcsin" w
155 \sin^{-1}($1)
156 endsnippet
157
158 snippet acos "Arccos" w
159 \cos^{-1}($1)
160 endsnippet
161
162 snippet atan "Arctan" w
163 \tan^{-1}($1)
164 endsnippet
165
166 snippet sins "Sin Squared" w
167 \sin^{2}($1)
168 endsnippet
169
170 snippet coss "Cos Squared" w
171 \cos^{2}($1)
172 endsnippet
173
174 snippet tans "Tan Squared" w
175 \tan^{2}($1)
176 endsnippet
177
178 snippet cis "Cis" w
179 \mathrm{cis}($1)
180 endsnippet
181
182 snippet span "Span" w
183 \text{span}($0)
184 endsnippet
185
186
187 snippet eea "Extended Euclidian Algorithm" w
188 \begin{center}
189 \begin{tabular}{|c|c|c|c|}
190         \hline
191         x & y & r & q\\\\
192         \hline
193         1 & 0 & $1 & 0\\\\
194         0 & 1 & $2 & 0\\\\
195         $3
196         \hline
197 \end{tabular}
198 \end{center}
199 endsnippet
200
201 snippet lemma "Lemma" w
202 \textbf{Lemma $1}
203
204 \fbox{%
205     \parbox{\textwidth}{
206                 $0
207     }%
208 }
209
210 endsnippet
211
212 snippet piecewise "Piecewise" w
213 \[
214     \begin{cases}
215                 $0
216     \end{cases}
217 \]
218 endsnippet
219
220 snippet graph "Graph" w
221 \begin{tikzpicture}
222 \begin{axis}[
223     ticks=none,
224     axis lines = middle,
225     axis line style={->},
226     ymin=-5, ymax=5,
227     xmin=-5, xmax=5,
228     xlabel={$x$},
229     ylabel={$y$},
230     axis equal image
231 ]
232
233 \end{axis}
234 \end{tikzpicture}
235 endsnippet