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