MathtoolsMappings.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. var ParseMethods_js_1 = __importDefault(require("../ParseMethods.js"));
  7. var SymbolMap_js_1 = require("../SymbolMap.js");
  8. var TexConstants_js_1 = require("../TexConstants.js");
  9. var MathtoolsMethods_js_1 = require("./MathtoolsMethods.js");
  10. new SymbolMap_js_1.CommandMap('mathtools-macros', {
  11. shoveleft: ['HandleShove', TexConstants_js_1.TexConstant.Align.LEFT],
  12. shoveright: ['HandleShove', TexConstants_js_1.TexConstant.Align.RIGHT],
  13. xleftrightarrow: ['xArrow', 0x2194, 10, 10],
  14. xLeftarrow: ['xArrow', 0x21D0, 12, 7],
  15. xRightarrow: ['xArrow', 0x21D2, 7, 12],
  16. xLeftrightarrow: ['xArrow', 0x21D4, 12, 12],
  17. xhookleftarrow: ['xArrow', 0x21A9, 10, 5],
  18. xhookrightarrow: ['xArrow', 0x21AA, 5, 10],
  19. xmapsto: ['xArrow', 0x21A6, 10, 10],
  20. xrightharpoondown: ['xArrow', 0x21C1, 5, 10],
  21. xleftharpoondown: ['xArrow', 0x21BD, 10, 5],
  22. xrightleftharpoons: ['xArrow', 0x21CC, 10, 10],
  23. xrightharpoonup: ['xArrow', 0x21C0, 5, 10],
  24. xleftharpoonup: ['xArrow', 0x21BC, 10, 5],
  25. xleftrightharpoons: ['xArrow', 0x21CB, 10, 10],
  26. mathllap: ['MathLap', 'l', false],
  27. mathrlap: ['MathLap', 'r', false],
  28. mathclap: ['MathLap', 'c', false],
  29. clap: ['MtLap', 'c'],
  30. textllap: ['MtLap', 'l'],
  31. textrlap: ['MtLap', 'r'],
  32. textclap: ['MtLap', 'c'],
  33. cramped: 'Cramped',
  34. crampedllap: ['MathLap', 'l', true],
  35. crampedrlap: ['MathLap', 'r', true],
  36. crampedclap: ['MathLap', 'c', true],
  37. crampedsubstack: ['Macro', '\\begin{crampedsubarray}{c}#1\\end{crampedsubarray}', 1],
  38. mathmbox: 'MathMBox',
  39. mathmakebox: 'MathMakeBox',
  40. overbracket: 'UnderOverBracket',
  41. underbracket: 'UnderOverBracket',
  42. refeq: 'HandleRef',
  43. MoveEqLeft: ['Macro', '\\hspace{#1em}&\\hspace{-#1em}', 1, '2'],
  44. Aboxed: 'Aboxed',
  45. ArrowBetweenLines: 'ArrowBetweenLines',
  46. vdotswithin: 'VDotsWithin',
  47. shortvdotswithin: 'ShortVDotsWithin',
  48. MTFlushSpaceAbove: 'FlushSpaceAbove',
  49. MTFlushSpaceBelow: 'FlushSpaceBelow',
  50. DeclarePairedDelimiter: 'DeclarePairedDelimiter',
  51. DeclarePairedDelimiterX: 'DeclarePairedDelimiterX',
  52. DeclarePairedDelimiterXPP: 'DeclarePairedDelimiterXPP',
  53. DeclarePairedDelimiters: 'DeclarePairedDelimiter',
  54. DeclarePairedDelimitersX: 'DeclarePairedDelimiterX',
  55. DeclarePairedDelimitersXPP: 'DeclarePairedDelimiterXPP',
  56. centercolon: ['CenterColon', true, true],
  57. ordinarycolon: ['CenterColon', false],
  58. MTThinColon: ['CenterColon', true, true, true],
  59. coloneqq: ['Relation', ':=', '\u2254'],
  60. Coloneqq: ['Relation', '::=', '\u2A74'],
  61. coloneq: ['Relation', ':-'],
  62. Coloneq: ['Relation', '::-'],
  63. eqqcolon: ['Relation', '=:', '\u2255'],
  64. Eqqcolon: ['Relation', '=::'],
  65. eqcolon: ['Relation', '-:', '\u2239'],
  66. Eqcolon: ['Relation', '-::'],
  67. colonapprox: ['Relation', ':\\approx'],
  68. Colonapprox: ['Relation', '::\\approx'],
  69. colonsim: ['Relation', ':\\sim'],
  70. Colonsim: ['Relation', '::\\sim'],
  71. dblcolon: ['Relation', '::', '\u2237'],
  72. nuparrow: ['NArrow', '\u2191', '.06em'],
  73. ndownarrow: ['NArrow', '\u2193', '.25em'],
  74. bigtimes: ['Macro', '\\mathop{\\Large\\kern-.1em\\boldsymbol{\\times}\\kern-.1em}'],
  75. splitfrac: ['SplitFrac', false],
  76. splitdfrac: ['SplitFrac', true],
  77. xmathstrut: 'XMathStrut',
  78. prescript: 'Prescript',
  79. newtagform: ['NewTagForm', false],
  80. renewtagform: ['NewTagForm', true],
  81. usetagform: 'UseTagForm',
  82. adjustlimits: [
  83. 'MacroWithTemplate',
  84. '\\mathop{{#1}\\vphantom{{#3}}}_{{#2}\\vphantom{{#4}}}\\mathop{{#3}\\vphantom{{#1}}}_{{#4}\\vphantom{{#2}}}',
  85. 4, , '_', , '_'
  86. ],
  87. mathtoolsset: 'SetOptions'
  88. }, MathtoolsMethods_js_1.MathtoolsMethods);
  89. new SymbolMap_js_1.EnvironmentMap('mathtools-environments', ParseMethods_js_1.default.environment, {
  90. dcases: ['Array', null, '\\{', '', 'll', null, '.2em', 'D'],
  91. rcases: ['Array', null, '', '\\}', 'll', null, '.2em'],
  92. drcases: ['Array', null, '', '\\}', 'll', null, '.2em', 'D'],
  93. 'dcases*': ['Cases', null, '{', '', 'D'],
  94. 'rcases*': ['Cases', null, '', '}'],
  95. 'drcases*': ['Cases', null, '', '}', 'D'],
  96. 'cases*': ['Cases', null, '{', ''],
  97. 'matrix*': ['MtMatrix', null, null, null],
  98. 'pmatrix*': ['MtMatrix', null, '(', ')'],
  99. 'bmatrix*': ['MtMatrix', null, '[', ']'],
  100. 'Bmatrix*': ['MtMatrix', null, '\\{', '\\}'],
  101. 'vmatrix*': ['MtMatrix', null, '\\vert', '\\vert'],
  102. 'Vmatrix*': ['MtMatrix', null, '\\Vert', '\\Vert'],
  103. 'smallmatrix*': ['MtSmallMatrix', null, null, null],
  104. psmallmatrix: ['MtSmallMatrix', null, '(', ')', 'c'],
  105. 'psmallmatrix*': ['MtSmallMatrix', null, '(', ')'],
  106. bsmallmatrix: ['MtSmallMatrix', null, '[', ']', 'c'],
  107. 'bsmallmatrix*': ['MtSmallMatrix', null, '[', ']'],
  108. Bsmallmatrix: ['MtSmallMatrix', null, '\\{', '\\}', 'c'],
  109. 'Bsmallmatrix*': ['MtSmallMatrix', null, '\\{', '\\}'],
  110. vsmallmatrix: ['MtSmallMatrix', null, '\\vert', '\\vert', 'c'],
  111. 'vsmallmatrix*': ['MtSmallMatrix', null, '\\vert', '\\vert'],
  112. Vsmallmatrix: ['MtSmallMatrix', null, '\\Vert', '\\Vert', 'c'],
  113. 'Vsmallmatrix*': ['MtSmallMatrix', null, '\\Vert', '\\Vert'],
  114. crampedsubarray: ['Array', null, null, null, null, '0em', '0.1em', 'S\'', 1],
  115. multlined: 'MtMultlined',
  116. spreadlines: ['SpreadLines', true],
  117. lgathered: ['AmsEqnArray', null, null, null, 'l', null, '.5em', 'D'],
  118. rgathered: ['AmsEqnArray', null, null, null, 'r', null, '.5em', 'D'],
  119. }, MathtoolsMethods_js_1.MathtoolsMethods);
  120. new SymbolMap_js_1.DelimiterMap('mathtools-delimiters', ParseMethods_js_1.default.delimiter, {
  121. '\\lparen': '(',
  122. '\\rparen': ')'
  123. });
  124. new SymbolMap_js_1.CommandMap('mathtools-characters', {
  125. ':': ['CenterColon', true]
  126. }, MathtoolsMethods_js_1.MathtoolsMethods);
  127. //# sourceMappingURL=MathtoolsMappings.js.map