Skip to content

Instantly share code, notes, and snippets.

@EthanDeng
Created April 14, 2019 02:19
Show Gist options
  • Save EthanDeng/20b101efeb1db9caf21cfaa1c85bdf5b to your computer and use it in GitHub Desktop.
Save EthanDeng/20b101efeb1db9caf21cfaa1c85bdf5b to your computer and use it in GitHub Desktop.
Sublime Text Snippet for Optimization Problem
<snippet>
<content><![CDATA[
\begin{equation}
\begin{aligned}
& ${1:\min} & & \hspace*{-2em} ${2:problem} \\\\
& \text{subject to} & & ${3:contraint}
\end{aligned}
\end{equation}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>opt</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.tex</scope>
</snippet>
<snippet>
<content><![CDATA[
\begin{equation*}
\begin{aligned}
& ${1:\min} & & \hspace*{-2em} ${2:problem} \\\\
& \text{subject to} & & ${3:contraint}
\end{aligned}
\end{equation*}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>opts</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.tex</scope>
</snippet>
<snippet>
<content><![CDATA[
\begin{equation*}
\begin{aligned}
& ${1:\min} & & \hspace*{-2em} ${2:problem} \\\\
& \text{subject to} & & ${3:contraint}
\end{aligned}
\end{equation*}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>opts</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.tex</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment