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 cc098ae08eddcc2dd977a75d51a5957e55ce691b
parent 5e44e3554986ed15fda8e5793a475b3734ad49af
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 18 Jul 2018 13:21:53 -0400

Update tex snippets

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

diff --git a/links/.vim/UltiSnips/tex.snippets b/links/.vim/UltiSnips/tex.snippets @@ -7,14 +7,43 @@ snippet eq "Insert equation environment" \end{equation} endsnippet +snippet Eq "Insert reference to equation" +(Eq.~\ref{eq:$0}) +endsnippet + snippet fig "Insert figure environment" \begin{figure}[${5:htbp}] \includegraphics[width=$1\textwidth]{$2} \caption{\label{fig:${3:unnamed}}% - $4} + $4 + } \end{figure} endsnippet +snippet Fig "Insert reference to figure" +(Fig.~\ref{fig:$0}) +endsnippet + +snippet sec "Insert section" +\section{$1}% +\label{sec:$2} +$0 +endsnippet + +snippet Sec "Insert reference to section" +(Section~\ref{sec:$0}) +endsnippet + +snippet subsec "Insert subsection" +\subsection{$1}% +\label{subsec:$2} +$0 +endsnippet + +snippet Subsec "Insert reference to subsection" +(Section~\ref{subsec:$0}) +endsnippet + snippet tab "Insert table environment" \begin{table}[${1:htpb}] \centering @@ -27,10 +56,22 @@ snippet tab "Insert table environment" endsnippet +snippet Tab "Insert reference to table" +(Tab.~\ref{fig:$0}) +endsnippet + snippet vec "Insert boldsymbol vector" \boldsymbol{$0} endsnippet +snippet $vec "Insert boldsymbol vector" +$\boldsymbol{$0}$ +endsnippet + snippet vec_ "Insert boldsymbol vector" -\boldsymbol{$1}_\text{$2} +\boldsymbol{$1}_\text{$2}^{$3} +endsnippet + +snippet $vec_ "Insert boldsymbol vector" +$\boldsymbol{$1}_\text{$2}^{$3}$ endsnippet