127 lines
5.9 KiB
JavaScript
127 lines
5.9 KiB
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var ParseMethods_js_1 = __importDefault(require("../ParseMethods.js"));
|
|
var SymbolMap_js_1 = require("../SymbolMap.js");
|
|
var TexConstants_js_1 = require("../TexConstants.js");
|
|
var MathtoolsMethods_js_1 = require("./MathtoolsMethods.js");
|
|
new SymbolMap_js_1.CommandMap('mathtools-macros', {
|
|
shoveleft: ['HandleShove', TexConstants_js_1.TexConstant.Align.LEFT],
|
|
shoveright: ['HandleShove', TexConstants_js_1.TexConstant.Align.RIGHT],
|
|
xleftrightarrow: ['xArrow', 0x2194, 10, 10],
|
|
xLeftarrow: ['xArrow', 0x21D0, 12, 7],
|
|
xRightarrow: ['xArrow', 0x21D2, 7, 12],
|
|
xLeftrightarrow: ['xArrow', 0x21D4, 12, 12],
|
|
xhookleftarrow: ['xArrow', 0x21A9, 10, 5],
|
|
xhookrightarrow: ['xArrow', 0x21AA, 5, 10],
|
|
xmapsto: ['xArrow', 0x21A6, 10, 10],
|
|
xrightharpoondown: ['xArrow', 0x21C1, 5, 10],
|
|
xleftharpoondown: ['xArrow', 0x21BD, 10, 5],
|
|
xrightleftharpoons: ['xArrow', 0x21CC, 10, 10],
|
|
xrightharpoonup: ['xArrow', 0x21C0, 5, 10],
|
|
xleftharpoonup: ['xArrow', 0x21BC, 10, 5],
|
|
xleftrightharpoons: ['xArrow', 0x21CB, 10, 10],
|
|
mathllap: ['MathLap', 'l', false],
|
|
mathrlap: ['MathLap', 'r', false],
|
|
mathclap: ['MathLap', 'c', false],
|
|
clap: ['MtLap', 'c'],
|
|
textllap: ['MtLap', 'l'],
|
|
textrlap: ['MtLap', 'r'],
|
|
textclap: ['MtLap', 'c'],
|
|
cramped: 'Cramped',
|
|
crampedllap: ['MathLap', 'l', true],
|
|
crampedrlap: ['MathLap', 'r', true],
|
|
crampedclap: ['MathLap', 'c', true],
|
|
crampedsubstack: ['Macro', '\\begin{crampedsubarray}{c}#1\\end{crampedsubarray}', 1],
|
|
mathmbox: 'MathMBox',
|
|
mathmakebox: 'MathMakeBox',
|
|
overbracket: 'UnderOverBracket',
|
|
underbracket: 'UnderOverBracket',
|
|
refeq: 'HandleRef',
|
|
MoveEqLeft: ['Macro', '\\hspace{#1em}&\\hspace{-#1em}', 1, '2'],
|
|
Aboxed: 'Aboxed',
|
|
ArrowBetweenLines: 'ArrowBetweenLines',
|
|
vdotswithin: 'VDotsWithin',
|
|
shortvdotswithin: 'ShortVDotsWithin',
|
|
MTFlushSpaceAbove: 'FlushSpaceAbove',
|
|
MTFlushSpaceBelow: 'FlushSpaceBelow',
|
|
DeclarePairedDelimiter: 'DeclarePairedDelimiter',
|
|
DeclarePairedDelimiterX: 'DeclarePairedDelimiterX',
|
|
DeclarePairedDelimiterXPP: 'DeclarePairedDelimiterXPP',
|
|
DeclarePairedDelimiters: 'DeclarePairedDelimiter',
|
|
DeclarePairedDelimitersX: 'DeclarePairedDelimiterX',
|
|
DeclarePairedDelimitersXPP: 'DeclarePairedDelimiterXPP',
|
|
centercolon: ['CenterColon', true, true],
|
|
ordinarycolon: ['CenterColon', false],
|
|
MTThinColon: ['CenterColon', true, true, true],
|
|
coloneqq: ['Relation', ':=', '\u2254'],
|
|
Coloneqq: ['Relation', '::=', '\u2A74'],
|
|
coloneq: ['Relation', ':-'],
|
|
Coloneq: ['Relation', '::-'],
|
|
eqqcolon: ['Relation', '=:', '\u2255'],
|
|
Eqqcolon: ['Relation', '=::'],
|
|
eqcolon: ['Relation', '-:', '\u2239'],
|
|
Eqcolon: ['Relation', '-::'],
|
|
colonapprox: ['Relation', ':\\approx'],
|
|
Colonapprox: ['Relation', '::\\approx'],
|
|
colonsim: ['Relation', ':\\sim'],
|
|
Colonsim: ['Relation', '::\\sim'],
|
|
dblcolon: ['Relation', '::', '\u2237'],
|
|
nuparrow: ['NArrow', '\u2191', '.06em'],
|
|
ndownarrow: ['NArrow', '\u2193', '.25em'],
|
|
bigtimes: ['Macro', '\\mathop{\\Large\\kern-.1em\\boldsymbol{\\times}\\kern-.1em}'],
|
|
splitfrac: ['SplitFrac', false],
|
|
splitdfrac: ['SplitFrac', true],
|
|
xmathstrut: 'XMathStrut',
|
|
prescript: 'Prescript',
|
|
newtagform: ['NewTagForm', false],
|
|
renewtagform: ['NewTagForm', true],
|
|
usetagform: 'UseTagForm',
|
|
adjustlimits: [
|
|
'MacroWithTemplate',
|
|
'\\mathop{{#1}\\vphantom{{#3}}}_{{#2}\\vphantom{{#4}}}\\mathop{{#3}\\vphantom{{#1}}}_{{#4}\\vphantom{{#2}}}',
|
|
4, , '_', , '_'
|
|
],
|
|
mathtoolsset: 'SetOptions'
|
|
}, MathtoolsMethods_js_1.MathtoolsMethods);
|
|
new SymbolMap_js_1.EnvironmentMap('mathtools-environments', ParseMethods_js_1.default.environment, {
|
|
dcases: ['Array', null, '\\{', '', 'll', null, '.2em', 'D'],
|
|
rcases: ['Array', null, '', '\\}', 'll', null, '.2em'],
|
|
drcases: ['Array', null, '', '\\}', 'll', null, '.2em', 'D'],
|
|
'dcases*': ['Cases', null, '{', '', 'D'],
|
|
'rcases*': ['Cases', null, '', '}'],
|
|
'drcases*': ['Cases', null, '', '}', 'D'],
|
|
'cases*': ['Cases', null, '{', ''],
|
|
'matrix*': ['MtMatrix', null, null, null],
|
|
'pmatrix*': ['MtMatrix', null, '(', ')'],
|
|
'bmatrix*': ['MtMatrix', null, '[', ']'],
|
|
'Bmatrix*': ['MtMatrix', null, '\\{', '\\}'],
|
|
'vmatrix*': ['MtMatrix', null, '\\vert', '\\vert'],
|
|
'Vmatrix*': ['MtMatrix', null, '\\Vert', '\\Vert'],
|
|
'smallmatrix*': ['MtSmallMatrix', null, null, null],
|
|
psmallmatrix: ['MtSmallMatrix', null, '(', ')', 'c'],
|
|
'psmallmatrix*': ['MtSmallMatrix', null, '(', ')'],
|
|
bsmallmatrix: ['MtSmallMatrix', null, '[', ']', 'c'],
|
|
'bsmallmatrix*': ['MtSmallMatrix', null, '[', ']'],
|
|
Bsmallmatrix: ['MtSmallMatrix', null, '\\{', '\\}', 'c'],
|
|
'Bsmallmatrix*': ['MtSmallMatrix', null, '\\{', '\\}'],
|
|
vsmallmatrix: ['MtSmallMatrix', null, '\\vert', '\\vert', 'c'],
|
|
'vsmallmatrix*': ['MtSmallMatrix', null, '\\vert', '\\vert'],
|
|
Vsmallmatrix: ['MtSmallMatrix', null, '\\Vert', '\\Vert', 'c'],
|
|
'Vsmallmatrix*': ['MtSmallMatrix', null, '\\Vert', '\\Vert'],
|
|
crampedsubarray: ['Array', null, null, null, null, '0em', '0.1em', 'S\'', 1],
|
|
multlined: 'MtMultlined',
|
|
spreadlines: ['SpreadLines', true],
|
|
lgathered: ['AmsEqnArray', null, null, null, 'l', null, '.5em', 'D'],
|
|
rgathered: ['AmsEqnArray', null, null, null, 'r', null, '.5em', 'D'],
|
|
}, MathtoolsMethods_js_1.MathtoolsMethods);
|
|
new SymbolMap_js_1.DelimiterMap('mathtools-delimiters', ParseMethods_js_1.default.delimiter, {
|
|
'\\lparen': '(',
|
|
'\\rparen': ')'
|
|
});
|
|
new SymbolMap_js_1.CommandMap('mathtools-characters', {
|
|
':': ['CenterColon', true]
|
|
}, MathtoolsMethods_js_1.MathtoolsMethods);
|
|
//# sourceMappingURL=MathtoolsMappings.js.map
|