Merge pull request #589 from zetanot/master

added (l/r)angle to ultisnips,added mathfonts to snippets
This commit is contained in:
Louis Pilfold 2015-06-08 20:48:55 +01:00
commit 69c918175c

View File

@ -45,10 +45,15 @@ snippet gat gather(ed) environment
# Equation # Equation
snippet eq equation environment snippet eq equation environment
\begin{equation} \begin{equation}
\label{eq:${2}}
${0} ${0}
\end{equation} \end{equation}
# Equation # Equation
snippet eql Labeled equation environment
\begin{equation}
\label{eq:${2}}
${0}
\end{equation}
# Equation
snippet eq* unnumbered equation environment snippet eq* unnumbered equation environment
\begin{equation*} \begin{equation*}
${0} ${0}
@ -206,6 +211,13 @@ snippet rm roman font text
\textrm{${0:text}} \textrm{${0:text}}
snippet tt typewriter (monospace) text snippet tt typewriter (monospace) text
\texttt{${0: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 #misc
snippet ft \footnote snippet ft \footnote
\footnote{${0:text}} \footnote{${0:text}}
@ -263,6 +275,18 @@ snippet col2 two-column environment
${0} ${0}
\end{column} \end{column}
\end{columns} \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 # Code listings
snippet lst snippet lst
\begin{listing}[language=${1:language}] \begin{listing}[language=${1:language}]