commit 003357ce6402520f2cb5391827ffd515a4e2ef0c
parent c7e2b2aa687d84fb7f41ceffdb429c31a98655c8
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date: Mon, 27 Feb 2023 12:03:38 -0500
Added tex ultisnips
Diffstat:
2 files changed, 22 insertions(+), 11 deletions(-)
diff --git a/UltiSnips/tex.snippets b/UltiSnips/tex.snippets
@@ -185,42 +185,42 @@ endsnippet
context "math()"
snippet lim "limit" w
-\lim_{${1:n \to \infty}}{${2:${VISUAL}}}
+\lim_{${1:n \to \infty}}$0
endsnippet
context "math()"
snippet limsup "superior limit" w
-\limsup_{${1:n \to \infty}}{${2:${VISUAL}}}
+\limsup_{${1:n \to \infty}}$0
endsnippet
context "math()"
snippet liminf "inferior limit" w
-\liminf_{${1:n \to \infty}}{${2:${VISUAL}}}
+\liminf_{${1:n \to \infty}}$0
endsnippet
context "math()"
snippet uuu "bigcup" w
-\bigcup${1/(.+)/(?1:_{)/}${1:n = 1}${1/(.+)/(?1:})/}${2/(.+)/(?1:^{)/}${2:\infty}${2/(.+)/(?1:})/}{${3:${VISUAL}}}$0
+\bigcup${1/(.+)/(?1:_{)/}${1:n \in \mathbb{N}}${1/(.+)/(?1:})/}$0
endsnippet
context "math()"
snippet nnn "bigcap" w
-\bigcap${1/(.+)/(?1:_{)/}${1:n = 1}${1/(.+)/(?1:})/}${2/(.+)/(?1:^{)/}${2:\infty}${2/(.+)/(?1:})/}{${3:${VISUAL}}}$0
+\bigcap${1/(.+)/(?1:_{)/}${1:n \in \mathbb{N}}${1/(.+)/(?1:})/}$0
endsnippet
context "math()"
snippet uu+ "biguplus" w
-\biguplus${1/(.+)/(?1:_{)/}${1:n = 1}${1/(.+)/(?1:})/}${2/(.+)/(?1:^{)/}${2:\infty}${2/(.+)/(?1:})/}{${3:${VISUAL}}}$0
+\biguplus${1/(.+)/(?1:_{)/}${1:n \in \mathbb{N}}${1/(.+)/(?1:})/}$0
endsnippet
context "math()"
snippet sum "sum" w
-\sum${1/(.+)/(?1:_{)/}${1:n = 1}${1/(.+)/(?1:})/}${2/(.+)/(?1:^{)/}${2:\infty}${2/(.+)/(?1:})/}{${3:${VISUAL}}}$0
+\sum${1/(.+)/(?1:_{)/}${1:n \in \mathbb{N}}${1/(.+)/(?1:})/}$0
endsnippet
context "math()"
snippet prod "product" w
-\prod${1/(.+)/(?1:_{)/}${1:n = 1}${1/(.+)/(?1:})/}${2/(.+)/(?1:^{)/}${2:\infty}${2/(.+)/(?1:})/}{${3:${VISUAL}}}$0
+\prod${1/(.+)/(?1:_{)/}${1:n \in \mathbb{N}}${1/(.+)/(?1:})/}$0
endsnippet
context "math()"
@@ -466,10 +466,10 @@ snippet case "cases" wA
\end{cases}
endsnippet
-snippet bigfun "Big function" iA
+snippet bigfun "Big function"
\begin{align*}
- $1: $2 &\longrightarrow $3 \\\\
- $4 &\longmapsto $1($4) = $0
+ $1: ${2:X} &\longrightarrow ${3:R} \\\\
+ $4 &\longmapsto $1($4) \coloneqq $0
.\end{align*}
endsnippet
@@ -626,6 +626,7 @@ snippet mctp "μ-ctp" w
$\mu$-ctp$0
endsnippet
+
context "not math()"
snippet => "(=>)" iA
($\Rightarrow$)
@@ -656,6 +657,11 @@ snippet iff "iff" Ai
\iff $0
endsnippet
+context "math()"
+snippet := "≔" iA
+\coloneqq $0
+endsnippet
+
priority 2
context "math()"
snippet thr4 "\therefore" wiA
diff --git a/UltiSnips/tex/greek.snippets b/UltiSnips/tex/greek.snippets
@@ -127,3 +127,8 @@ context "math()"
snippet ;r "\rho" iA
\rho
endsnippet
+
+context "math()"
+snippet ;t "\tau" iA
+\tau
+endsnippet