vim: Add custom texmath snippets
This commit is contained in:
parent
b6d757eee6
commit
a5ce7440b5
15
home/.config/nvim/UltiSnips/texmath.snippets
Normal file
15
home/.config/nvim/UltiSnips/texmath.snippets
Normal file
|
@ -0,0 +1,15 @@
|
|||
extends texmath
|
||||
|
||||
snippet qf "Quadratic formula (user is responsible for parentheses)" w
|
||||
\frac{-${2:b} \pm \sqrt{$2^2 - 4 \cdot ${1:a} \cdot ${3:c}}}{2 \cdot $1}$0
|
||||
endsnippet
|
||||
|
||||
snippet aligned "aligned environment (in math mode)" w
|
||||
\begin{aligned}
|
||||
$1 &= $0 \\\\
|
||||
\end{aligned}
|
||||
endsnippet
|
||||
|
||||
snippet si "Insert SI unit (only works with simple numbers)" w
|
||||
\SI{${1:amount}}{${2:unit}}
|
||||
endsnippet
|
Reference in a new issue