dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 5e44e3554986ed15fda8e5793a475b3734ad49af
parent 85b02a0681ab6bd5fa4e12704d38dd4a4ef348a8
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 17 Jul 2018 17:00:50 -0400

Increase priority of custom snippets, fix tabular snippet

Diffstat:
Mlinks/.vim/UltiSnips/tex.snippets | 25+++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/links/.vim/UltiSnips/tex.snippets b/links/.vim/UltiSnips/tex.snippets @@ -1,10 +1,32 @@ -snippet eeq "Insert equation environment" +priority 1 + +snippet eq "Insert equation environment" \begin{equation} $0 \label{eq:$1} \end{equation} endsnippet +snippet fig "Insert figure environment" +\begin{figure}[${5:htbp}] + \includegraphics[width=$1\textwidth]{$2} + \caption{\label{fig:${3:unnamed}}% + $4} +\end{figure} +endsnippet + +snippet tab "Insert table environment" +\begin{table}[${1:htpb}] + \centering + \caption{$2} + \label{tab:${3:unnamed}} + \begin{tabular}{${4:c}} + $0 + \end{tabular} +\end{table} + +endsnippet + snippet vec "Insert boldsymbol vector" \boldsymbol{$0} endsnippet @@ -12,4 +34,3 @@ endsnippet snippet vec_ "Insert boldsymbol vector" \boldsymbol{$1}_\text{$2} endsnippet -