UNPKG

mathjax

Version:

Beautiful and accessible math in all browsers. MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all browsers. This package includes the packaged components (install mathjax-full to get the source

1 lines 7.4 kB
(()=>{"use strict";var b={d:(t,a)=>{for(var o in a)b.o(a,o)&&!b.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})}};b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(b){if("object"==typeof window)return window}}(),b.o=(b,t)=>Object.prototype.hasOwnProperty.call(b,t),b.r=b=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})};var t={};b.r(t),b.d(t,{BboldxMethods:()=>u});var a={};b.r(a),b.d(a,{BboldxConfiguration:()=>M});const o=("undefined"!=typeof window?window:b.g).MathJax._.components.global,e=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults),x=o.combineWithMathJax,i=(o.MathJax,MathJax._.input.tex.HandlerTypes),l=i.ConfigurationType,n=i.HandlerType,r=MathJax._.input.tex.Configuration,d=r.Configuration,f=(r.ConfigurationHandler,r.ParserConfiguration,MathJax._.input.tex.TokenMap),m=(f.parseResult,f.AbstractTokenMap,f.RegExpMap,f.AbstractParseMap,f.CharacterMap),s=(f.DelimiterMap,f.MacroMap,f.CommandMap),h=(f.EnvironmentMap,MathJax._.input.tex.textmacros.TextMacrosMethods.TextMacrosMethods),c=MathJax._.input.tex.base.BaseMethods,p=(c.splitAlignArray,c.default),u={Macro:p.Macro,ChooseFont:function(b,t,a,o,e){const x=g(b,a,o,e);p.MathFont(b,t,x)},ChooseTextFont:function(b,t,a,o,e){const x=g(b,a,o,e);h.TextFont(b,t,x)},mathchar0miNormal:function(b,t){const a=g(b,"-bboldx","-bboldx-light","-bboldx-bold"),o=b.create("token","mi",{mathvariant:a},t.char);b.Push(o)},delimiterNormal:function(b,t){const a={stretchy:!1,mathvariant:g(b,"-bboldx","-bboldx-light","-bboldx-bold")},o=b.create("token","mo",a,t.char);b.Push(o)},mathchar0miBold:function(b,t){const a=g(b,"-bboldx-bold","-bboldx","-bboldx-bold"),o=b.create("token","mi",{mathvariant:a},t.char);b.Push(o)},delimiterBold:function(b,t){const a={stretchy:!1,mathvariant:g(b,"-bboldx-bold","-bboldx","-bboldx-bold")},o=b.create("token","mo",a,t.char);b.Push(o)}};function g(b,t,a,o){const e=b.options.bboldx;return e.bfbb?o:e.light?a:t}new m("bboldx-mathchar0miNormal",u.mathchar0miNormal,{bbGamma:"\u0393",bbDelta:"\u2206",bbTheta:"\u0398",bbLambda:"\u039b",bbXi:"\u039e",bbPi:"\u03a0",bbSigma:"\u03a3",bbUpsilon:"\u03a5",bbPhi:"\u03a6",bbPsi:"\u03a8",bbOmega:"\u2126",bbalpha:"\u03b1",bbbeta:"\u03b2",bbgamma:"\u03b3",bbdelta:"\u03b4",bbepsilon:"\u03b5",bbzeta:"\u03b6",bbeta:"\u03b7",bbtheta:"\u03b8",bbiota:"\u03b9",bbkappa:"\u03ba",bblambda:"\u03bb",bbmu:"\xb5",bbnu:"\u03bd",bbxi:"\u03be",bbpi:"\u03c0",bbrho:"\u03c1",bbsigma:"\u03c3",bbtau:"\u03c4",bbupsilon:"\u03c5",bbphi:"\u03c6",bbchi:"\u03c7",bbpsi:"\u03c8",bbomega:"\u03c9",bbdotlessi:"\u0131",bbdotlessj:"\u0237"}),new m("bboldx-delimiterNormal",u.delimiterNormal,{bbLparen:"(",bbRparen:")",bbLbrack:"[",bbRbrack:"]",bbLangle:"\u2329",bbRangle:"\u232a"}),new m("bboldx-mathchar0miBold",u.mathchar0miBold,{bfbbGamma:"\u0393",bfbbDelta:"\u2206",bfbbTheta:"\u0398",bfbbLambda:"\u039b",bfbbXi:"\u039e",bfbbPi:"\u03a0",bfbbSigma:"\u03a3",bfbbUpsilon:"\u03a5",bfbbPhi:"\u03a6",bfbbPsi:"\u03a8",bfbbOmega:"\u2126",bfbbalpha:"\u03b1",bfbbbeta:"\u03b2",bfbbgamma:"\u03b3",bfbbdelta:"\u03b4",bfbbepsilon:"\u03b5",bfbbzeta:"\u03b6",bfbbeta:"\u03b7",bfbbtheta:"\u03b8",bfbbiota:"\u03b9",bfbbkappa:"\u03ba",bfbblambda:"\u03bfBB",bfbbmu:"\xb5",bfbbnu:"\u03bd",bfbbxi:"\u03be",bfbbpi:"\u03c0",bfbbrho:"\u03c1",bfbbsigma:"\u03c3",bfbbtau:"\u03c4",bfbbupsilon:"\u03c5",bfbbphi:"\u03c6",bfbbchi:"\u03c7",bfbbpsi:"\u03c8",bfbbomega:"\u03c9",bfbbdotlessi:"\u0131",bfbbdotlessj:"\u0237"}),new m("bboldx-delimiterBold",u.delimiterBold,{bfbbLparen:"(",bfbbRparen:")",bfbbLbrack:"[",bfbbRbrack:"]",bfbbLangle:"\u2329",bfbbRangle:"\u232a"}),new s("bboldx",{mathbb:[u.ChooseFont,"-bboldx","-bboldx-light","-bboldx-bold"],mathbfbb:[u.ChooseFont,"-bboldx-bold","-bboldx","-bboldx-bold"],imathbb:[u.Macro,"\\bbdotlessi"],jmathbb:[u.Macro,"\\bbdotlessj"],imathbfbb:[u.Macro,"\\bfbbdotlessi"],jmathbfbb:[u.Macro,"\\bfbbdotlessj"]}),new m("text-bboldx-mathchar0miNormal",u.mathchar0miNormal,{txtbbGamma:"\u0393",txtbbDelta:"\u2206",txtbbTheta:"\u0398",txtbbLambda:"\u039b",txtbbXi:"\u039e",txtbbPi:"\u03a0",txtbbSigma:"\u03a3",txtbbUpsilon:"\u03a5",txtbbPhi:"\u03a6",txtbbPsi:"\u03a8",txtbbOmega:"\u2126",txtbbalpha:"\u03b1",txtbbbeta:"\u03b2",txtbbgamma:"\u03b3",txtbbdelta:"\u03b4",txtbbepsilon:"\u03b5",txtbbzeta:"\u03b6",txtbbeta:"\u03b7",txtbbtheta:"\u03b8",txtbbiota:"\u03b9",txtbbkappa:"\u03ba",txtbblambda:"\u03bb",txtbbmu:"\xb5",txtbbnu:"\u03bd",txtbbxi:"\u03be",txtbbpi:"\u03c0",txtbbrho:"\u03c1",txtbbsigma:"\u03c3",txtbbtau:"\u03c4",txtbbupsilon:"\u03c5",txtbbphi:"\u03c6",txtbbchi:"\u03c7",txtbbpsi:"\u03c8",txtbbomega:"\u03c9",txtbbdotlessi:"\u0131",txtbbdotlessj:"\u0237"}),new m("text-bboldx-delimiterNormal",u.delimiterNormal,{txtbbLparen:"(",txtbbRparen:")",txtbbLbrack:"[",txtbbRbrack:"]",txtbbLangle:"\u2329",txtbbRangle:"\u232a"}),new m("text-bboldx-mathchar0miBold",u.mathchar0miBold,{txtbfbbGamma:"\u0393",txtbfbbDelta:"\u2206",txtbfbbTheta:"\u0398",txtbfbbLambda:"\u039b",txtbfbbXi:"\u039e",txtbfbbPi:"\u03a0",txtbfbbSigma:"\u03a3",txtbfbbUpsilon:"\u03a5",txtbfbbPhi:"\u03a6",txtbfbbPsi:"\u03a8",txtbfbbOmega:"\u2126",txtbfbbalpha:"\u03b1",txtbfbbbeta:"\u03b2",txtbfbbgamma:"\u03b3",txtbfbbdelta:"\u03b4",txtbfbbepsilon:"\u03b5",txtbfbbzeta:"\u03b6",txtbfbbeta:"\u03b7",txtbfbbtheta:"\u03b8",txtbfbbiota:"\u03b9",txtbfbbkappa:"\u03ba",txtbfbblambda:"\u03bb",txtbfbbmu:"\xb5",txtbfbbnu:"\u03bd",txtbfbbxi:"\u03be",txtbfbbpi:"\u03c0",txtbfbbrho:"\u03c1",txtbfbbsigma:"\u03c3",txtbfbbtau:"\u03c4",txtbfbbupsilon:"\u03c5",txtbfbbphi:"\u03c6",txtbfbbchi:"\u03c7",txtbfbbpsi:"\u03c8",txtbfbbomega:"\u03c9",txtbfbbdotlessi:"\u0131",txtbfbbdotlessj:"\u0237"}),new m("text-bboldx-delimiterBold",u.delimiterBold,{txtbfbbLparen:"(",txtbfbbRparen:")",txtbfbbLbrack:"[",txtbfbbRbrack:"]",txtbfbbLangle:"\u2329",txtbfbbRangle:"\u232a"}),new s("text-bboldx",{textbb:[u.ChooseTextFont,"-bboldx","-bboldx-light","-bboldx-bold"],textbfbb:[u.ChooseTextFont,"-bboldx-bold","-bboldx","-bboldx-bold"],itextbb:[u.Macro,"\\txtbbdotlessi"],jtextbb:[u.Macro,"\\txtbbdotlessj"],itextbfbb:[u.Macro,"\\txtbfbbdotlessi"],jtextbfbb:[u.Macro,"\\txtbfbbdotlessj"]}),d.create("text-bboldx",{parser:"text",handler:{macro:["text-bboldx","text-bboldx-mathchar0miNormal","text-bboldx-delimiterNormal","text-bboldx-mathchar0miBold","text-bboldx-delimiterBold"]}});const M=d.create("bboldx",{[l.HANDLER]:{[n.MACRO]:["bboldx","bboldx-mathchar0miNormal","bboldx-delimiterNormal","bboldx-mathchar0miBold","bboldx-delimiterBold"]},[l.OPTIONS]:{bboldx:{bfbb:!1,light:!1}},config(b,t){const a=t.parseOptions.packageData.get("textmacros");a&&(a.parseOptions.options.textmacros.packages.push("text-bboldx"),a.textConf.add("text-bboldx",t,{}))},priority:3});MathJax.loader&&MathJax.loader.checkVersion("[tex]/bboldx","4.1.0","tex-extension"),x({_:{input:{tex:{bboldx:{BboldxConfiguration:a,BboldxMethods:t}}}}}),function(b,t,a=`[fonts]/${t}`){if(MathJax.loader){const o=t.replace(/-font-extension$/,"-extension"),x=MathJax.config?.startup?.output||"chtml";e(MathJax.config.loader,"paths",{[o]:a}),MathJax._.output?.[x]||e(MathJax.config.loader,"dependencies",{[`[${o}]/${x}`]:[`output/${x}`]}),MathJax.loader.addPackageData(b,{extraLoads:[`[${o}]/${x}`],rendererExtensions:[o]})}}("[tex]/bboldx","mathjax-bboldx-font-extension")})();