Initial commit
This commit is contained in:
85
nvim/UltiSnips/texmath.snippets
Normal file
85
nvim/UltiSnips/texmath.snippets
Normal file
@ -0,0 +1,85 @@
|
||||
priority -50
|
||||
|
||||
##############
|
||||
# MATH STUFF #
|
||||
##############
|
||||
# snippet eq "Equation" b
|
||||
# \begin{equation}
|
||||
# $0
|
||||
# \end{equation}
|
||||
# endsnippet
|
||||
|
||||
# snippet eqnn "Equation without number" b
|
||||
# \begin{equation*}
|
||||
# $0
|
||||
# \end{equation*}
|
||||
# endsnippet
|
||||
|
||||
# snippet eqa "Equation array" b
|
||||
# \begin{eqnarray}
|
||||
# $1 & $2 & $0
|
||||
# \end{eqnarray}
|
||||
# endsnippet
|
||||
|
||||
# snippet eqann "Equation array without numbers" b
|
||||
# \begin{eqnarray*}
|
||||
# $1 & $2 & $0
|
||||
# \end{eqnarray*}
|
||||
|
||||
# endsnippet
|
||||
snippet frac "Fraction" w
|
||||
\frac{${1:${VISUAL:nom}}}{${2:denom}}
|
||||
endsnippet
|
||||
|
||||
snippet mat "Smart Matrix"
|
||||
\begin{${1:p/b/v/V/B/small}matrix}
|
||||
$0
|
||||
\end{$1matrix}
|
||||
endsnippet
|
||||
|
||||
snippet lrb "left( right)" w
|
||||
\left( ${1:${VISUAL}} \right)
|
||||
endsnippet
|
||||
|
||||
snippet lrv "left| right|" w
|
||||
\left| ${1:${VISUAL}} \right|
|
||||
endsnippet
|
||||
|
||||
snippet lrB "left\{ right\}" w
|
||||
\left\\{ ${1:${VISUAL}} \right\\}
|
||||
endsnippet
|
||||
|
||||
snippet lre "left[ right]" w
|
||||
\left[ ${1:${VISUAL}} \right]
|
||||
endsnippet
|
||||
|
||||
# my snippets
|
||||
snippet func "Function" w
|
||||
\func{${1:${VISUAL}}}{${2}}
|
||||
endsnippet
|
||||
|
||||
snippet funcb "Function with brackets" w
|
||||
\funcb{${1:${VISUAL}}}{${2}}
|
||||
endsnippet
|
||||
|
||||
snippet int "integral"
|
||||
\int_{${1}}^{${2}}
|
||||
endsnippet
|
||||
|
||||
snippet sum "sum"
|
||||
\sum_{${1}}^{${2}}
|
||||
endsnippet
|
||||
|
||||
snippet eqr "eqref"
|
||||
\eqref{${1}}
|
||||
endsnippet
|
||||
|
||||
snippet v "Vector" w
|
||||
\vec
|
||||
endsnippet
|
||||
|
||||
snippet bis "bis" w
|
||||
\bis{${1}}{${2}}
|
||||
endsnippet
|
||||
|
||||
# vim:ft=snippets:
|
||||
Reference in New Issue
Block a user