Split tex snippets into math and other because some filetypes only use math mode (i.e. rst)

This commit is contained in:
Holger Rapp 2011-08-02 11:01:19 +02:00
parent 6c855d1280
commit b5ed08343f
2 changed files with 48 additions and 45 deletions

View File

@ -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 #
#####################################

View 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: