dotfiles/vim/.vim/UltiSnips/markdown_tex.snippets

65 lines
995 B
Plaintext
Raw Normal View History

# 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
2023-11-02 10:11:39 +01:00
snippet in "\in" i
\in $0
endsnippet
snippet text "implement text in tex" i
\text{ ${1:${VISUAL:text}} } $0
endsnippet
2023-11-02 10:11:39 +01:00
snippet quad "small space (like a tab)" i
\quad $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
2023-11-02 10:11:39 +01:00
snippet forall "forall"
\forall $0
endsnippet
snippet exists "exists"
\exists $0
priority -1
snippet "(\w+)" "latex default" r
\\`!p snip.rv = match.group(1)` $1
endsnippet