summaryrefslogtreecommitdiff
path: root/vim/mySnippets
diff options
context:
space:
mode:
Diffstat (limited to 'vim/mySnippets')
-rw-r--r--vim/mySnippets/tex.snippets38
1 files changed, 29 insertions, 9 deletions
diff --git a/vim/mySnippets/tex.snippets b/vim/mySnippets/tex.snippets
index 0f64ef6..fb061f0 100644
--- a/vim/mySnippets/tex.snippets
+++ b/vim/mySnippets/tex.snippets
@@ -11,7 +11,7 @@ snippet div "Divergence" i
endsnippet
snippet new "New command" b
-\newcommand{$1}[$2]{$3} $0
+\newcommand{$1}[$2]{$3}$0
endsnippet
snippet op "Operator style" i
@@ -19,11 +19,11 @@ snippet op "Operator style" i
endsnippet
snippet pard "Partial derivative" i
-\pardl{$1}{$2} $0
+\pardl{$1}{$2}$0
endsnippet
snippet pardd "Double partial derivative" i
-\parddl{$1}{$2} $0
+\parddl{$1}{$2}$0
endsnippet
snippet herm "Hermite polynomials" i
@@ -31,11 +31,11 @@ snippet herm "Hermite polynomials" i
endsnippet
snippet red "Red text" i
-\red{$1} $0
+\red{$1}$0
endsnippet
snippet sumi "Sum over index set" i
-\sum_{${1:i} \in ${2:I}} $0
+\sum_{${1:i} \in ${2:I}}$0
endsnippet
snippet int "Integral" i
@@ -51,11 +51,11 @@ snippet norm "Norm" i
endsnippet
snippet test "Test functions" i
-\test{${1:\real^n}} $0
+\test{${1:\real^n}}$0
endsnippet
snippet lp "Flat Lp space" i
-\lp{${1:2}}{${2:\real^n}} $0
+\lp{${1:2}}{${2:\real^n}}$0
endsnippet
snippet lpw "Weighted Lp space" i
@@ -63,11 +63,31 @@ snippet lpw "Weighted Lp space" i
endsnippet
snippet sob "Flat Sobolev space" i
-\sobolev{${1:s}}{${2:\real^n}} $0
+\sobolev{${1:s}}{${2:\real^n}}$0
endsnippet
snippet sobw "Weighted Sobolev space" i
-\wsobolev{${1:s}}{${2:\real^n}}{${3:\rho}} $0
+\wsobolev{${1:s}}{${2:\real^n}}{${3:\rho}}$0
+endsnippet
+
+snippet cont "Continuous function" i
+\cont{$1}{$2}$0
+endsnippet
+
+snippet mean "Expectation" i
+\expect $0
+endsnippet
+
+snippet dot "Dot product" i
+\dotx
+endsnippet
+
+snippet abs "Absolute value" i
+\abs{ $1 }$0
+endsnippet
+
+snippet sum "Sum" i
+\sum_{${1:i=1}}^{${2:n}}
endsnippet
snippet smooth "Smooth function" i