X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=.vim%2Fmysnippets%2Ftex.snippets;h=040304f0007d93986b03f7c584227e1fe572cd73;hp=d563262b5e290e92753bfff83605746d40dfbe8c;hb=b156356b96d0bd00229a145be24c6825ec309a2c;hpb=2894bed4452f6e6f781f8d3b84f6ad6bd40a1e62 diff --git a/.vim/mysnippets/tex.snippets b/.vim/mysnippets/tex.snippets index d563262..040304f 100644 --- a/.vim/mysnippets/tex.snippets +++ b/.vim/mysnippets/tex.snippets @@ -7,10 +7,20 @@ endsnippet snippet enum "enumerate" w \begin{enumerate}[$1] - $0 + \item $0 \end{enumerate} endsnippet +snippet list "Itemized List" w +\begin{itemize} + \item $0 +\end{itemize} +endsnippet + +snippet def "Definition" w +\textbf{$1} - $2 +endsnippet + snippet align "align" w \begin{align*} $0 @@ -120,7 +130,11 @@ endsnippet # OTHERS snippet implies "Implies" w -\Rightarrow +\to +endsnippet + +snippet iff "If and only if" w +\leftrightarrow endsnippet snippet mod "Mod" w @@ -216,6 +230,30 @@ snippet nullity "Nullity" w \text{Nullity}($0) endsnippet +snippet tab "Tabular" w +\begin{center} +\begin{tabular}{$1} +\hline +$0 +\hline + +\hline +\end{tabular} +\end{center} +endsnippet + +snippet mtab "Math Tabular" w +\begin{align*} +\begin{array}{$1} +\hline +$0 +\hline + +\hline +\end{array} +\end{align*} +endsnippet + snippet eea "Extended Euclidian Algorithm" w \begin{center} \begin{tabular}{|c|c|c|c|} @@ -265,3 +303,32 @@ snippet graph "Graph" w \end{axis} \end{tikzpicture} endsnippet + +snippet ffig "Figure" w +\begin{figure}[H] + \centering + \includegraphics[scale=1]{$1} + \caption{$2} +\end{figure} +endsnippet + +snippet ftab "Table" w +\begin{table}[H] +\centering +\caption{$1} +\begin{tabular}{$2} + \hline + $3 + \hline + \hline +\end{tabular} +\end{table} +endsnippet + +snippet b "bold" w +\textbf{$1}$0 +endsnippet + +snippet i "italics" w +\emph{$1}$0 +endsnippet