dotfiles/vim/.vim/UltiSnips/markdown_tex.snippets
Anthony Debucquoy 9eede5ef5f
First Commit
This is a first dotfiles config. I think I have a lot more to add tho...
2023-10-24 23:29:07 +02:00

50 lines
811 B
Plaintext

# Md related
snippet check "put a open check box"
- [ ] ${1:${VISUAL:item}} $0
endsnippet
# Tex related
snippet tex "Inline Latex" i
\\\\( ${1:${VISUAL}} \\\\) $0
endsnippet
snippet Tex "Latex block" b
\\\\[
${1:${VISUAL}}
\\\\]
$0
endsnippet
snippet bb "mathbb" i
\mathbb{${1:${VISUAL:R}}} $0
endsnippet
snippet text "implement text in tex" i
\text{ ${1:${VISUAL:text}} } $0
endsnippet
snippet br "break a line in tex mode" i
\\\\\\\\
$0
endsnippet
snippet frac "fractions" i
\frac{$1}{$2} $0
endsnippet
snippet beg "Beggin and end with the cursor on the type" i
\begin{${1:matrix}}}
${2:${VISUAL}}
\end{$1}
endsnippet
snippet set "prepare for a set in tex {}" i
\\\\{ ${1:${VISUAL:e}} \\\\} $0
endsnippet
priority -1
snippet "(\w+)" "latex default" r
\\`!p snip.rv = match.group(1)` $1
endsnippet