fixes
This commit is contained in:
@@ -146,17 +146,21 @@ snippet iff "Iff" Ai
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet bm "Bm" Ai
|
||||
snippet `(?<!\\)bm` "Bm" rwAi
|
||||
\bm{$1}$0
|
||||
endsnippet
|
||||
|
||||
snippet `(?<!\\)emph` "Emphasize" rwAi
|
||||
\emph{$1}$0
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet sqrt "Square root" Ai
|
||||
snippet `(?<!\\)sqrt` "Square root" rwAi
|
||||
\sqrt{$1}$0
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet box "Boxed" Ai
|
||||
snippet `(?<!\\)box` "Boxed" rwAi
|
||||
\boxed{$1}$0
|
||||
endsnippet
|
||||
|
||||
@@ -330,6 +334,12 @@ snippet rowvec "Row Vector" iA
|
||||
\mqty[$1]$0
|
||||
endsnippet
|
||||
|
||||
priority 200
|
||||
context "math()"
|
||||
snippet cvec "Column Vector" iA
|
||||
\begin{pmatrix} ${1:x}_${2:1}\\\\ \vdots\\\\ $1_${2:n} \end{pmatrix}
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet case "Cases" wA
|
||||
\begin{case}
|
||||
@@ -381,16 +391,26 @@ endsnippet
|
||||
|
||||
priority 1000
|
||||
context "math()"
|
||||
snippet epsi "Epsilon" wA
|
||||
snippet `(?<!\\)epsi` "Epsilon" rwA
|
||||
\epsilon
|
||||
endsnippet
|
||||
|
||||
priority 500
|
||||
context "math()"
|
||||
snippet '(?<!\\)(alpha|beta|gamma|Delta|delta|epsilon|zeta|eta|Theta|theta|iota|kappa|Lambda|lambda|mu|nu|Xi|xi|Pi|pi|varpi|Sigma|sigma|tau|Phi|phi|varphi|chi|Psi|psi|Omega|omega)' "Greek" rwA
|
||||
snippet '(?<!\\)(alpha|beta|gamma|Delta|delta|epsilon|zeta|eta|Theta|theta|iota|kappa|Lambda|lambda|mu|nu|Xi|Pi|pi|varpi|Sigma|sigma|tau|Phi|phi|varphi|chi|Psi|psi|Omega|omega)' "Greek" rwA
|
||||
\\`!p snip.rv = match.group(1)`
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet '(?<!\\)xxi' "Xi" rwA
|
||||
\xi
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet '(?<!\\)rho' "Rho" rwA
|
||||
\rho
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet // "Fraction" iA
|
||||
\\frac{${VISUAL}}{$1}$0
|
||||
@@ -622,7 +642,7 @@ endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet prod "Product" w
|
||||
\prod{${1:n=${2:1}}}^{${3:\infty}} $4
|
||||
\prod_{${1:n=${2:1}}}^{${3:\infty}} $4
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
@@ -651,7 +671,7 @@ snippet part "Partial Derivative" w
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet dd "Differential" wA
|
||||
snippet `(?<!\\)dd` "Differential" rwA
|
||||
\dd{$1}$0
|
||||
endsnippet
|
||||
|
||||
|
||||
Reference in New Issue
Block a user