minor(snip)!: improve deriv and markup indices

This commit is contained in:
arne314
2025-01-30 13:17:13 +01:00
parent 2481c329f9
commit 5d4859d1b4
2 changed files with 3 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ return {
-- indices
snip(
'\\$(' .. trigger_index_pre .. ')\\$' .. '(' .. trigger_index_post .. ')([^\\w])',
'\\$(' .. trigger_index_pre .. ')\\$' .. ' (' .. trigger_index_post .. ')([^\\w])',
'$<>$<>',
{ d(1, get_index, {}, { user_args = { 1, 2 } }), d(2, prepend_space, {}, { user_args = { 3 } }) },
markup,

View File

@@ -75,7 +75,8 @@ return {
snip('cc', 'cases(\n\t<>\n)\\', { i(1, '1') }, math),
snip('(K|M|N|Q|R|S|Z)([\\dn]) ', '<><>^<> ', { cap(1), cap(1), cap(2) }, math),
snip('ddx', '(d <>)(d <>) ', { i(1, 'f'), i(2, 'x') }, math),
snip('dx', 'd / (d <>) ', { i(1, 'x') }, math, 900),
snip('ddx', '(d <>) / (d <>) ', { i(1, 'f'), i(2, 'x') }, math),
snip('it', 'integral ', {}, math, 900),
snip('int', 'integral_(<>)^(<>) ', { i(1, 'a'), i(2, 'b') }, math),
snip('oit', 'integral_Omega ', {}, math),