redid cormackscript
[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 floor "Floor" w
105 \lfloor $1 \rfloor
106 endsnippet
107
108
109 snippet ceil "Ceiling" w
110 \lceil $1 \rceil
111 endsnippet
112
113 snippet sin "Sin" w
114 \sin($1)
115 endsnippet
116
117 snippet cos "Cos" w
118 \cos($1)
119 endsnippet
120
121 snippet tan "Tan" w
122 \tan($1)
123 endsnippet
124
125 snippet cis "Cis" w
126 \mathrm{cis}($1)
127 endsnippet
128
129
130 snippet eea "Extended Euclidian Algorithm" w
131 \begin{center}
132 \begin{tabular}{|c|c|c|c|}
133         \hline
134         x & y & r & q\\\\
135         \hline
136         1 & 0 & $1 & 0\\\\
137         0 & 1 & $2 & 0\\\\
138         $3
139         \hline
140 \end{tabular}
141 \end{center}
142 endsnippet
143
144
145 snippet lemma "Lemma" w
146 \textbf{Lemma $1}
147
148 \fbox{%
149     \parbox{\textwidth}{
150                 $0
151     }%
152 }
153
154 endsnippet