tex changes
This commit is contained in:
@@ -67,6 +67,15 @@ snippet table "Table" b
|
||||
\end{table} $0
|
||||
endsnippet
|
||||
|
||||
snippet algorithm "Algorithm" b
|
||||
\begin{algorithm}[${1:H}]
|
||||
\caption{$2}\label{tab:$3}
|
||||
\begin{algorithmic}[${4:1}]
|
||||
$5
|
||||
\end{algorithmic}
|
||||
\end{algorithm} $0
|
||||
endsnippet
|
||||
|
||||
priority 100
|
||||
snippet ... "Ldots" iA
|
||||
\ldots
|
||||
@@ -80,6 +89,10 @@ snippet section "Section" bA
|
||||
\sect{$1}$0
|
||||
endsnippet
|
||||
|
||||
snippet subsection "Subsection" bA
|
||||
\subsect{$1}$0
|
||||
endsnippet
|
||||
|
||||
snippet chapter "Chapter" bA
|
||||
\chapter{$1}$0
|
||||
endsnippet
|
||||
@@ -130,11 +143,6 @@ snippet ali "Align" bA
|
||||
\end{align*} $0
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet \\\ "Backslash" Ai
|
||||
\backslash
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet => "Implies" Ai
|
||||
\implies
|
||||
@@ -211,6 +219,12 @@ snippet -> "To" iA
|
||||
\to
|
||||
endsnippet
|
||||
|
||||
priority 100
|
||||
context "math()"
|
||||
snippet -< "Gets" iA
|
||||
\gets
|
||||
endsnippet
|
||||
|
||||
priority 200
|
||||
context "math()"
|
||||
snippet <-> "Leftrightarrow" iA
|
||||
@@ -347,7 +361,7 @@ endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet case "Cases" wA
|
||||
\begin{case}
|
||||
\begin{cases}
|
||||
$1
|
||||
\end{cases} $0
|
||||
endsnippet
|
||||
@@ -732,6 +746,16 @@ snippet AA "For all" iA
|
||||
\forall
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet "such that" "Such that" iA
|
||||
\suchthat
|
||||
endsnippet
|
||||
|
||||
context "math()"
|
||||
snippet "suchthat" "Suchthat" iA
|
||||
\suchthat
|
||||
endsnippet
|
||||
|
||||
snippet image "Image" wA
|
||||
\begin{figure}[${1:h}]
|
||||
\includegraphics[width=${2:0.5}\textwidth]{$3}
|
||||
@@ -750,8 +774,7 @@ snippet plot "Plot" w
|
||||
\addplot[domain=$2:$3, samples=${6:100}]{$7};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\caption{$8}
|
||||
\label{${9:$8}}
|
||||
\caption{$8}\label{plot:$9}
|
||||
\end{figure} $0
|
||||
endsnippet
|
||||
|
||||
@@ -795,7 +818,7 @@ else:
|
||||
endsnippet
|
||||
|
||||
snippet ssc "Inline Code" wA
|
||||
\inlinecode{${1}}{${2}}`!p
|
||||
{\inlinecode{${1}}{${2}}}`!p
|
||||
if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']:
|
||||
snip.rv = ' '
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user