12345678910111213 |
- /*
- * /MathJax/extensions/TeX/boldsymbol.js
- *
- * Copyright (c) 2009-2013 The MathJax Consortium
- *
- * 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.Extension["TeX/boldsymbol"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var a=MathJax.ElementJax.mml,c=MathJax.InputJax.TeX,b=c.Definitions,d={};d[a.VARIANT.NORMAL]=a.VARIANT.BOLD;d[a.VARIANT.ITALIC]=a.VARIANT.BOLDITALIC;d[a.VARIANT.FRAKTUR]=a.VARIANT.BOLDFRAKTUR;d[a.VARIANT.SCRIPT]=a.VARIANT.BOLDSCRIPT;d[a.VARIANT.SANSSERIF]=a.VARIANT.BOLDSANSSERIF;d["-tex-caligraphic"]="-tex-caligraphic-bold";d["-tex-oldstyle"]="-tex-oldstyle-bold";b.Add({macros:{boldsymbol:"Boldsymbol"}},null,!0);c.Parse.Augment({mmlToken:function(b){if(this.stack.env.boldsymbol){var c=b.Get("mathvariant");b.mathvariant=null==c?a.VARIANT.BOLD:d[c]||c}return b},Boldsymbol:function(a){var b=this.stack.env.boldsymbol,c=this.stack.env.font;this.stack.env.boldsymbol=!0;this.stack.env.font=null;a=this.ParseArg(a);this.stack.env.font=c;this.stack.env.boldsymbol=b;this.Push(a)}});MathJax.Hub.Startup.signal.Post("TeX boldsymbol Ready")});MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var a=MathJax.OutputJax["HTML-CSS"],c=a.FONTDATA.FONTS,b=a.FONTDATA.VARIANT;"TeX"===a.fontInUse?(c["MathJax_Caligraphic-bold"]="Caligraphic/Bold/Main.js",b["-tex-caligraphic-bold"]={fonts:["MathJax_Caligraphic-bold","MathJax_Main-bold","MathJax_Main","MathJax_Math","MathJax_Size1"],offsetA:65,variantA:"bold-italic"},b["-tex-oldstyle-bold"]={fonts:["MathJax_Caligraphic-bold","MathJax_Main-bold","MathJax_Main","MathJax_Math","MathJax_Size1"]},a.msieCheckGreek&&a.Font.testFont({family:"MathJax_Greek",weight:"bold",style:"italic",testString:a.msieCheckGreek})&&(b["bold-italic"].offsetG=913,b["bold-italic"].variantG="-Greek-Bold-Italic",b["-Greek-Bold-Italic"]={fonts:["MathJax_Greek-bold-italic"]},c["MathJax_Greek-bold-italic"]="Greek/BoldItalic/Main.js"),MathJax.Hub.Browser.isChrome&&!MathJax.Hub.Browser.versionAtLeast("5.0")&&(b["-tex-caligraphic-bold"].remap={84:[58096,"-WinChrome"]})):"STIX"===a.fontInUse&&(b["-tex-caligraphic-bold"]={fonts:["STIXGeneral-bold-italic","STIXNonUnicode-bold-italic","STIXNonUnicode","STIXGeneral","STIXSizeOneSym"],offsetA:57927,noLowerCase:1},b["-tex-oldstyle-bold"]={fonts:["STIXGeneral-bold","STIXNonUnicode-bold","STIXGeneral","STIXSizeOneSym"],offsetN:57955,remap:{57956:57959,57957:57963,57958:57967,57959:57971,57960:57975,57961:57979,57962:57983,57963:57987,57964:57991}})});MathJax.Hub.Register.StartupHook("SVG Jax Ready",function(){var a=MathJax.OutputJax.SVG,c=a.FONTDATA.VARIANT;a.FONTDATA.FONTS["MathJax_Caligraphic-bold"]="Caligraphic/Bold/Main.js";c["-tex-caligraphic-bold"]={fonts:["MathJax_Caligraphic-bold","MathJax_Main-bold","MathJax_Main","MathJax_Math","MathJax_Size1"],offsetA:65,variantA:"bold-italic"};c["-tex-oldstyle-bold"]={fonts:["MathJax_Caligraphic-bold","MathJax_Main-bold","MathJax_Main","MathJax_Math","MathJax_Size1"]}});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/boldsymbol.js");
|