Add math mode snippets
parent
fba5adce5d
commit
bdb1444d01
|
@ -251,15 +251,16 @@ $1
|
||||||
\end{bmatrix}
|
\end{bmatrix}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet $
|
# Insert anything after m/M in math mode
|
||||||
$$1$$2
|
|
||||||
|
snippet "(\b)m(.*)" "MathJax" r
|
||||||
|
`!p snip.rv = match.group(1) + "$" + match.group(2) + "$"`
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet $$
|
snippet (\b)M(.*) "MathJax block" irw
|
||||||
$$
|
$$
|
||||||
$1
|
`!p snip.rv = match.group(2)`
|
||||||
$$
|
$$
|
||||||
$2
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
# MathJax
|
# MathJax
|
||||||
|
|
Loading…
Reference in New Issue