X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=.vim%2Fmysnippets%2Ftex.snippets;h=040304f0007d93986b03f7c584227e1fe572cd73;hp=a6f88267908ab74ace3203c2394a6146dfd282db;hb=b156356b96d0bd00229a145be24c6825ec309a2c;hpb=739ace9e490fa6e377e36a2c8b8cc7163797a2fe diff --git a/.vim/mysnippets/tex.snippets b/.vim/mysnippets/tex.snippets index a6f8826..040304f 100644 --- a/.vim/mysnippets/tex.snippets +++ b/.vim/mysnippets/tex.snippets @@ -230,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|} @@ -279,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