From a8ba6e87e3712c264c4687b26bccdfd66d8c9ccb Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 19 Sep 2016 22:44:32 -0400 Subject: snippets: Add custom figure snippet --- snippets/latex-mode/figure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 snippets/latex-mode/figure (limited to 'snippets/latex-mode') diff --git a/snippets/latex-mode/figure b/snippets/latex-mode/figure new file mode 100644 index 0000000..afa8cfb --- /dev/null +++ b/snippets/latex-mode/figure @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: figure +# key: fig +# -- +\begin{figure} + \centering + \includegraphics{figs/$1} + \caption[$2] + { + \textbf{$2} + $0 + } + \label{fig:$3} +\end{figure} -- cgit v1.2.3