Split tex snippets into math and other because some filetypes only use math mode (i.e. rst)
This commit is contained in:
parent
6c855d1280
commit
b5ed08343f
@ -1,3 +1,5 @@
|
||||
extends texmath
|
||||
|
||||
###########################################################################
|
||||
# LATEX SNIPPETS #
|
||||
###########################################################################
|
||||
@ -50,51 +52,6 @@ snippet desc "Description" b
|
||||
\end{description}
|
||||
endsnippet
|
||||
|
||||
##############
|
||||
# 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"
|
||||
\frac{${1:nom}}{${2:denom}}
|
||||
endsnippet
|
||||
|
||||
snippet mat "Smart Matrix"
|
||||
\begin{${1:p/b/v/V/B/small}matrix}
|
||||
$0
|
||||
\end{$1matrix}
|
||||
endsnippet
|
||||
|
||||
snippet lr( "left( right)" i
|
||||
\left( $0 \right)
|
||||
endsnippet
|
||||
|
||||
snippet lr| "left| right|" i
|
||||
\left| $0 \right|
|
||||
endsnippet
|
||||
|
||||
#####################################
|
||||
# SECTIONS, CHAPTERS AND THERE LIKE #
|
||||
#####################################
|
||||
|
46
UltiSnips/texmath.snippets
Normal file
46
UltiSnips/texmath.snippets
Normal file
@ -0,0 +1,46 @@
|
||||
##############
|
||||
# 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"
|
||||
\frac{${1:nom}}{${2:denom}}
|
||||
endsnippet
|
||||
|
||||
snippet mat "Smart Matrix"
|
||||
\begin{${1:p/b/v/V/B/small}matrix}
|
||||
$0
|
||||
\end{$1matrix}
|
||||
endsnippet
|
||||
|
||||
snippet lr( "left( right)" i
|
||||
\left( $0 \right)
|
||||
endsnippet
|
||||
|
||||
snippet lr| "left| right|" i
|
||||
\left| $0 \right|
|
||||
endsnippet
|
||||
|
||||
# vim:ft=snippets:
|
Loading…
Reference in New Issue
Block a user