Skip to content

Commit cacd22f

Browse files
itxprashanthlissner
authored andcommitted
snippet(latex): add modeline & fix line endings
Amend: #104 Amend: c63094b
1 parent c63094b commit cacd22f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

latex-mode/int_^

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- mode: snippet -*-
12
# key: int
23
# name: int_^
34
# condition: (texmathp)
@@ -7,4 +8,4 @@
78
}${1:left}${1:$(when (> (length yas-text) 1) "}")
89
}${2:$(when (> (length yas-text) 0) "^")
910
}${2:$(when (> (length yas-text) 1) "{")
10-
}${2:right}${2:$(when (> (length yas-text) 1) "}")} $0
11+
}${2:right}${2:$(when (> (length yas-text) 1) "}")} $0

latex-mode/prod_^

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- mode: snippet -*-
12
# key: prod
23
# name: prod_^
34
# condition: (texmathp)
@@ -7,4 +8,4 @@
78
}${1:i=0}${1:$(when (> (length yas-text) 1) "}")
89
}${2:$(when (> (length yas-text) 0) "^")
910
}${2:$(when (> (length yas-text) 1) "{")
10-
}${2:n}${2:$(when (> (length yas-text) 1) "}")} $0
11+
}${2:n}${2:$(when (> (length yas-text) 1) "}")} $0

latex-mode/sum_^

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- mode: snippet -*-
12
# key: sum
23
# name: sum_^
34
# condition: (texmathp)
@@ -7,4 +8,4 @@
78
}${1:i=0}${1:$(when (> (length yas-text) 1) "}")
89
}${2:$(when (> (length yas-text) 0) "^")
910
}${2:$(when (> (length yas-text) 1) "{")
10-
}${2:n}${2:$(when (> (length yas-text) 1) "}")} $0
11+
}${2:n}${2:$(when (> (length yas-text) 1) "}")} $0

0 commit comments

Comments
 (0)