-
Notifications
You must be signed in to change notification settings - Fork 0
/
latex.snippets
430 lines (321 loc) · 8 KB
/
latex.snippets
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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
# A valid snippet should starts with:
#
# snippet trigger_word [ "description" [ options ] ]
#
# and end with:
#
# endsnippet
#
# Snippet options:
#
# b - Beginning of line.
# i - In-word expansion.
# w - Word boundary.
# r - Regular expression
# e - Custom context snippet
# A - Snippet will be triggered automatically, when condition matches.
#
# Basic example:
#
# snippet emitter "emitter properties" b
# private readonly ${1} = new Emitter<$2>()
# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event
# endsnippet
#
# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
snippet singFig
\FloatBarrier
\begin{figure}[H]
\begin{center}
\includegraphics[width = 1 \textwidth]{Images/${0:${VISUAL}}}
\caption{}\label{fig:}
\end{center}
\end{figure}\FloatBarrier
endsnippet
snippet multiFig
\FloatBarrier
\begin{figure}[H]
\begin{center}
%
\begin{subfigure}[b]{0.48 \textwidth}
\includegraphics[width = 1\textwidth]{Images/${0:${VISUAL}}}
\caption{}\label{fig:}
\end{subfigure}\hfill %
%
\caption{}\label{fig:}
%
\end{center}
\end{figure}\FloatBarrier
endsnippet
snippet wrapfig
\FloatBarrier
\begin{wrapfigure}[20]{R}{4 cm}
\begin{center}
\includegraphics[ width = 1 \textwidth]{Images/${0:${VISUAL} }}
\caption{}\label{fig:}
\end{center}
\end{wrapfigure}\FloatBarrier
endsnippet
snippet subfig
\begin{subfigure}[b]{0.48 \textwidth}
\includegraphics[width = 1\textwidth]{Images/${0:${VISUAL}}}
\caption{}\label{fig:}
\end{subfigure}\hfill %
endsnippet
snippet spel
setlocal spell
endsnippet
snippet ftsize
\footnotesize
endsnippet
snippet linguistics
\usepackage[linguistics]{forest}
endsnippet
snippet lingdraw
\draw[-stealth,dotted] (${0:${VISUAL}}) to[out = south, in = south] ();
endsnippet
snippet branchLing
[ ${0:${VISUAL}}
[ \\\\ ]
[
]
]
endsnippet
snippet mtimes
$\times$
endsnippet
snippet genPre
\input{/home/ivan/0.Workspace/1.UofT/0.LaTeX Preambles/GeneralPreamble.tex} %{D:/1.UofT/0.LaTeX Preambles/GeneralPreamble.tex}
endsnippet
snippet preBody
\input{/home/ivan/0.Workspace/1.UofT/0.LaTeX Preambles/PreambleBody.tex} %/D:/1.UofT/0.LaTeX Preambles/PreambleBody.tex}
endsnippet
snippet preHeader
\documentclass[10pt,letterpaper,final]{article}
\usepackage[margin=1.5 cm]{geometry}
endsnippet
snippet fancyhdr
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\lhead{${15:${VISUAL} } }
\rhead{\thepage }
\fancypagestyle{plain}{
\lhead{${15:${VISUAL} } }
\rhead{\thepage } }
\usepackage[para,bottom]{footmisc}
endsnippet
snippet typewriterFont
\input{/home/ivan/0.Workspace/1.UofT/0.LaTeX Preambles/TypewriterFont.tex}%/D:/1.UofT/0.LaTeX Preambles/TypewriterFont.tex}
endsnippet
snippet literaturnayaFont
\input{/home/ivan/0.Workspace/1.UofT/0.LaTeX Preambles/LiteraturnayaFont.tex}%/D:/1.UofT/0.LaTeX Preambles/Font/LiteraturnayaFont.tex}
endsnippet
snippet akamedischeskiyFont
\input{/home/ivan/0.Workspace/1.UofT/0.LaTeX Preambles/AkademicheskiyFont.tex}%/D:/1.UofT/0.LaTeX Preambles/Font/AkademicheskiyFont.tex}
endsnippet
snippet transPre
\input{/home/ivan/0.Workspace/1.UofT/4.0 PhySU/Templates/TransitionSheets/Sample/0Preamble.tex}%/D:/1.UofT/4.0 PhySU/Templates/TransitionSheets/Sample/0Preamble.tex}
endsnippet
snippet linkcol
\textcolor{cyan}{${0:${VISUAL} }}
endsnippet
snippet seeSnips
CocCommand snippets.editSnippets
endsnippet
snippet beg
\begin{$10}
${0:${VISUAL}}
\end{$10}
endsnippet
snippet \fr "fraction" A
\frac{$0}{}
endsnippet
snippet \ref "reference/citation" A
\ref{$0}
endsnippet
snippet (\ref "ref equation" A
(\ref{eq:$0})
endsnippet
snippet \sqrt "square root" A
\sqrt{$0}
endsnippet
snippet \lbra "brackets" A
\left ( ${0:${VISUAL}} \right )
endsnippet
snippet \sqbra "square brackets" A
\left [ ${0:${VISUAL}} \right ]
endsnippet
snippet texr
%!Tex Root =**$0
endsnippet
snippet wrapWords
:setlocal wrap linebreak
endsnippet
snippet newcommand
\newcommand{$0}[]{}
endsnippet
snippet newOptCommand
\NewDocumentCommand{$0 }{ O{t} O{} O{} } { #1 #2 #3}
endsnippet
snippet tripleSubInit
\usepackage{titlesec}
\input{/home/ivan/0.Workspace/1.UofT/0.LaTeX Preambles/Subsubsub.tex}%D:/1.UofT/0.LaTeX Preambles/Subsubsub.tex}
endsnippet
snippet eqnCounter
\renewcommand{\theequation}{$0 \arabic{equation}}
\setcounter{equation}{0}
endsnippet
snippet iminput
\input{Images/${0:${VISUAL}}}
endsnippet
snippet verb
\verb|$0|
endsnippet
snippet tabul
\FloatBarrier
\begin{table}[H]
\begin{center}
\begin{tabular}{|P{2cm}|P{2cm}| }
\hline
XXXX & XXXX \\ \hline ${0:${VISUAL}}
\end{tabular}
\end{center}
\end{table}\FloatBarrier
endsnippet
snippet transitionSheet
\begin{landscape}
\FloatBarrier
\begin{table}[H]
\begin{center}
\begin{tabular}{|P{2cm}|P{2cm}| }
\hline
\rowcolor{gray!25} Transition & XXX\\\\ \hline
List of Items to do & XXX \\\\ \hline
${0:${VISUAL}}
\end{tabular}
\end{center}
\end{table}\FloatBarrier
\end{landscape}
endsnippet
snippet titemize
{ \scriptsize
\begin{itemize}[leftmargin=*]
\item ${0:${VISUAL}}
\end{itemize}
}
endsnippet
snippet scibib
\usepackage[style=numeric,autolang=other, bibencoding =utf8,backend=biber,url=true,natbib,giveninits=true,language=auto,sorting=none]{biblatex-ms}
\addbibresource{ ${1:${VISUAL}} }
endsnippet
snippet bibEntry
@book{ $0,
title={ },
author={ LastName, Name },
volume={ },
year={ },
publisher={},
}
endsnippet
snippet genBibliography
\addbibresource{/home/ivan/0.Workspace/1.UofT/0.LaTeX Preambles/GeneralBibliography.bib}%{D:/1.UofT/0.LaTeX Preambles/GeneralBibliography.bib}
endsnippet
snippet packageBibliography
\addbibresource{/home/ivan/0.Workspace/1.UofT/0.LaTeX Preambles/PackagesBibliography.bib}%{D:/1.UofT/0.LaTeX Preambles/PackagesBibliography.bib}
endsnippet
snippet chicbib
\usepackage[notes,backend=biber, dashed=false]{biblatex-chicago}
\addbibresource{ ${1:${VISUAL}} }
endsnippet
snippet bpre
\documentclass[10pt,letterpaper,final]{article}
\usepackage[margin=1.5 cm]{geometry}
\usepackage{wrapfig}
\usepackage{setspace}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{amssymb}
\usepackage{gensymb}
\usepackage{amsmath}[fleqn]
endsnippet
snippet beamerBody
\input{/home/ivan/0.Workspace/1.UofT/0.LaTeX Preambles/BeamerBody.tex}%{D:/1.UofT/0.LaTeX Preambles/BeamerBody.tex}
endsnippet
snippet beamerUofT
\input{/home/ivan/0.Workspace/1.UofT/0.LaTeX Preambles/UofTBeamer.tex}%{D:/1.UofT/0.LaTeX Preambles/UofTBeamer.tex}
\usefonttheme[onlymath]{serif}
\usepackage[absolute,overlay]{textpos}
\input{/home/ivan/0.Workspace/1.UofT/0.LaTeX Preambles/BeamerBody.tex}%{D:/1.UofT/0.LaTeX Preambles/BeamerBody.tex}
\title[About Beamer]
{About the Beamer class in presentation making}
\subtitle{A short story}
\author[Arthur, Doe] % (optional, for multiple authors)
{A.~B.~Arthur\inst{1} \and J.~Doe\inst{2}}
\institute[UofT] % (optional)
{
\inst{1}%
Faculty of Physics\\
Very Famous University
\and
\inst{2}%
Faculty of Chemistry\\
Very Famous University
}
\date[ICLR 2023] % (optional)
{ICLR, May 2023}
%\logo{\includegraphics[height=0.8cm]{/home/ivan/0.Workspace/1.UofT/UofTPhysicsDpt.jpeg}%D:/1.UofT/UofTPhysicsDpt.jpeg}}
endsnippet
snippet frameBeamer
\begin{frame}
\frametitle{$0}
\end{frame}
endsnippet
snippet blockBeamer
\begin{textblock*}{10pt}($0pt, pt)
\tiny
\end{textblock*}
endsnippet
snippet looptikz
\foreach \n in {0,1,...,10}{
$0
}
endsnippet
snippet plotTikz
\draw[domain = $0: , smooth, variable = \t] plot ({},{});
endsnippet
snippet bracetikz
[decorate,decoration= {brace,amplitude = 9pt},xshift= ${1:${VISUAL}} pt,yshift=0 pt]
endsnippet
snippet arcTikz
\draw (1,0) arc (0:360:1);
endsnippet
snippet circTikz
\filldraw[black] ($0) circle (1pt);
endsnippet
snippet mathTikz
\tikzmath{%
$0}
endsnippet
snippet scalingTikz
[scale=$4, every node/.style={scale=$4}]
endsnippet
snippet packRussian
\usepackage[T2A,T1,OT2]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,main=russian]{babel}
endsnippet
snippet foreignR
\foreignlanguage{Russian}{$0 }
endsnippet
snippet glosEntry
\newglossaryentry{${13:${VISUAL} }}{
type ={${13:${VISUAL} }},
name ={},
description = { }
}
endsnippet
snippet newGlos
\newglossary*{$0}{}
endsnippet