From f41358491f8dd9d71d69d487d4beb17fb1f41dbe Mon Sep 17 00:00:00 2001 From: Linus Date: Thu, 9 Jan 2025 21:32:50 +0100 Subject: [PATCH] feat(snip): domain sum (#7) * feat: sums over domains `osm` `dsm` * fix: consitency of sum snippets * fix: add space to sum snippet --------- Co-authored-by: arne314 <73391160+arne314@users.noreply.github.com> --- lua/typstar/snippets/math.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/typstar/snippets/math.lua b/lua/typstar/snippets/math.lua index 9473880..b661467 100644 --- a/lua/typstar/snippets/math.lua +++ b/lua/typstar/snippets/math.lua @@ -74,7 +74,11 @@ return { snip('it', 'integral_(<>)^(<>)', { i(1, 'a'), i(2, 'b') }, math), snip('oit', 'integral_(Omega}', {}, math), snip('dit', 'integral_{<>}', { i(1, 'Omega') }, math), - snip('sm', 'sum_(<>)^(<>)', { i(1, 'i=0'), i(2, 'oo') }, math), + + snip('sm', 'sum ', {}, math), + snip('sum', 'sum_(<>)^(<>)', { i(1, 'i=0'), i(2, 'oo') }, math), + snip('osm', 'sum_Omega', {}, math), + snip('dsm', 'sum_(<>)', { i(1, 'I') }, math), snip('lm', 'lim <>', { i(1, 'a_n') }, math), snip('lim', 'lim_(<> ->> <>) <>', { i(1, 'n'), i(2, 'oo'), i(3, 'a_n') }, math),