summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-06-24 18:54:14 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-06-24 18:54:14 +0100
commit2ba9604d198fca427c26cba3e82a1b256c633543 (patch)
treecbf5f34e5e6111e0dd1875a1db47b5f701106bff
parent42684b548831b3f922e0086a2d433f1024a775e2 (diff)
Improve snippets for Sobolev and Lp
-rw-r--r--nvim/mySnippets/tex.snippets22
1 files changed, 7 insertions, 15 deletions
diff --git a/nvim/mySnippets/tex.snippets b/nvim/mySnippets/tex.snippets
index 20ffaa4..884cc2d 100644
--- a/nvim/mySnippets/tex.snippets
+++ b/nvim/mySnippets/tex.snippets
@@ -15,7 +15,7 @@ snippet new "New command" b
endsnippet
snippet op "Operator style" i
-\op
+\op
endsnippet
snippet pard "Partial derivative" i
@@ -27,7 +27,7 @@ snippet pardd "Double partial derivative" i
endsnippet
snippet herm "Hermite polynomials" i
-\hermite
+\hermite
endsnippet
snippet red "Red text" i
@@ -39,7 +39,7 @@ snippet sumi "Sum over index set" i
endsnippet
snippet int "Integral" i
-\int_{$1}
+\int_{$1}
endsnippet
snippet ip "Inner product" i
@@ -62,20 +62,12 @@ snippet test "Test functions" i
\test{${1:\real^n}}$0
endsnippet
-snippet lp "Flat Lp space" i
-\flp{${1:2}}{${2:\real^n}}$0
+snippet lp "Lp spaces" w
+\lp{${1:exponent}}{${2:domain}}${3/^.+$/[/}${3:weight}${3/^.+$/]/}$0
endsnippet
-snippet lpw "Weighted Lp space" i
-\wlp{${1:2}}{${2:\real^n}}{${3:\rho}}$0
-endsnippet
-
-snippet sob "Flat Sobolev space" i
-\sobolev{${1:s}}{${2:\real^n}}$0
-endsnippet
-
-snippet sobw "Weighted Sobolev space" i
-\wsobolev{${1:s}}{${2:\real^n}}{${3:\rho}}$0
+snippet sob "Sobolev spaces" w
+\sobolev{${1:exponent}}{${2:domain}}${3/^.+$/[/}${3:weight}${3/^.+$/]/}$0
endsnippet
snippet cont "Continuous function" i