diff --git a/latex-mode/bigcap_^ b/latex-mode/bigcap_^ index b9a8319f..de73589a 100644 --- a/latex-mode/bigcap_^ +++ b/latex-mode/bigcap_^ @@ -1,6 +1,7 @@ # -*- mode: snippet -*- # name: bigcap_^ # key: cap +# condition: (texmathp) # -- \bigcap${1:$(when (> (length yas-text) 0) "_") }${1:$(when (> (length yas-text) 1) "{") diff --git a/latex-mode/bigcup_^ b/latex-mode/bigcup_^ index d6c58e5d..5178477b 100644 --- a/latex-mode/bigcup_^ +++ b/latex-mode/bigcup_^ @@ -1,6 +1,7 @@ # -*- mode: snippet -*- # name: bigcup_^ # key: cup +# condition: (texmathp) # -- \bigcup${1:$(when (> (length yas-text) 0) "_") }${1:$(when (> (length yas-text) 1) "{") diff --git a/latex-mode/frac b/latex-mode/frac index 3989e42f..d81a3d21 100644 --- a/latex-mode/frac +++ b/latex-mode/frac @@ -2,5 +2,6 @@ # name: frac # key: frac # uuid: frac +# condition: (texmathp) # -- \frac{${1:`(or % "numerator")`}}{${2:denominator}}$0 \ No newline at end of file diff --git a/latex-mode/int_^ b/latex-mode/int_^ index 9edfb61a..53c07fad 100644 --- a/latex-mode/int_^ +++ b/latex-mode/int_^ @@ -1,5 +1,7 @@ +# -*- mode: snippet -*- # key: int # name: int_^ +# condition: (texmathp) # -- \int${1:$(when (> (length yas-text) 0) "_") }${1:$(when (> (length yas-text) 1) "{") diff --git a/latex-mode/lim b/latex-mode/lim index db43ca35..99a058f2 100644 --- a/latex-mode/lim +++ b/latex-mode/lim @@ -1,5 +1,6 @@ # -*- mode: snippet -*- # name: lim # key: lim +# condition: (texmathp) # -- \lim_{${1:n} \to ${2:\infty}} $0 \ No newline at end of file diff --git a/latex-mode/liminf b/latex-mode/liminf index 19ae703d..6d3c3ea2 100644 --- a/latex-mode/liminf +++ b/latex-mode/liminf @@ -1,5 +1,6 @@ # -*- mode: snippet -*- # name: liminf # key: liminf +# condition: (texmathp) # -- \liminf_{${1:n} \to ${2:\infty}} $0 \ No newline at end of file diff --git a/latex-mode/limsup b/latex-mode/limsup index bdba92bc..13b650f5 100644 --- a/latex-mode/limsup +++ b/latex-mode/limsup @@ -1,5 +1,6 @@ # -*- mode: snippet -*- # name: limsup # key: limsup +# condition: (texmathp) # -- \limsup_{${1:n} \to ${2:\infty}} $0 \ No newline at end of file diff --git a/latex-mode/prod_^ b/latex-mode/prod_^ index aaa15443..8685e951 100644 --- a/latex-mode/prod_^ +++ b/latex-mode/prod_^ @@ -1,5 +1,7 @@ +# -*- mode: snippet -*- # key: prod # name: prod_^ +# condition: (texmathp) # -- \prod${1:$(when (> (length yas-text) 0) "_") }${1:$(when (> (length yas-text) 1) "{") diff --git a/latex-mode/root b/latex-mode/root index 136efdf5..2b6663a5 100644 --- a/latex-mode/root +++ b/latex-mode/root @@ -1,5 +1,6 @@ # -*- mode: snippet -*- # name: sqrt[]{} # key: root +# condition: (texmathp) # -- \sqrt[$1]{`%`$2} \ No newline at end of file diff --git a/latex-mode/sqrt b/latex-mode/sqrt index e8c535c7..eee1a09e 100644 --- a/latex-mode/sqrt +++ b/latex-mode/sqrt @@ -1,5 +1,6 @@ # -*- mode: snippet -*- # name: sqrt # key: sq +# condition: (texmathp) # -- \sqrt{`%`$1}$0 \ No newline at end of file diff --git a/latex-mode/sum_^ b/latex-mode/sum_^ index 40711274..f1070aaa 100644 --- a/latex-mode/sum_^ +++ b/latex-mode/sum_^ @@ -1,5 +1,7 @@ +# -*- mode: snippet -*- # key: sum # name: sum_^ +# condition: (texmathp) # -- \sum${1:$(when (> (length yas-text) 0) "_") }${1:$(when (> (length yas-text) 1) "{")