From cfed9fabf5cdb0b23cca4991d12312aa1ea99499 Mon Sep 17 00:00:00 2001 From: Kevin Lui Date: Sun, 7 Jun 2015 21:21:08 -0700 Subject: [PATCH] added delimiter,fixed eq conflict --- snippets/tex.snippets | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/snippets/tex.snippets b/snippets/tex.snippets index d48b263..0727cb4 100644 --- a/snippets/tex.snippets +++ b/snippets/tex.snippets @@ -45,10 +45,15 @@ snippet gat gather(ed) environment # Equation snippet eq equation environment \begin{equation} - \label{eq:${2}} ${0} \end{equation} # Equation +snippet eql Labeled equation environment + \begin{equation} + \label{eq:${2}} + ${0} + \end{equation} +# Equation snippet eq* unnumbered equation environment \begin{equation*} ${0} @@ -206,6 +211,13 @@ snippet rm roman font text \textrm{${0:text}} snippet tt typewriter (monospace) text \texttt{${0:text}} +#Math font +snippet mf mathfrak + \mathfrak{${0:text}} +snippet mc mathcal + \mathcal{${0:text}} +snippet ms mathscr + \mathscr{${0:text}} #misc snippet ft \footnote \footnote{${0:text}} @@ -263,6 +275,18 @@ snippet col2 two-column environment ${0} \end{column} \end{columns} +#delimiter +snippet lr( left( right) + \left( ${0} \right) +snippet lr| left| right| + \left| ${0} \right| +snippet lr{ left\{ right\} + \left\\{ ${0} \right\\} +snippet lr[ left[ right] + \left[ ${0} \right] +snippet lra langle rangle + \langle ${0} \rangle + # Code listings snippet lst \begin{listing}[language=${1:language}]