]> git.r.bdr.sh - rbdr/dotfiles/blob - vim/snippets/tex.snippets
Add new provisioning formulas
[rbdr/dotfiles] / vim / snippets / tex.snippets
1 # \begin{}...\end{}
2 snippet begin
3 \begin{${1:env}}
4 ${2}
5 \end{$1}
6 # Tabular
7 snippet tab
8 \begin{${1:tabular}}{${2:c}}
9 ${3}
10 \end{$1}
11 # Align(ed)
12 snippet ali
13 \begin{align${1:ed}}
14 ${2}
15 \end{align$1}
16 # Gather(ed)
17 snippet gat
18 \begin{gather${1:ed}}
19 ${2}
20 \end{gather$1}
21 # Equation
22 snippet eq
23 \begin{equation}
24 ${1}
25 \end{equation}
26 # Unnumbered Equation
27 snippet \
28 \\[
29 ${1}
30 \\]
31 # Enumerate
32 snippet enum
33 \begin{enumerate}
34 \item ${1}
35 \end{enumerate}
36 # Itemize
37 snippet item
38 \begin{itemize}
39 \item ${1}
40 \end{itemize}
41 # Description
42 snippet desc
43 \begin{description}
44 \item[${1}] ${2}
45 \end{description}
46 # Matrix
47 snippet mat
48 \begin{${1:p/b/v/V/B/small}matrix}
49 ${2}
50 \end{$1matrix}
51 # Cases
52 snippet cas
53 \begin{cases}
54 ${1:equation}, &\text{ if }${2:case}\\
55 ${3}
56 \end{cases}
57 # Split
58 snippet spl
59 \begin{split}
60 ${1}
61 \end{split}
62 # Part
63 snippet part
64 \part{${1:part name}} % (fold)
65 \label{prt:${2:$1}}
66 ${3}
67 % part $2 (end)
68 # Chapter
69 snippet cha
70 \chapter{${1:chapter name}} % (fold)
71 \label{cha:${2:$1}}
72 ${3}
73 % chapter $2 (end)
74 # Section
75 snippet sec
76 \section{${1:section name}} % (fold)
77 \label{sec:${2:$1}}
78 ${3}
79 % section $2 (end)
80 # Sub Section
81 snippet sub
82 \subsection{${1:subsection name}} % (fold)
83 \label{sub:${2:$1}}
84 ${3}
85 % subsection $2 (end)
86 # Sub Sub Section
87 snippet subs
88 \subsubsection{${1:subsubsection name}} % (fold)
89 \label{ssub:${2:$1}}
90 ${3}
91 % subsubsection $2 (end)
92 # Paragraph
93 snippet par
94 \paragraph{${1:paragraph name}} % (fold)
95 \label{par:${2:$1}}
96 ${3}
97 % paragraph $2 (end)
98 # Sub Paragraph
99 snippet subp
100 \subparagraph{${1:subparagraph name}} % (fold)
101 \label{subp:${2:$1}}
102 ${3}
103 % subparagraph $2 (end)
104 snippet itd
105 \item[${1:description}] ${2:item}
106 snippet figure
107 ${1:Figure}~\ref{${2:fig:}}${3}
108 snippet table
109 ${1:Table}~\ref{${2:tab:}}${3}
110 snippet listing
111 ${1:Listing}~\ref{${2:list}}${3}
112 snippet section
113 ${1:Section}~\ref{${2:sec:}}${3}
114 snippet page
115 ${1:page}~\pageref{${2}}${3}