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 • 2.15 kB
JavaScript
(()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{CenternotConfiguration:()=>h,filterCenterOver:()=>f});const n=("undefined"!=typeof window?window:e.g).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),o=(n.MathJax,MathJax._.input.tex.HandlerTypes),r=o.ConfigurationType,i=(o.HandlerType,MathJax._.input.tex.Configuration),c=i.Configuration,d=(i.ConfigurationHandler,i.ParserConfiguration,MathJax._.input.tex.TexParser.default),p=MathJax._.input.tex.NodeUtil.default,s=MathJax._.input.tex.TokenMap,l=(s.parseResult,s.AbstractTokenMap,s.RegExpMap,s.AbstractParseMap,s.CharacterMap,s.DelimiterMap,s.MacroMap,s.CommandMap),u=(s.EnvironmentMap,MathJax._.input.tex.base.BaseMethods);u.splitAlignArray;function f({data:e}){for(const t of e.getList("centerOver")){const e=p.getTexClass(t.childNodes[0].childNodes[0]);null!==e&&p.setProperties(t.parent.parent.parent.parent.parent.parent,{texClass:e})}}new l("centernot",{centerOver:function(e,t){const n="{"+e.GetArgument(t)+"}",a=e.ParseArg(t),o=new d(n,e.stack.env,e.configuration).mml(),r=e.create("node","TeXAtom",[new d(n,e.stack.env,e.configuration).mml(),e.create("node","mpadded",[e.create("node","mpadded",[a],{width:0,lspace:"-.5width"}),e.create("node","mphantom",[o])],{width:0,lspace:"-.5width"})]);e.configuration.addNode("centerOver",o),e.Push(r)},centernot:[u.default.Macro,"\\centerOver{#1}{{\u29f8}}",1]});const h=c.create("centernot",{[r.HANDLER]:{macro:["centernot"]},[r.POSTPROCESSORS]:[f]});MathJax.loader&&MathJax.loader.checkVersion("[tex]/centernot","4.1.0","tex-extension"),a({_:{input:{tex:{centernot:{CenternotConfiguration:t}}}}})})();