old-dotfiles/vim/UltiSnips/markdown_tex.snippets
2023-04-12 10:48:32 +02:00

46 lines
713 B
Plaintext

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 in "\in" i
\in $0
endsnippet
snippet text "implement text in tex" i
\text{ ${1:${VISUAL:text}} } $0
endsnippet
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