1
1
# PREAMBLE
2
2
# newcommand
3
- snippet nc
3
+ snippet nc \newcommand
4
4
\n ewcommand{\$ {1:cmd}}[${2: opt } ]{${3: realcmd } } ${0}
5
5
# usepackage
6
- snippet up
6
+ snippet up \usepackage
7
7
\u sepackage[${1: options } ]{${2: package } } ${0}
8
8
# newunicodechar
9
- snippet nuc
9
+ snippet nuc \newunicodechar
10
10
\n ewunicodechar{${1} }{${2: \e nsuremath }${3: tex-substitute } }} ${0}
11
11
# DeclareMathOperator
12
- snippet dmo
12
+ snippet dmo \DeclareMathOperator
13
13
\D eclareMathOperator{${1} }{${2} } ${0}
14
14
15
15
# DOCUMENT
16
16
# \begin{}...\end{}
17
- snippet begin
17
+ snippet begin \begin{} ... \end{} block
18
18
\b egin{${1: env } }
19
19
${0}
20
20
\e nd{$1 }
21
21
# Tabular
22
- snippet tab
22
+ snippet tab tabular (or arbitrary) environment
23
23
\b egin{${1: tabular } }{${2: c } }
24
24
${0}
25
25
\e nd{$1 }
26
- snippet thm
26
+ snippet thm thm (or arbitrary) environment with optional argument
27
27
\b egin[${1: author } ]{${2: thm } }
28
28
${0}
29
29
\e nd{$2 }
30
- snippet center
30
+ snippet center center environment
31
31
\b egin{center}
32
32
${0}
33
33
\e nd{center}
34
34
# Align(ed)
35
- snippet ali
35
+ snippet ali align(ed) environment
36
36
\b egin{align${1: ed } }
37
37
\l abel{eq:${2} }
38
38
${0}
39
39
\e nd{align$1 }
40
40
# Gather(ed)
41
- snippet gat
41
+ snippet gat gather(ed) environment
42
42
\b egin{gather${1: ed } }
43
43
${0}
44
44
\e nd{gather$1 }
45
45
# Equation
46
- snippet eq
46
+ snippet eq equation environment
47
47
\b egin{equation}
48
48
\l abel{eq:${2} }
49
49
${0}
50
50
\e nd{equation}
51
51
# Equation
52
- snippet eq*
52
+ snippet eq* unnumbered equation environment
53
53
\b egin{equation*}
54
54
${0}
55
55
\e nd{equation*}
56
56
# Unnumbered Equation
57
- snippet \
57
+ snippet \ unnumbered equation: \[ ... \]
58
58
\[
59
59
${0}
60
60
\]
61
61
# Equation array
62
- snippet eqnarray
62
+ snippet eqnarray eqnarray environment
63
63
\b egin{eqnarray}
64
64
${0}
65
65
\e nd{eqnarray}
66
66
# Label
67
- snippet lab
67
+ snippet lab \label
68
68
\l abel{${1: eq: }${2: fig: }${3: tab: } ${0} }
69
69
# Enumerate
70
- snippet enum
70
+ snippet enum enumerate environment
71
71
\b egin{enumerate}
72
72
\i tem ${0}
73
73
\e nd{enumerate}
74
74
# Itemize
75
- snippet itemize
75
+ snippet itemize itemize environment
76
76
\b egin{itemize}
77
77
\i tem ${0}
78
78
\e nd{itemize}
79
- snippet item
79
+ snippet item \item
80
80
\i tem ${1}
81
81
# Description
82
- snippet desc
82
+ snippet desc description environment
83
83
\b egin{description}
84
84
\i tem[${1} ] ${0}
85
85
\e nd{description}
86
86
# Endless new item
87
- snippet ]i
87
+ snippet ]i \item (recursive)
88
88
\i tem ${1}
89
89
${0: ]i }
90
90
# Matrix
91
- snippet mat
91
+ snippet mat smart matrix environment
92
92
\b egin{${1: p/b/v/V/B/small } matrix}
93
93
${0}
94
94
\e nd{$1 matrix}
95
95
# Cases
96
- snippet cas
96
+ snippet cas cases environment
97
97
\b egin{cases}
98
98
${1: equation } , &\t ext{ if }${2: case } \\
99
99
${0}
100
100
\e nd{cases}
101
101
# Split
102
- snippet spl
102
+ snippet spl split environment
103
103
\b egin{split}
104
104
${0}
105
105
\e nd{split}
106
106
# Part
107
- snippet part
107
+ snippet part document \part
108
108
\p art{${1: part name } } % (fold)
109
109
\l abel{prt:${2: $1 } }
110
110
${0}
111
111
% part $2 (end)
112
112
# Chapter
113
- snippet cha
113
+ snippet cha \chapter
114
114
\c hapter{${1: chapter name } }
115
115
\l abel{cha:${2: $1 } }
116
116
${0}
117
117
# Section
118
- snippet sec
118
+ snippet sec \section
119
119
\s ection{${1: section name } }
120
120
\l abel{sec:${2: $1 } }
121
121
${0}
122
122
# Section without number
123
- snippet sec*
123
+ snippet sec* \section*
124
124
\s ection*{${1: section name } }
125
125
\l abel{sec:${2: $1 } }
126
126
${0}
127
127
# Sub Section
128
- snippet sub
128
+ snippet sub \subsection
129
129
\s ubsection{${1: subsection name } }
130
130
\l abel{sub:${2: $1 } }
131
131
${0}
132
132
# Sub Section without number
133
- snippet sub*
133
+ snippet sub* \subsection*
134
134
\s ubsection*{${1: subsection name } }
135
135
\l abel{sub:${2: $1 } }
136
136
${0}
137
137
# Sub Sub Section
138
- snippet subs
138
+ snippet subs \subsubsection
139
139
\s ubsubsection{${1: subsubsection name } }
140
140
\l abel{ssub:${2: $1 } }
141
141
${0}
142
142
# Sub Sub Section without number
143
- snippet subs*
143
+ snippet subs* \subsubsection*
144
144
\s ubsubsection*{${1: subsubsection name } }
145
145
\l abel{ssub:${2: $1 } }
146
146
${0}
147
147
# Paragraph
148
- snippet par
148
+ snippet par \paragraph
149
149
\p aragraph{${1: paragraph name } }
150
150
\l abel{par:${2: $1 } }
151
151
${0}
152
152
# Sub Paragraph
153
- snippet subp
153
+ snippet subp \subparagraph
154
154
\s ubparagraph{${1: subparagraph name } }
155
155
\l abel{subp:${2: $1 } }
156
156
${0}
157
- snippet ni
157
+ snippet ni \noindent
158
158
\n oindent
159
159
${0}
160
160
# References
161
- snippet itd
161
+ snippet itd description \item
162
162
\i tem[${1: description } ] ${0: item }
163
- snippet figure
163
+ snippet figure reference to a figure
164
164
${1: Figure } ~\r ef{${2: fig: } }
165
- snippet table
165
+ snippet table reference to a table
166
166
${1: Table } ~\r ef{${2: tab: } }
167
- snippet listing
167
+ snippet listing reference to a listing
168
168
${1: Listing } ~\r ef{${2: list } }
169
- snippet section
169
+ snippet section reference to a section
170
170
${1: Section } ~\r ef{sec:${2} } ${0}
171
- snippet page
171
+ snippet page reference to a page
172
172
${1: page } ~\p ageref{${2} } ${0}
173
- snippet index
173
+ snippet index \index
174
174
\i ndex{${1: index } } ${0}
175
175
# Citations
176
- snippet citen
176
+ snippet citen \citen
177
177
\c iten{${1} } ${0}
178
178
# natbib citations
179
- snippet citep
179
+ snippet citep \citep
180
180
\c itep{${1} } ${0}
181
- snippet citet
181
+ snippet citet \citet
182
182
\c itet{${1} } ${0}
183
- snippet cite
183
+ snippet cite \cite[]{}
184
184
\c ite[${1} ]{${2} } ${0}
185
- snippet citea
185
+ snippet citea \citeauthor
186
186
\c iteauthor{${1} } ${0}
187
- snippet citey
187
+ snippet citey \citeyear
188
188
\c iteyear{${1} } ${0}
189
- snippet fcite
189
+ snippet fcite \footcite[]{}
190
190
\f ootcite[${1} ]{${2} }${0}
191
191
# Formating text: italic, bold, underline, small capital, emphase ..
192
- snippet it
192
+ snippet it italic text
193
193
\t extit{${0: text } }
194
- snippet bf
194
+ snippet bf bold face text
195
195
\t extbf{${0: text } }
196
- snippet under
196
+ snippet under underline text
197
197
\u nderline{${0: text } }
198
- snippet emp
198
+ snippet emp emphasize text
199
199
\e mph{${0: text } }
200
- snippet sc
200
+ snippet sc small caps text
201
201
\t extsc{${0: text } }
202
202
# Choosing font
203
- snippet sf
203
+ snippet sf sans serife text
204
204
\t extsf{${0: text } }
205
- snippet rm
205
+ snippet rm roman font text
206
206
\t extrm{${0: text } }
207
- snippet tt
207
+ snippet tt typewriter (monospace) text
208
208
\t exttt{${0: text } }
209
209
# misc
210
- snippet ft
210
+ snippet ft \footnote
211
211
\f ootnote{${0: text } }
212
- snippet fig
212
+ snippet fig figure environment (includegraphics)
213
213
\b egin{figure}
214
214
\b egin{center}
215
215
\i ncludegraphics[scale=${1} ]{Figures/${2} }
@@ -218,7 +218,7 @@ snippet fig
218
218
\l abel{fig:${4} }
219
219
\e nd{figure}
220
220
${0}
221
- snippet tikz
221
+ snippet tikz figure environment (tikzpicture)
222
222
\b egin{figure}
223
223
\b egin{center}
224
224
\b egin{tikzpicture}[scale=${1: 1 } ]
@@ -230,31 +230,31 @@ snippet tikz
230
230
\e nd{figure}
231
231
${0}
232
232
# math
233
- snippet stackrel
233
+ snippet stackrel \stackrel{}{}
234
234
\s tackrel{${1: above } }{${2: below } } ${0}
235
- snippet frac
235
+ snippet frac \frac{}{}
236
236
\f rac{${1: num } }{${2: denom } } ${0}
237
- snippet sum
237
+ snippet sum \sum^{}_{}
238
238
\s um^{${1: n } }_{${2: i=1 } } ${0}
239
- snippet lim
239
+ snippet lim \lim_{}
240
240
\l im_{${1: x \t o +\i nfty } } ${0}
241
- snippet frame
241
+ snippet frame frame environment
242
242
\b egin{frame}[${1: t } ]{${2: title } }
243
243
${0}
244
244
\e nd{frame}
245
- snippet block
245
+ snippet block block environment
246
246
\b egin{block}{${1: title } }
247
247
${0}
248
248
\e nd{block}
249
- snippet alert
249
+ snippet alert alertblock environment
250
250
\b egin{alertblock}{${1: title } }
251
251
${0}
252
252
\e nd{alertblock}
253
- snippet example
253
+ snippet example exampleblock environment
254
254
\b egin{exampleblock}{${1: title } }
255
255
${0}
256
256
\e nd{exampleblock}
257
- snippet col2
257
+ snippet col2 two-column environment
258
258
\b egin{columns}
259
259
\b egin{column}{0.5\t extwidth}
260
260
${1}
0 commit comments