This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.config/nvim/UltiSnips/texmath.snippets

24 lines
505 B
Plaintext
Raw Normal View History

2020-05-25 17:40:50 +02:00
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
2020-07-11 09:50:36 +02:00
snippet · "Insert multiplication sign" A
\cdot $0
endsnippet
snippet // "Fraction" iA
\frac{$1}{$2}$0
endsnippet