blob: 68ac5d056e27177e80f650ad7a73a09a1ace21e7 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
|
#PREAMBLE
#newcommand
snippet nc \newcommand
\newcommand{\\${1:cmd}}[${2:opt}]{${3:realcmd}} ${0}
#usepackage
snippet up \usepackage
\usepackage[${1:options}]{${2:package}} ${0}
#newunicodechar
snippet nuc \newunicodechar
\newunicodechar{${1}}{${2:\ensuremath}${3:tex-substitute}}} ${0}
#DeclareMathOperator
snippet dmo \DeclareMathOperator
\DeclareMathOperator{${1}}{${2}} ${0}
#DOCUMENT
# \begin{}...\end{}
snippet begin \begin{} ... \end{} block
\begin{${1:env}}
${0:${VISUAL}}
\end{$1}
# Tabular
snippet tab tabular (or arbitrary) environment
\begin{${1:tabular}}{${2:c}}
${0:${VISUAL}}
\end{$1}
snippet thm thm (or arbitrary) environment with optional argument
\begin[${1:author}]{${2:thm}}
${0:${VISUAL}}
\end{$2}
snippet center center environment
\begin{center}
${0:${VISUAL}}
\end{center}
# Align(ed)
snippet ali align(ed) environment
\begin{align${1:ed}}
\label{eq:${2}}
${0:${VISUAL}}
\end{align$1}
# Gather(ed)
snippet gat gather(ed) environment
\begin{gather${1:ed}}
${0:${VISUAL}}
\end{gather$1}
# Equation
snippet eq equation environment
\begin{equation}
${0:${VISUAL}}
\end{equation}
# Equation
snippet eql Labeled equation environment
\begin{equation}
\label{eq:${2}}
${0:${VISUAL}}
\end{equation}
# Equation
snippet eq* unnumbered equation environment
\begin{equation*}
${0:${VISUAL}}
\end{equation*}
# Unnumbered Equation
snippet \ unnumbered equation: \[ ... \]
\[
${0:${VISUAL}}
\]
# Equation array
snippet eqnarray eqnarray environment
\begin{eqnarray}
${0:${VISUAL}}
\end{eqnarray}
# Label
snippet lab \label
\label{${1:eq:}${2:fig:}${3:tab:}${0}}
# Enumerate
snippet enum enumerate environment
\begin{enumerate}
\item ${0}
\end{enumerate}
snippet enuma enumerate environment
\begin{enumerate}[(a)]
\item ${0}
\end{enumerate}
snippet enumi enumerate environment
\begin{enumerate}[(i)]
\item ${0}
\end{enumerate}
# Itemize
snippet itemize itemize environment
\begin{itemize}
\item ${0}
\end{itemize}
snippet item \item
\item ${1:${VISUAL}}
# Description
snippet desc description environment
\begin{description}
\item[${1}] ${0}
\end{description}
# Endless new item
snippet ]i \item (recursive)
\item ${1}
${0:]i}
# Matrix
snippet mat smart matrix environment
\begin{${1:p/b/v/V/B/small}matrix}
${0:${VISUAL}}
\end{$1matrix}
# Cases
snippet cas cases environment
\begin{cases}
${1:equation}, &\text{ if }${2:case}\\
${0:${VISUAL}}
\end{cases}
# Split
snippet spl split environment
\begin{split}
${0:${VISUAL}}
\end{split}
# Part
snippet part document \part
\part{${1:part name}} % (fold)
\label{prt:${2:$1}}
${0}
% part $2 (end)
# Chapter
snippet cha \chapter
\chapter{${1:chapter name}}
\label{cha:${2:$1}}
${0}
# Section
snippet sec \section
\section{${1:section name}}
\label{sec:${2:$1}}
${0}
# Section without number
snippet sec* \section*
\section*{${1:section name}}
\label{sec:${2:$1}}
${0}
# Sub Section
snippet sub \subsection
\subsection{${1:subsection name}}
\label{sub:${2:$1}}
${0}
# Sub Section without number
snippet sub* \subsection*
\subsection*{${1:subsection name}}
\label{sub:${2:$1}}
${0}
# Sub Sub Section
snippet subs \subsubsection
\subsubsection{${1:subsubsection name}}
\label{ssub:${2:$1}}
${0}
# Sub Sub Section without number
snippet subs* \subsubsection*
\subsubsection*{${1:subsubsection name}}
\label{ssub:${2:$1}}
${0}
# Paragraph
snippet par \paragraph
\paragraph{${1:paragraph name}}
\label{par:${2:$1}}
${0}
# Sub Paragraph
snippet subp \subparagraph
\subparagraph{${1:subparagraph name}}
\label{subp:${2:$1}}
${0}
snippet ni \noindent
\noindent
${0}
#References
snippet itd description \item
\item[${1:description}] ${0:item}
snippet figure reference to a figure
${1:Figure}~\ref{${2:fig:}}
snippet table reference to a table
${1:Table}~\ref{${2:tab:}}
snippet listing reference to a listing
${1:Listing}~\ref{${2:list}}
snippet section reference to a section
${1:Section}~\ref{sec:${2}} ${0}
snippet page reference to a page
${1:page}~\pageref{${2}} ${0}
snippet index \index
\index{${1:index}} ${0}
#Citations
snippet citen \citen
\citen{${1}} ${0}
# natbib citations
snippet citep \citep
\citep{${1}} ${0}
snippet citet \citet
\citet{${1}} ${0}
snippet cite \cite[]{}
\cite[${1}]{${2}} ${0}
snippet citea \citeauthor
\citeauthor{${1}} ${0}
snippet citey \citeyear
\citeyear{${1}} ${0}
snippet fcite \footcite[]{}
\footcite[${1}]{${2}}${0}
#Formating text: italic, bold, underline, small capital, emphase ..
snippet it italic text
\textit{${0:${VISUAL:text}}}
snippet bf bold face text
\textbf{${0:${VISUAL:text}}}
snippet under underline text
\underline{${0:${VISUAL:text}}}
snippet emp emphasize text
\emph{${0:${VISUAL:text}}}
snippet sc small caps text
\textsc{${0:${VISUAL:text}}}
#Choosing font
snippet sf sans serife text
\textsf{${0:${VISUAL:text}}}
snippet rm roman font text
\textrm{${0:${VISUAL:text}}}
snippet tt typewriter (monospace) text
\texttt{${0:${VISUAL:text}}}
#Math font
snippet mf mathfrak
\mathfrak{${0:${VISUAL:text}}}
snippet mc mathcal
\mathcal{${0:${VISUAL:text}}}
snippet ms mathscr
\mathscr{${0:${VISUAL:text}}}
#misc
snippet ft \footnote
\footnote{${0:${VISUAL:text}}}
snippet fig figure environment (includegraphics)
\begin{figure}
\begin{center}
\includegraphics[scale=${1}]{Figures/${2}}
\end{center}
\caption{${3}}
\label{fig:${4}}
\end{figure}
${0}
snippet tikz figure environment (tikzpicture)
\begin{figure}
\begin{center}
\begin{tikzpicture}[scale=${1:1}]
${2}
\end{tikzpicture}
\end{center}
\caption{${3}}
\label{fig:${4}}
\end{figure}
${0}
#math
snippet stackrel \stackrel{}{}
\stackrel{${1:above}}{${2:below}} ${0}
snippet frac \frac{}{}
\frac{${1:num}}{${2:denom}} ${0}
snippet sum \sum^{}_{}
\sum^{${1:n}}_{${2:i=1}} ${0}
snippet lim \lim_{}
\lim_{${1:n \to \infty}} ${0}
snippet frame frame environment
\begin{frame}[${1:t}]{${2:title}}
${0:${VISUAL}}
\end{frame}
snippet block block environment
\begin{block}{${1:title}}
${0:${VISUAL}}
\end{block}
snippet alert alertblock environment
\begin{alertblock}{${1:title}}
${0:${VISUAL}}
\end{alertblock}
snippet example exampleblock environment
\begin{exampleblock}{${1:title}}
${0:${VISUAL}}
\end{exampleblock}
snippet col2 two-column environment
\begin{columns}
\begin{column}{0.5\textwidth}
${1}
\end{column}
\begin{column}{0.5\textwidth}
${0}
\end{column}
\end{columns}
snippet \{ \{ \}
\\{ ${0} \\}
#delimiter
snippet lr left right
\left${1} ${0} \right$1
snippet lr( left( right)
\left( ${0} \right)
snippet lr| left| right|
\left| ${0} \right|
snippet lr{ left\{ right\}
\left\\{ ${0} \right\\}
snippet lr[ left[ right]
\left[ ${0} \right]
snippet lra langle rangle
\langle ${0} \rangle
# Code listings
snippet lst
\begin{listing}[language=${1:language}]
${0:${VISUAL}}
\end{listing}
snippet lsi
\lstinline|${1}| ${0}
# Hyperlinks
snippet url
\url{${1}} ${0}
snippet href
\href{${1}}{${2}} ${0}
# URL from Clipboard.
snippet urlc
\url{`@+`} ${0}
snippet hrefc
\href{`@+`}{${1}} ${0}
|