aboutsummaryrefslogtreecommitdiff
path: root/.config/coc/ultisnips/tex.snippets
blob: 42ed3ac07765236d735bd72161310d6b7635cc42 (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
snippet newdocument "Starting point for a new LaTeX document"
\\documentclass[12pt, a4paper, hidelinks]{article}
\\setlength{\\marginparwidth}{2.54cm}

% Packages
\\usepackage{fullpage}

% Skip
\\bigskipamount=.7cm
\\medskipamount=.4cm
\\parindent=.3cm

% Document
\\begin{document}
	${0}
\\end{document}
endsnippet

snippet nonumberedchapters "Removes chapter numbers"
% Unnumber chapter headings
\\makeatletter
\\def\\@seccntformat#1{
	\\expandafter\\ifx\\csname c@#1\\endcsname\\c@section\\else
	\\csname the#1\\endcsname\\quad
	\\fi}
\\makeatother
endsnippet

snippet beg "begin{} / end{}" bA
\\begin{$1}
	$0
\\end{$1}
endsnippet