summaryrefslogtreecommitdiff
path: root/vim-extra/.config/nvim/UltiSnips/tex.snippets
blob: 1cdc972b3b59e8c55d9a5d645b701342a2bede49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# https://castel.dev/post/lecture-notes-1/
snippet begin "begin{} / end{}" bA
\begin{$1}
    $0
\end{$1}
endsnippet

snippet dm "Display math" wA
\[
$1
.\] $0
endsnippet

# Subscript
snippet _p "Subscript" iA
_{$1}$0
endsnippet

# To the power of
snippet td "To the power of" iA
^{$1}$0
endsnippet

# Fraction
snippet // "Fraction" iA
\\frac{$1}{$2}$0
endsnippet

# Integral
snippet \int_ "Bestemt intergrale" wA
\int_{$1}^{$2} $3 \,dx$0
:qa
endsnippet

# Section and stuff
snippet sec "Section" bA
\section{$1}
$0
endsnippet

snippet ssec "Sub section" bA
\subsection{$1}
$0
endsnippet