mirror of
https://github.com/Ascyii/typstar.git
synced 2026-01-01 05:24:24 -05:00
Small physics helpers
This commit is contained in:
@@ -19,6 +19,8 @@ local ctheorems = {
|
|||||||
{ 'def', 'definition' },
|
{ 'def', 'definition' },
|
||||||
{ 'exa', 'example' },
|
{ 'exa', 'example' },
|
||||||
{ 'rem', 'remark' },
|
{ 'rem', 'remark' },
|
||||||
|
{ 'nte', 'note' },
|
||||||
|
{ 'eri', 'experiment' },
|
||||||
}
|
}
|
||||||
|
|
||||||
local wrappings = {
|
local wrappings = {
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ return {
|
|||||||
snip('oxx', 'times.circle ', {}, math),
|
snip('oxx', 'times.circle ', {}, math),
|
||||||
snip('bxx', 'times.square ', {}, math),
|
snip('bxx', 'times.square ', {}, math),
|
||||||
snip('ff', '(<>) / (<>) <>', { i(1, 'a'), i(2, 'b'), i(3) }, math),
|
snip('ff', '(<>) / (<>) <>', { i(1, 'a'), i(2, 'b'), i(3) }, math),
|
||||||
|
snip('nab', 'arrow(nabla) ', {}, math),
|
||||||
|
|
||||||
-- exponents
|
-- exponents
|
||||||
snip('iv', '^(-1) ', {}, math, 500, { wordTrig = false, blacklist = { 'equiv' } }),
|
snip('iv', '^(-1) ', {}, math, 500, { wordTrig = false, blacklist = { 'equiv' } }),
|
||||||
@@ -85,6 +86,7 @@ return {
|
|||||||
snip('DDX', '(diff <>) / (diff <>) ', { i(1, 'f'), i(2, 'x') }, math),
|
snip('DDX', '(diff <>) / (diff <>) ', { i(1, 'f'), i(2, 'x') }, math),
|
||||||
snip('part', 'partial ', {}, math, 1600),
|
snip('part', 'partial ', {}, math, 1600),
|
||||||
snip('it', 'integral ', {}, math, 900),
|
snip('it', 'integral ', {}, math, 900),
|
||||||
|
snip('iot', 'integral.vol ', {}, 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),
|
||||||
snip('dit', 'integral_(<>) ', { i(1, 'Omega') }, math),
|
snip('dit', 'integral_(<>) ', { i(1, 'Omega') }, math),
|
||||||
|
|||||||
@@ -35,8 +35,10 @@ local operations = { -- first boolean: existing brackets should be kept; second
|
|||||||
{ 'ub', 'underbrace', '', true, true },
|
{ 'ub', 'underbrace', '', true, true },
|
||||||
{ 'ob', 'overbrace', '', true, true },
|
{ 'ob', 'overbrace', '', true, true },
|
||||||
{ 'ht', 'hat', '', true, true },
|
{ 'ht', 'hat', '', true, true },
|
||||||
|
{ 'ar', 'arrow', '', true, true },
|
||||||
{ 'br', 'macron', '', true, true },
|
{ 'br', 'macron', '', true, true },
|
||||||
{ 'dt', 'dot', '', true, true },
|
{ 'dt', 'dot', '', true, true },
|
||||||
|
{ 'dou', 'dot.double', '', true, true },
|
||||||
{ 'ci', 'circle', '', true, true },
|
{ 'ci', 'circle', '', true, true },
|
||||||
{ 'td', 'tilde', '', true, true },
|
{ 'td', 'tilde', '', true, true },
|
||||||
{ 'nr', 'norm', '', true, true },
|
{ 'nr', 'norm', '', true, true },
|
||||||
|
|||||||
Reference in New Issue
Block a user