instiki/public/MathJax/extensions/TeX/AMSmath.js

19 lines
7.8 KiB
JavaScript
Raw Normal View History

/*
* ../SourceForge/trunk/mathjax/extensions/TeX/AMSmath.js
*
* Copyright (c) 2010 Design Science, Inc.
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
MathJax.Unpack([
['MathJax.','Hub.','Register.StartupHook("TeX Jax Ready",','function(){var ','e="1.0";var a=',0,'ElementJax.mml;var f=',0,'InputJax.TeX;var c=','f.Definitions',';var d=f.Stack.Item;var b=','function(','g){','return ','g.join("em ")+"em"};',0,1,'Insert(c,{macros:{mathring:["Accent","2DA"],nobreakspace:"Tilde",negmedspace',':["Spacer",a.LENGTH.','NEGATIVEMEDIUMMATHSPACE],negthickspace',18,'NEGATIVETHICKMATHSPACE],intI',':["Macro","\\\\','mathchoice{\\\\!}{}{}{}\\\\!\\\\!\\\\int"],iiiint',':["MultiIntegral","\\\\int\\\\','intI\\\\intI\\\\intI"],idotsint',24,'cdots\\\\int"],dddot',':["Macro","\\\\mathop','{#1}\\\\limits^{\\\\textstyle \\\\mathord{.}\\\\mathord{.}\\\\mathord','{.}}",1],ddddot',28,29,'{.}\\\\mathord{.}}",1],sideset',28,'{\\\\mathop{\\\\rlap{\\\\phantom{#3}}}\\\\nolimits#1\\\\!\\\\mathop{#3}\\\\nolimits#2}",3],boxed',22,'fbox{$\\\\','displaystyle','{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",substack',22,'begin{subarray}{c}#1\\\\end{subarray}",1],injlim',28,'{\\\\rm inj\\\\,lim}"],projlim',28,'{\\\\rm proj\\\\,lim}"],varliminf',28,'{\\\\underline','{\\\\rm lim}}"],','varlimsup',28,'{\\\\overline',48,'varinjlim',28,'{\\\\underrightarrow','{\\\\rm lim\\\\Rule{-1pt}{0pt}{1pt}}\\\\Rule{0pt}{0pt}{.45em}}"],','varprojlim',28,'{\\\\underleftarrow',56,'DeclareMathOperator:"','HandleDeclareOp','",operatorname:"','HandleOperatorName','",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac',':["Genfrac","","","",','1],dfrac',66,'0],binom',':["Genfrac","(",")","0em','",""],tbinom',70,'",1],dbinom',70,'",0],cfrac:"CFrac",shoveleft',':["HandleShove",a.ALIGN.','LEFT],shoveright',76,'RIGHT],xrightarrow:["xArrow",8594,5,6],xleftarrow:["xArrow",8592,7,3]},environment:{align:["','AMSarray",null,','true,true',',"rlrlrlrlrlrl",b([5/18,2,5/18,2,5/18,2,5/18,2,5/18,2,5/18','])],"align','*":["',80,'false,true',82,'])],','multline',':["','Multline",null,','true],"',89,84,91,'false],split:["',80,'false,false',',"rl",b([5/18])],gather:["',80,81,',"c"],"gather',84,80,86,',"c"],alignat:["','AlignAt",null,',81,'],"alignat',84,107,86,'],alignedat:["',107,98,'],aligned',':["Array",null,null,null',82,']),".5em","D"],gathered',117,',"c",null,".5em","D"],subarray',117,',null,b([0,0,0,0]),"0.1em","S",1],smallmatrix',117,',"c",b([1/3]),".2em","S",1]},delimiter:{"\\\\lvert":["2223",{','texClass:a.TEXCLASS.','OPEN}],"\\\\','rvert":["2223",{',126,'CLOSE}],"\\\\lVert":["2225",{',126,127,'rVert":["2225",{',126,'CLOSE}]}});f.Parse.Augment({HandleTag:',11,'h){var g','=this.trimSpaces(this.GetArgument(','h));if(','g==="*"){g','=this.GetArgument','(h)}else{g="("+g+")"}if(','this.stack.global.','notag','){f.Error(h+" ','not allowed in "+',143,'notag+" environment")}if(',143,'tag','){f.Error("','Multiple "+h)}',143,'tag=a.mtd','.apply(a,this.','InternalMath(g))},HandleNoTag:',11,'g){if(',143,'tag){delete ',143,'tag}},',62,':',11,137,'="";var i',138,139,'i=="*"){g="\\\\limits";i',138,'h))}if(i.charAt(0)=="\\\\"){i=i.substr(1)}var j',141,'(h);j=j','.replace(/\\*/g,"\\\\text{*}").replace(/-/g,"\\\\text{-}");',9,'.macros[i]=["Macro","\\\\mathop{\\\\rm "+j+"}"+g]},',64,':',11,137,'="\\\\nolimits";var i',138,139,'i=="*"){g="\\\\limits";i',138,'h))}i=i',175,'this.string="\\\\mathop{\\\\rm "+i+"}"+g','+" "+this.string.slice(this.i);this.i=0},','HandleShove:',11,'h,g){var i=this.stack.Top();if(i.type!=="',89,'"||i.data','.length',145,'must come at the beginning of the line")}i.data.shove=g},CFrac:',11,'j){var g=this.trimSpaces(','this.GetBrackets(','j)),i',141,'(j),k',141,'(j);var h=a.mfrac(','f.Parse("\\\\strut\\\\textstyle{"+','i+"}",','this.stack.env).mml','(),',207,'k+"}",',209,'());g=({l:a.ALIGN.LEFT,r:a.ALIGN.RIGHT,"":""})[g];if(g==null',151,'Illegal alignment specified in "+j)}if(g){h.numalign=h.denomalign=g}','this.Push(','h)},Genfrac:',11,'h,j,o,l,g){if(j==null){j','=this.GetDelimiterArg(h)}else{','j=','this.convertDelimiter(','j)}if(o==null){o',221,'o=',223,'o)}if(l==null){l',141,'(h)}if(g==null){g',138,'h))}var k','=this.ParseArg(','h);var n',233,'h);var i=a.mfrac(k,n);if(l!==""){i.linethickness=l}if(j||o){i=a.mfenced(i).With({open:j,close:o})}if(g!==
]);