Skip to content

Instantly share code, notes, and snippets.

@bjmorgan
Last active December 10, 2015 00:58
Show Gist options
  • Save bjmorgan/4354741 to your computer and use it in GitHub Desktop.
Save bjmorgan/4354741 to your computer and use it in GitHub Desktop.
Sublime Text 2 snippet for inserting code for a `figure` environment. Triggered with `"figure"+tab`.
<snippet>
<content><![CDATA[\begin{figure}[tb]
\begin{center}
\resizebox{${3:8.5}cm}{!}{\includegraphics*{${1:filename}.eps}} % $4
\caption{\label{fig:${1:label}}${2:Caption}}
\end{center}
\end{figure}
$0]]></content>
<tabTrigger>figure</tabTrigger>
<scope>text.tex.latex</scope>
<description>Figure environment</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment