You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

180 lines
4.1 KiB
Plaintext

'.text.tex.latex':
'Insert display math':
'prefix': 'm'
'body': """
\\\\[
$1
\\\\]
$2
"""
'Insert inline math':
'prefix': 'n'
'body': '\$$1\$ $2'
'align environment':
'prefix': 'ba'
'body': """
\\\\begin{align${1:*}}
$2
\\\\end{align${1:*}}
$3
"""
'aligned environment':
'prefix': 'bal'
'body': """
\\\\begin{aligned}${1:[t]}
$2
\\\\end{aligned}
$3
"""
'Equations':
'prefix': 'be'
'body': """
\\\\begin{equation${1:*}}
$2
\\\\end{equation${1:*}}
$3
"""
'Tabu (beta)':
'prefix': 'tabu'
'body': """
\\\\begingroup
\\\\pretable
\\\\begin{tabu}{$1}
\\\\tablehead
$2
\\\\tablemain
$3
\\\\tablebottom
\\\\end{tabu}
\\\\endgroup
"""
'Insert TikZ picture:':
'prefix': 'tikz',
'body': """
\\\\begin{tikzpicture}
$1
\\\\end{tikzpicture}
"""
'Insert marginfigure:':
'prefix': 'marginfigure',
'body': """
\\\\begin{marginfigure}
$1
\\\\end{marginfigure}
"""
'Insert axis into TikZ picture':
'prefix': 'axis',
'body': """
\\\\draw[-stealth] (${1:-1},0) -- (${2:3},0) node[above] {$x$};
\\\\draw[-stealth] (0,${1:-1}) -- (${2:3},0) node[left] {$y$};
$3
"""
'LaTeX theorem':
'prefix': 'theorem',
'body': """
\\\\begin{theorem}\\\\label{thm:$1}
$2
\\\\end{theorem}$3
"""
'LaTeX remark':
'prefix': 'remark',
'body': """
\\\\begin{remark}\\\\label{remark:$1}
$2
\\\\end{remark}$3
"""
'LaTeX definition':
'prefix': 'definition',
'body': """
\\\\begin{definition}\\\\label{def:$1}
$2
\\\\end{definition}
"""
'LaTeX figure':
'prefix': 'figure',
'body': """
\\\\begin{figure}
\\\\includegraphics{$1}
\\\\caption{$2}\\\\label{fig:$3}
\\\\end{figure}$4
"""
'LaTeX table (beta)':
'prefix': 'table',
'body': """
\\\\begin{table}
\\\\pretable
\\\\caption{$1}\\\\label{table:$2}
\\\\begin{tabu}{$3}
\\\\tablehead
$4
\\\\tablemain
$5
\\\\tablebottom
\\\\end{tabu}
\\\\end{table}
"""
'LaTeX fraction':
'prefix': 'frac'
'body': '\\\\frac{$1}{$2}$3'
'LaTeX sum':
'prefix': 'sum'
'body': '\\\\sum_{${1:k=0}^{${2:\infty}} $3'
'LaTeX product':
'prefix': 'prod'
'body': '\\\\prod{${1:k=0}^{${2:\infty}} $3'
'LaTeX matrix':
'prefix': 'matrix'
'body': '\\\\begin{${1:b}matrix} $2 \\\\end{${1:b}matrix}'
'LaTeX binomial':
'prefix': 'binom'
'body': '\\\\binom{$1}{$2}$3'
'LaTeX chapter':
'prefix': 'chapt'
'body': '\\\\chapter{$1}\\\\label{chap:$1}$2'
'LaTeX section':
'prefix': 's'
'body': '\\\\section{$1}\\\\label{sec:$1}$2'
'LaTeX subsection':
'prefix': 'ss'
'body': '\\\\subsection{$1}\\\\label{subsec:$1}$2'
'LaTeX partial derivative':
'prefix': 'partial'
'body': '\\\\frac{\\\\partial $1}{\\\\partial $2}$3'
'LaTeX set builder (custom command)':
'prefix': 'set'
'body': '\\\\set{$1 \\\\where $2}$3'
'width=marginparwidth':
'prefix': 'ww'
'body': '[width=\\\\marginparwidth]'
'Labelled list (beta)':
'prefix': 'labelled',
'body':"""
\\\\begin{labelled}{${1:itlabel}}
\item[$2:] $3
\\\\end{labelled}
"""
'Insert item':
'prefix': 'item',
'body': '\\\\item[$1] $2'
'TikZ node':
'prefix': 'node',
'body': '\\\\node ${1:(name)} at ($2) { $$3$ };$4'
'Latex big ()':
'prefix': 'big(',
'body': '\\\\big( $1 \\\\big'
'Latex big []':
'prefix': 'big[',
'body': '\\\\big[ $1 \\\\big'
'Latex bigg ()':
'prefix': 'bigg(',
'body': '\\\\bigg( $1 \\\\bigg'
'Latex bigg []':
'prefix': 'bigg[',
'body': '\\\\bigg[ $1 \\\\bigg'
'Latex Big ()':
'prefix': 'Big(',
'body': '\\\\Big( $1 \\\\Big'
'Latex big []':
'prefix': 'Big[',
'body': '\\\\Big[ $1 \\\\Big'