Small physics helpers

This commit is contained in:
2025-08-31 23:29:27 +02:00
parent b061332102
commit b49e0262a1
3 changed files with 6 additions and 0 deletions

View File

@@ -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 = {

View File

@@ -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),

View File

@@ -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 },