X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=.vim%2Fmysnippets%2Ftex.snippets;h=d563262b5e290e92753bfff83605746d40dfbe8c;hp=84bf0d4c422218ae9d0423bdaa2dcc58f15c1a5d;hb=2894bed4452f6e6f781f8d3b84f6ad6bd40a1e62;hpb=fdcd4945ebca688bd20c91247331518b29248f7e diff --git a/.vim/mysnippets/tex.snippets b/.vim/mysnippets/tex.snippets index 84bf0d4..d563262 100644 --- a/.vim/mysnippets/tex.snippets +++ b/.vim/mysnippets/tex.snippets @@ -1,31 +1,46 @@ # Enviros -snippet \begin "enviroment" bA +snippet beg "enviroment" w \begin{$1} $0 \end{$1} endsnippet - snippet enum "enumerate" w \begin{enumerate}[$1] $0 \end{enumerate} endsnippet - snippet align "align" w \begin{align*} $0 \end{align*} endsnippet - snippet center "center" w \begin{center} $0 \end{center} endsnippet +snippet proof "proof" w +\begin{proof} + $0 +\end{proof} +endsnippet + +snippet ibeg "inline enviroment" w +\begin{$1} $2 \end{$1} $0 +endsnippet + +snippet ibmat "inline bmatrix" w +\begin{bmatrix} $1 \end{bmatrix} $0 +endsnippet + +snippet ibsmat "inline small bmatrix" w +\begin{bsmallmatrix} $1 \end{bsmallmatrix} $0 +endsnippet + # FRACTIONS snippet // "frac" iA \\frac{$1}{$2}$0 @@ -37,7 +52,6 @@ snippet lim "limit" w \lim\limits_{$1 \to $2}$3 endsnippet - snippet inflim "limit to infinity" w \lim\limits_{n \to \infty} endsnippet @@ -52,51 +66,155 @@ snippet prod "Product" w \prod\limits_{$1}^{$2}$3 endsnippet + +snippet defint "Definite Integral" w +\int_{$1}^{$2} $0 +endsnippet + + # MATH MODES priority 10 snippet im "inline math" w $$1$$0 endsnippet - snippet bm "block math" w \[ $1 \]$0 endsnippet - -# SETS +# mathbb snippet set "Set" w \\{ $0 \\} endsnippet +snippet field "Field" w +\mathbb{F} +endsnippet + +snippet complex "Set of Complex" w +\mathbb{C} +endsnippet snippet reals "Set of Reals" w \mathbb{R} endsnippet +snippet rationals "Set of Rational" w +\mathbb{Q} +endsnippet snippet integers "Set of Integers" w \mathbb{Z} endsnippet - snippet naturals "Set of Naturals" w \mathbb{N} endsnippet +snippet matrix "Set of Matricies" w +\mathbb{M}_{$1}($2)$0 +endsnippet + # OTHERS snippet implies "Implies" w \Rightarrow endsnippet - snippet mod "Mod" w {\ (\textrm{mod}\ $1)} endsnippet +snippet floor "Floor" w +\lfloor $1 \rfloor +endsnippet + +snippet cubert "Cube root" w +\sqrt[\leftroot{-2}\uproot{2}3]{$1} +endsnippet + +snippet nroot "Root" w +\sqrt[\leftroot{-2}\uproot{2}$1]{$2} +endsnippet + +snippet ceil "Ceiling" w +\lceil $1 \rceil +endsnippet + +snippet sin "Sin" w +\sin($1) +endsnippet + +snippet cos "Cos" w +\cos($1) +endsnippet + +snippet tan "Tan" w +\tan($1) +endsnippet + +snippet asin "Arcsin" w +\sin^{-1}($1) +endsnippet + +snippet acos "Arccos" w +\cos^{-1}($1) +endsnippet + +snippet atan "Arctan" w +\tan^{-1}($1) +endsnippet + +snippet sins "Sin Squared" w +\sin^{2}($1) +endsnippet + +snippet coss "Cos Squared" w +\cos^{2}($1) +endsnippet + +snippet tans "Tan Squared" w +\tan^{2}($1) +endsnippet + +snippet cis "Cis" w +\mathrm{cis}($1) +endsnippet + +snippet ... "elpises" iA +\ldots +endsnippet + +snippet big) "Big paren" w +\left( $1 \right) $0 +endsnippet + +snippet big| "Big abs" w +\left| $1 \right| $0 +endsnippet + +# text +snippet span "Span" w +\text{span}($0) +endsnippet + +snippet col "Col" w +\text{Col}($0) +endsnippet + +snippet row "Row" w +\text{Row}($0) +endsnippet + +snippet rank "Rank" w +\text{Rank}($0) +endsnippet + +snippet nullity "Nullity" w +\text{Nullity}($0) +endsnippet snippet eea "Extended Euclidian Algorithm" w \begin{center} @@ -112,7 +230,6 @@ snippet eea "Extended Euclidian Algorithm" w \end{center} endsnippet - snippet lemma "Lemma" w \textbf{Lemma $1} @@ -123,3 +240,28 @@ snippet lemma "Lemma" w } endsnippet + +snippet piecewise "Piecewise" w +\[ + \begin{cases} + $0 + \end{cases} +\] +endsnippet + +snippet graph "Graph" w +\begin{tikzpicture} +\begin{axis}[ + ticks=none, + axis lines = middle, + axis line style={->}, + ymin=-5, ymax=5, + xmin=-5, xmax=5, + xlabel={$x$}, + ylabel={$y$}, + axis equal image +] + +\end{axis} +\end{tikzpicture} +endsnippet