11# PREAMBLE
22# newcommand
3- snippet nc
3+ snippet nc \newcommand
44 \n ewcommand{\$ {1:cmd}}[${2: opt } ]{${3: realcmd } } ${0}
55# usepackage
6- snippet up
6+ snippet up \usepackage
77 \u sepackage[${1: options } ]{${2: package } } ${0}
88# newunicodechar
9- snippet nuc
9+ snippet nuc \newunicodechar
1010 \n ewunicodechar{${1} }{${2: \e nsuremath }${3: tex-substitute } }} ${0}
1111# DeclareMathOperator
12- snippet dmo
12+ snippet dmo \DeclareMathOperator
1313 \D eclareMathOperator{${1} }{${2} } ${0}
1414
1515# DOCUMENT
1616# \begin{}...\end{}
17- snippet begin
17+ snippet begin \begin{} ... \end{} block
1818 \b egin{${1: env } }
1919 ${0}
2020 \e nd{$1 }
2121# Tabular
22- snippet tab
22+ snippet tab tabular (or arbitrary) environment
2323 \b egin{${1: tabular } }{${2: c } }
2424 ${0}
2525 \e nd{$1 }
26- snippet thm
26+ snippet thm thm (or arbitrary) environment with optional argument
2727 \b egin[${1: author } ]{${2: thm } }
2828 ${0}
2929 \e nd{$2 }
30- snippet center
30+ snippet center center environment
3131 \b egin{center}
3232 ${0}
3333 \e nd{center}
3434# Align(ed)
35- snippet ali
35+ snippet ali align(ed) environment
3636 \b egin{align${1: ed } }
3737 \l abel{eq:${2} }
3838 ${0}
3939 \e nd{align$1 }
4040# Gather(ed)
41- snippet gat
41+ snippet gat gather(ed) environment
4242 \b egin{gather${1: ed } }
4343 ${0}
4444 \e nd{gather$1 }
4545# Equation
46- snippet eq
46+ snippet eq equation environment
4747 \b egin{equation}
4848 \l abel{eq:${2} }
4949 ${0}
5050 \e nd{equation}
5151# Equation
52- snippet eq*
52+ snippet eq* unnumbered equation environment
5353 \b egin{equation*}
5454 ${0}
5555 \e nd{equation*}
5656# Unnumbered Equation
57- snippet \
57+ snippet \ unnumbered equation: \[ ... \]
5858 \[
5959 ${0}
6060 \]
6161# Equation array
62- snippet eqnarray
62+ snippet eqnarray eqnarray environment
6363 \b egin{eqnarray}
6464 ${0}
6565 \e nd{eqnarray}
6666# Label
67- snippet lab
67+ snippet lab \label
6868 \l abel{${1: eq: }${2: fig: }${3: tab: } ${0} }
6969# Enumerate
70- snippet enum
70+ snippet enum enumerate environment
7171 \b egin{enumerate}
7272 \i tem ${0}
7373 \e nd{enumerate}
7474# Itemize
75- snippet itemize
75+ snippet itemize itemize environment
7676 \b egin{itemize}
7777 \i tem ${0}
7878 \e nd{itemize}
79- snippet item
79+ snippet item \item
8080 \i tem ${1}
8181# Description
82- snippet desc
82+ snippet desc description environment
8383 \b egin{description}
8484 \i tem[${1} ] ${0}
8585 \e nd{description}
8686# Endless new item
87- snippet ]i
87+ snippet ]i \item (recursive)
8888 \i tem ${1}
8989 ${0: ]i }
9090# Matrix
91- snippet mat
91+ snippet mat smart matrix environment
9292 \b egin{${1: p/b/v/V/B/small } matrix}
9393 ${0}
9494 \e nd{$1 matrix}
9595# Cases
96- snippet cas
96+ snippet cas cases environment
9797 \b egin{cases}
9898 ${1: equation } , &\t ext{ if }${2: case } \\
9999 ${0}
100100 \e nd{cases}
101101# Split
102- snippet spl
102+ snippet spl split environment
103103 \b egin{split}
104104 ${0}
105105 \e nd{split}
106106# Part
107- snippet part
107+ snippet part document \part
108108 \p art{${1: part name } } % (fold)
109109 \l abel{prt:${2: $1 } }
110110 ${0}
111111 % part $2 (end)
112112# Chapter
113- snippet cha
113+ snippet cha \chapter
114114 \c hapter{${1: chapter name } }
115115 \l abel{cha:${2: $1 } }
116116 ${0}
117117# Section
118- snippet sec
118+ snippet sec \section
119119 \s ection{${1: section name } }
120120 \l abel{sec:${2: $1 } }
121121 ${0}
122122# Section without number
123- snippet sec*
123+ snippet sec* \section*
124124 \s ection*{${1: section name } }
125125 \l abel{sec:${2: $1 } }
126126 ${0}
127127# Sub Section
128- snippet sub
128+ snippet sub \subsection
129129 \s ubsection{${1: subsection name } }
130130 \l abel{sub:${2: $1 } }
131131 ${0}
132132# Sub Section without number
133- snippet sub*
133+ snippet sub* \subsection*
134134 \s ubsection*{${1: subsection name } }
135135 \l abel{sub:${2: $1 } }
136136 ${0}
137137# Sub Sub Section
138- snippet subs
138+ snippet subs \subsubsection
139139 \s ubsubsection{${1: subsubsection name } }
140140 \l abel{ssub:${2: $1 } }
141141 ${0}
142142# Sub Sub Section without number
143- snippet subs*
143+ snippet subs* \subsubsection*
144144 \s ubsubsection*{${1: subsubsection name } }
145145 \l abel{ssub:${2: $1 } }
146146 ${0}
147147# Paragraph
148- snippet par
148+ snippet par \paragraph
149149 \p aragraph{${1: paragraph name } }
150150 \l abel{par:${2: $1 } }
151151 ${0}
152152# Sub Paragraph
153- snippet subp
153+ snippet subp \subparagraph
154154 \s ubparagraph{${1: subparagraph name } }
155155 \l abel{subp:${2: $1 } }
156156 ${0}
157- snippet ni
157+ snippet ni \noindent
158158 \n oindent
159159 ${0}
160160# References
161- snippet itd
161+ snippet itd description \item
162162 \i tem[${1: description } ] ${0: item }
163- snippet figure
163+ snippet figure reference to a figure
164164 ${1: Figure } ~\r ef{${2: fig: } }
165- snippet table
165+ snippet table reference to a table
166166 ${1: Table } ~\r ef{${2: tab: } }
167- snippet listing
167+ snippet listing reference to a listing
168168 ${1: Listing } ~\r ef{${2: list } }
169- snippet section
169+ snippet section reference to a section
170170 ${1: Section } ~\r ef{sec:${2} } ${0}
171- snippet page
171+ snippet page reference to a page
172172 ${1: page } ~\p ageref{${2} } ${0}
173- snippet index
173+ snippet index \index
174174 \i ndex{${1: index } } ${0}
175175# Citations
176- snippet citen
176+ snippet citen \citen
177177 \c iten{${1} } ${0}
178178# natbib citations
179- snippet citep
179+ snippet citep \citep
180180 \c itep{${1} } ${0}
181- snippet citet
181+ snippet citet \citet
182182 \c itet{${1} } ${0}
183- snippet cite
183+ snippet cite \cite[]{}
184184 \c ite[${1} ]{${2} } ${0}
185- snippet citea
185+ snippet citea \citeauthor
186186 \c iteauthor{${1} } ${0}
187- snippet citey
187+ snippet citey \citeyear
188188 \c iteyear{${1} } ${0}
189- snippet fcite
189+ snippet fcite \footcite[]{}
190190 \f ootcite[${1} ]{${2} }${0}
191191# Formating text: italic, bold, underline, small capital, emphase ..
192- snippet it
192+ snippet it italic text
193193 \t extit{${0: text } }
194- snippet bf
194+ snippet bf bold face text
195195 \t extbf{${0: text } }
196- snippet under
196+ snippet under underline text
197197 \u nderline{${0: text } }
198- snippet emp
198+ snippet emp emphasize text
199199 \e mph{${0: text } }
200- snippet sc
200+ snippet sc small caps text
201201 \t extsc{${0: text } }
202202# Choosing font
203- snippet sf
203+ snippet sf sans serife text
204204 \t extsf{${0: text } }
205- snippet rm
205+ snippet rm roman font text
206206 \t extrm{${0: text } }
207- snippet tt
207+ snippet tt typewriter (monospace) text
208208 \t exttt{${0: text } }
209209# misc
210- snippet ft
210+ snippet ft \footnote
211211 \f ootnote{${0: text } }
212- snippet fig
212+ snippet fig figure environment (includegraphics)
213213 \b egin{figure}
214214 \b egin{center}
215215 \i ncludegraphics[scale=${1} ]{Figures/${2} }
@@ -218,7 +218,7 @@ snippet fig
218218 \l abel{fig:${4} }
219219 \e nd{figure}
220220 ${0}
221- snippet tikz
221+ snippet tikz figure environment (tikzpicture)
222222 \b egin{figure}
223223 \b egin{center}
224224 \b egin{tikzpicture}[scale=${1: 1 } ]
@@ -230,31 +230,31 @@ snippet tikz
230230 \e nd{figure}
231231 ${0}
232232# math
233- snippet stackrel
233+ snippet stackrel \stackrel{}{}
234234 \s tackrel{${1: above } }{${2: below } } ${0}
235- snippet frac
235+ snippet frac \frac{}{}
236236 \f rac{${1: num } }{${2: denom } } ${0}
237- snippet sum
237+ snippet sum \sum^{}_{}
238238 \s um^{${1: n } }_{${2: i=1 } } ${0}
239- snippet lim
239+ snippet lim \lim_{}
240240 \l im_{${1: x \t o +\i nfty } } ${0}
241- snippet frame
241+ snippet frame frame environment
242242 \b egin{frame}[${1: t } ]{${2: title } }
243243 ${0}
244244 \e nd{frame}
245- snippet block
245+ snippet block block environment
246246 \b egin{block}{${1: title } }
247247 ${0}
248248 \e nd{block}
249- snippet alert
249+ snippet alert alertblock environment
250250 \b egin{alertblock}{${1: title } }
251251 ${0}
252252 \e nd{alertblock}
253- snippet example
253+ snippet example exampleblock environment
254254 \b egin{exampleblock}{${1: title } }
255255 ${0}
256256 \e nd{exampleblock}
257- snippet col2
257+ snippet col2 two-column environment
258258 \b egin{columns}
259259 \b egin{column}{0.5\t extwidth}
260260 ${1}
0 commit comments