@@ -47,93 +47,93 @@ new sm.RegExpMap('AMSmath-operatorLetter', AmsMethods.operatorLetter, /[-*]/i);
4747 * Macros from the AMS Math package.
4848 */
4949new sm . CommandMap ( 'AMSmath-macros' , {
50- mathring : [ ' Accent' , '02DA' ] , // or 0x30A
51- nobreakspace : ' Tilde' ,
52- negmedspace : [ ' Spacer' , MATHSPACE . negativemediummathspace ] ,
53- negthickspace : [ ' Spacer' , MATHSPACE . negativethickmathspace ] ,
50+ mathring : [ AmsMethods . Accent , '02DA' ] , // or 0x30A
51+ nobreakspace : AmsMethods . Tilde ,
52+ negmedspace : [ AmsMethods . Spacer , MATHSPACE . negativemediummathspace ] ,
53+ negthickspace : [ AmsMethods . Spacer , MATHSPACE . negativethickmathspace ] ,
5454
55- idotsint : [ ' MultiIntegral' , '\\int\\cdots\\int' ] ,
55+ idotsint : [ AmsMethods . MultiIntegral , '\\int\\cdots\\int' ] ,
5656
57- dddot : [ ' Accent' , '20DB' ] ,
58- ddddot : [ ' Accent' , '20DC' ] ,
57+ dddot : [ AmsMethods . Accent , '20DB' ] ,
58+ ddddot : [ AmsMethods . Accent , '20DC' ] ,
5959
60- sideset : ' SideSet' ,
60+ sideset : AmsMethods . SideSet ,
6161
62- boxed : [ ' Macro' , '\\fbox{$\\displaystyle{#1}$}' , 1 ] ,
62+ boxed : [ AmsMethods . Macro , '\\fbox{$\\displaystyle{#1}$}' , 1 ] ,
6363
64- tag : ' HandleTag' ,
65- notag : ' HandleNoTag' ,
66- eqref : [ ' HandleRef' , true ] ,
64+ tag : AmsMethods . HandleTag ,
65+ notag : AmsMethods . HandleNoTag ,
66+ eqref : [ AmsMethods . HandleRef , true ] ,
6767
68- substack : [ ' Macro' , '\\begin{subarray}{c}#1\\end{subarray}' , 1 ] ,
68+ substack : [ AmsMethods . Macro , '\\begin{subarray}{c}#1\\end{subarray}' , 1 ] ,
6969
70- injlim : [ ' NamedOp' , 'inj lim' ] ,
71- projlim : [ ' NamedOp' , 'proj lim' ] ,
72- varliminf : [ ' Macro' , '\\mathop{\\underline{\\mmlToken{mi}{lim}}}' ] ,
73- varlimsup : [ ' Macro' , '\\mathop{\\overline{\\mmlToken{mi}{lim}}}' ] ,
74- varinjlim : [ ' Macro' , '\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}' ] ,
75- varprojlim : [ ' Macro' , '\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}' ] ,
70+ injlim : [ AmsMethods . NamedOp , 'inj lim' ] ,
71+ projlim : [ AmsMethods . NamedOp , 'proj lim' ] ,
72+ varliminf : [ AmsMethods . Macro , '\\mathop{\\underline{\\mmlToken{mi}{lim}}}' ] ,
73+ varlimsup : [ AmsMethods . Macro , '\\mathop{\\overline{\\mmlToken{mi}{lim}}}' ] ,
74+ varinjlim : [ AmsMethods . Macro , '\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}' ] ,
75+ varprojlim : [ AmsMethods . Macro , '\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}' ] ,
7676
77- DeclareMathOperator : ' HandleDeclareOp' ,
78- operatorname : ' HandleOperatorName' ,
77+ DeclareMathOperator : AmsMethods . HandleDeclareOp ,
78+ operatorname : AmsMethods . HandleOperatorName ,
7979
80- genfrac : ' Genfrac' ,
81- frac : [ ' Genfrac' , '' , '' , '' , '' ] ,
82- tfrac : [ ' Genfrac' , '' , '' , '' , '1' ] ,
83- dfrac : [ ' Genfrac' , '' , '' , '' , '0' ] ,
84- binom : [ ' Genfrac' , '(' , ')' , '0' , '' ] ,
85- tbinom : [ ' Genfrac' , '(' , ')' , '0' , '1' ] ,
86- dbinom : [ ' Genfrac' , '(' , ')' , '0' , '0' ] ,
80+ genfrac : AmsMethods . Genfrac ,
81+ frac : [ AmsMethods . Genfrac , '' , '' , '' , '' ] ,
82+ tfrac : [ AmsMethods . Genfrac , '' , '' , '' , '1' ] ,
83+ dfrac : [ AmsMethods . Genfrac , '' , '' , '' , '0' ] ,
84+ binom : [ AmsMethods . Genfrac , '(' , ')' , '0' , '' ] ,
85+ tbinom : [ AmsMethods . Genfrac , '(' , ')' , '0' , '1' ] ,
86+ dbinom : [ AmsMethods . Genfrac , '(' , ')' , '0' , '0' ] ,
8787
88- cfrac : ' CFrac' ,
88+ cfrac : AmsMethods . CFrac ,
8989
90- shoveleft : [ ' HandleShove' , TexConstant . Align . LEFT ] ,
91- shoveright : [ ' HandleShove' , TexConstant . Align . RIGHT ] ,
90+ shoveleft : [ AmsMethods . HandleShove , TexConstant . Align . LEFT ] ,
91+ shoveright : [ AmsMethods . HandleShove , TexConstant . Align . RIGHT ] ,
9292
93- xrightarrow : [ ' xArrow' , 0x2192 , 5 , 10 ] ,
94- xleftarrow : [ ' xArrow' , 0x2190 , 10 , 5 ]
95- } , AmsMethods ) ;
93+ xrightarrow : [ AmsMethods . xArrow , 0x2192 , 5 , 10 ] ,
94+ xleftarrow : [ AmsMethods . xArrow , 0x2190 , 10 , 5 ]
95+ } ) ;
9696
9797
9898/**
9999 * Environments from the AMS Math package.
100100 */
101101new sm . EnvironmentMap ( 'AMSmath-environment' , ParseMethods . environment , {
102- 'equation*' : [ ' Equation' , null , false ] ,
103- 'eqnarray*' : [ ' EqnArray' , null , false , true , 'rcl' , 'bmt' ,
102+ 'equation*' : [ AmsMethods . Equation , null , false ] ,
103+ 'eqnarray*' : [ AmsMethods . EqnArray , null , false , true , 'rcl' , 'bmt' ,
104104 ParseUtil . cols ( 0 , MATHSPACE . thickmathspace ) , '.5em' ] ,
105- align : [ ' EqnArray' , null , true , true , 'rl' , 'bt' , ParseUtil . cols ( 0 , 2 ) ] ,
106- 'align*' : [ ' EqnArray' , null , false , true , 'rl' , 'bt' , ParseUtil . cols ( 0 , 2 ) ] ,
107- multline : [ ' Multline' , null , true ] ,
108- 'multline*' : [ ' Multline' , null , false ] ,
109- split : [ ' EqnArray' , null , false , false , 'rl' , 'bt' , ParseUtil . cols ( 0 ) ] ,
110- gather : [ ' EqnArray' , null , true , true , 'c' , 'm' ] ,
111- 'gather*' : [ ' EqnArray' , null , false , true , 'c' , 'm' ] ,
112-
113- alignat : [ ' AlignAt' , null , true , true ] ,
114- 'alignat*' : [ ' AlignAt' , null , false , true ] ,
115- alignedat : [ ' AlignAt' , null , false , false ] ,
116-
117- aligned : [ ' AmsEqnArray' , null , null , null , 'rl' , 'bt' , ParseUtil . cols ( 0 , 2 ) , '.5em' , 'D' ] ,
118- gathered : [ ' AmsEqnArray' , null , null , null , 'c' , 'm' , null , '.5em' , 'D' ] ,
119-
120- xalignat : [ ' XalignAt' , null , true , true ] ,
121- 'xalignat*' : [ ' XalignAt' , null , false , true ] ,
122- xxalignat : [ ' XalignAt' , null , false , false ] ,
123- flalign : [ ' FlalignArray' , null , true , false , true , 'rlc' , 'btm' , 'auto auto fit' ] ,
124- 'flalign*' : [ ' FlalignArray' , null , false , false , true , 'rlc' , 'btm' , 'auto auto fit' ] ,
125-
126- subarray : [ ' Array' , null , null , null , null , ParseUtil . cols ( 0 ) , '0.1em' , 'S' , 1 ] ,
127- smallmatrix : [ ' Array' , null , null , null , 'c' , ParseUtil . cols ( 1 / 3 ) ,
105+ align : [ AmsMethods . EqnArray , null , true , true , 'rl' , 'bt' , ParseUtil . cols ( 0 , 2 ) ] ,
106+ 'align*' : [ AmsMethods . EqnArray , null , false , true , 'rl' , 'bt' , ParseUtil . cols ( 0 , 2 ) ] ,
107+ multline : [ AmsMethods . Multline , null , true ] ,
108+ 'multline*' : [ AmsMethods . Multline , null , false ] ,
109+ split : [ AmsMethods . EqnArray , null , false , false , 'rl' , 'bt' , ParseUtil . cols ( 0 ) ] ,
110+ gather : [ AmsMethods . EqnArray , null , true , true , 'c' , 'm' ] ,
111+ 'gather*' : [ AmsMethods . EqnArray , null , false , true , 'c' , 'm' ] ,
112+
113+ alignat : [ AmsMethods . AlignAt , null , true , true ] ,
114+ 'alignat*' : [ AmsMethods . AlignAt , null , false , true ] ,
115+ alignedat : [ AmsMethods . AlignAt , null , false , false ] ,
116+
117+ aligned : [ AmsMethods . AmsEqnArray , null , null , null , 'rl' , 'bt' , ParseUtil . cols ( 0 , 2 ) , '.5em' , 'D' ] ,
118+ gathered : [ AmsMethods . AmsEqnArray , null , null , null , 'c' , 'm' , null , '.5em' , 'D' ] ,
119+
120+ xalignat : [ AmsMethods . XalignAt , null , true , true ] ,
121+ 'xalignat*' : [ AmsMethods . XalignAt , null , false , true ] ,
122+ xxalignat : [ AmsMethods . XalignAt , null , false , false ] ,
123+ flalign : [ AmsMethods . FlalignArray , null , true , false , true , 'rlc' , 'btm' , 'auto auto fit' ] ,
124+ 'flalign*' : [ AmsMethods . FlalignArray , null , false , false , true , 'rlc' , 'btm' , 'auto auto fit' ] ,
125+
126+ subarray : [ AmsMethods . Array , null , null , null , null , ParseUtil . cols ( 0 ) , '0.1em' , 'S' , 1 ] ,
127+ smallmatrix : [ AmsMethods . Array , null , null , null , 'c' , ParseUtil . cols ( 1 / 3 ) ,
128128 '.2em' , 'S' , 1 ] ,
129- matrix : [ ' Array' , null , null , null , 'c' ] ,
130- pmatrix : [ ' Array' , null , '(' , ')' , 'c' ] ,
131- bmatrix : [ ' Array' , null , '[' , ']' , 'c' ] ,
132- Bmatrix : [ ' Array' , null , '\\{' , '\\}' , 'c' ] ,
133- vmatrix : [ ' Array' , null , '\\vert' , '\\vert' , 'c' ] ,
134- Vmatrix : [ ' Array' , null , '\\Vert' , '\\Vert' , 'c' ] ,
135- cases : [ ' Array' , null , '\\{' , '.' , 'll' , null , '.2em' , 'T' ]
136- } , AmsMethods ) ;
129+ matrix : [ AmsMethods . Array , null , null , null , 'c' ] ,
130+ pmatrix : [ AmsMethods . Array , null , '(' , ')' , 'c' ] ,
131+ bmatrix : [ AmsMethods . Array , null , '[' , ']' , 'c' ] ,
132+ Bmatrix : [ AmsMethods . Array , null , '\\{' , '\\}' , 'c' ] ,
133+ vmatrix : [ AmsMethods . Array , null , '\\vert' , '\\vert' , 'c' ] ,
134+ Vmatrix : [ AmsMethods . Array , null , '\\Vert' , '\\Vert' , 'c' ] ,
135+ cases : [ AmsMethods . Array , null , '\\{' , '.' , 'll' , null , '.2em' , 'T' ]
136+ } ) ;
137137
138138
139139/**
@@ -437,6 +437,6 @@ new sm.DelimiterMap('AMSsymbols-delimiter', ParseMethods.delimiter, {
437437 * Macros from the AMS Symbols package.
438438 */
439439new sm . CommandMap ( 'AMSsymbols-macros' , {
440- implies : [ ' Macro' , '\\;\\Longrightarrow\\;' ] ,
441- impliedby : [ ' Macro' , '\\;\\Longleftarrow\\;' ]
442- } , AmsMethods ) ;
440+ implies : [ AmsMethods . Macro , '\\;\\Longrightarrow\\;' ] ,
441+ impliedby : [ AmsMethods . Macro , '\\;\\Longleftarrow\\;' ]
442+ } ) ;
0 commit comments