mirror of
https://github.com/Ascyii/typstar.git
synced 2026-01-01 05:24:24 -05:00
minor(snip)!: improve deriv and markup indices
This commit is contained in:
@@ -111,7 +111,7 @@ return {
|
|||||||
|
|
||||||
-- indices
|
-- indices
|
||||||
snip(
|
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 } }) },
|
{ d(1, get_index, {}, { user_args = { 1, 2 } }), d(2, prepend_space, {}, { user_args = { 3 } }) },
|
||||||
markup,
|
markup,
|
||||||
|
|||||||
@@ -75,7 +75,8 @@ return {
|
|||||||
snip('cc', 'cases(\n\t<>\n)\\', { i(1, '1') }, math),
|
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('(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('it', 'integral ', {}, math, 900),
|
||||||
snip('int', 'integral_(<>)^(<>) ', { i(1, 'a'), i(2, 'b') }, math),
|
snip('int', 'integral_(<>)^(<>) ', { i(1, 'a'), i(2, 'b') }, math),
|
||||||
snip('oit', 'integral_Omega ', {}, math),
|
snip('oit', 'integral_Omega ', {}, math),
|
||||||
|
|||||||
Reference in New Issue
Block a user