├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── feature_request.md │ └── mathjax-source-problem.md ├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── components ├── bin │ ├── build │ ├── copy │ ├── makeAll │ ├── pack │ └── version ├── src │ ├── a11y │ │ ├── assistive-mml │ │ │ ├── assistive-mml.js │ │ │ ├── build.json │ │ │ └── webpack.config.js │ │ ├── complexity │ │ │ ├── build.json │ │ │ ├── complexity.js │ │ │ └── webpack.config.js │ │ ├── explorer │ │ │ ├── build.json │ │ │ ├── explorer.js │ │ │ └── webpack.config.js │ │ ├── semantic-enrich │ │ │ ├── build.json │ │ │ ├── semantic-enrich.js │ │ │ └── webpack.config.js │ │ └── sre │ │ │ ├── build.json │ │ │ ├── sre.js │ │ │ ├── sre_config.js │ │ │ └── webpack.config.js │ ├── adaptors │ │ └── liteDOM │ │ │ ├── build.json │ │ │ ├── liteDOM.js │ │ │ └── webpack.config.js │ ├── core │ │ ├── build.json │ │ ├── core.js │ │ └── webpack.config.js │ ├── dependencies.js │ ├── input │ │ ├── asciimath │ │ │ ├── asciimath.js │ │ │ ├── build.json │ │ │ └── webpack.config.js │ │ ├── mml │ │ │ ├── build.json │ │ │ ├── entities │ │ │ │ ├── entities.js │ │ │ │ └── webpack.config.js │ │ │ ├── extensions │ │ │ │ └── mml3 │ │ │ │ │ ├── build.json │ │ │ │ │ ├── copy.json │ │ │ │ │ ├── mml3.js │ │ │ │ │ └── webpack.config.js │ │ │ ├── mml.js │ │ │ └── webpack.config.js │ │ ├── tex-base │ │ │ ├── build.json │ │ │ ├── tex-base.js │ │ │ └── webpack.config.js │ │ ├── tex-full │ │ │ ├── build.json │ │ │ ├── tex-full.js │ │ │ └── webpack.config.js │ │ └── tex │ │ │ ├── build.json │ │ │ ├── extensions │ │ │ ├── action │ │ │ │ ├── action.js │ │ │ │ ├── build.json │ │ │ │ └── webpack.config.js │ │ │ ├── all-packages │ │ │ │ ├── all-packages.js │ │ │ │ ├── build.json │ │ │ │ └── webpack.config.js │ │ │ ├── ams │ │ │ │ ├── ams.js │ │ │ │ ├── build.json │ │ │ │ └── webpack.config.js │ │ │ ├── amscd │ │ │ │ ├── amscd.js │ │ │ │ ├── build.json │ │ │ │ └── webpack.config.js │ │ │ ├── autoload │ │ │ │ ├── autoload.js │ │ │ │ ├── build.json │ │ │ │ └── webpack.config.js │ │ │ ├── bbox │ │ │ │ ├── bbox.js │ │ │ │ ├── build.json │ │ │ │ └── webpack.config.js │ │ │ ├── boldsymbol │ │ │ │ ├── boldsymbol.js │ │ │ │ ├── build.json │ │ │ │ └── webpack.config.js │ │ │ ├── braket │ │ │ │ ├── braket.js │ │ │ │ ├── build.json │ │ │ │ └── webpack.config.js │ │ │ ├── bussproofs │ │ │ │ ├── build.json │ │ │ │ ├── bussproofs.js │ │ │ │ └── webpack.config.js │ │ │ ├── cancel │ │ │ │ ├── build.json │ │ │ │ ├── cancel.js │ │ │ │ └── webpack.config.js │ │ │ ├── cases │ │ │ │ ├── build.json │ │ │ │ ├── cases.js │ │ │ │ └── webpack.config.js │ │ │ ├── centernot │ │ │ │ ├── build.json │ │ │ │ ├── centernot.js │ │ │ │ └── webpack.config.js │ │ │ ├── color │ │ │ │ ├── build.json │ │ │ │ ├── color.js │ │ │ │ └── webpack.config.js │ │ │ ├── colortbl │ │ │ │ ├── build.json │ │ │ │ ├── colortbl.js │ │ │ │ └── webpack.config.js │ │ │ ├── colorv2 │ │ │ │ ├── build.json │ │ │ │ ├── colorv2.js │ │ │ │ └── webpack.config.js │ │ │ ├── configmacros │ │ │ │ ├── build.json │ │ │ │ ├── configmacros.js │ │ │ │ └── webpack.config.js │ │ │ ├── empheq │ │ │ │ ├── build.json │ │ │ │ ├── empheq.js │ │ │ │ └── webpack.config.js │ │ │ ├── enclose │ │ │ │ ├── build.json │ │ │ │ ├── enclose.js │ │ │ │ └── webpack.config.js │ │ │ ├── extpfeil │ │ │ │ ├── build.json │ │ │ │ ├── extpfeil.js │ │ │ │ └── webpack.config.js │ │ │ ├── gensymb │ │ │ │ ├── build.json │ │ │ │ ├── gensymb.js │ │ │ │ └── webpack.config.js │ │ │ ├── html │ │ │ │ ├── build.json │ │ │ │ ├── html.js │ │ │ │ └── webpack.config.js │ │ │ ├── mathtools │ │ │ │ ├── build.json │ │ │ │ ├── mathtools.js │ │ │ │ └── webpack.config.js │ │ │ ├── mhchem │ │ │ │ ├── build.json │ │ │ │ ├── mhchem.js │ │ │ │ └── webpack.config.js │ │ │ ├── newcommand │ │ │ │ ├── build.json │ │ │ │ ├── newcommand.js │ │ │ │ └── webpack.config.js │ │ │ ├── noerrors │ │ │ │ ├── build.json │ │ │ │ ├── noerrors.js │ │ │ │ └── webpack.config.js │ │ │ ├── noundefined │ │ │ │ ├── build.json │ │ │ │ ├── noundefined.js │ │ │ │ └── webpack.config.js │ │ │ ├── physics │ │ │ │ ├── build.json │ │ │ │ ├── physics.js │ │ │ │ └── webpack.config.js │ │ │ ├── require │ │ │ │ ├── build.json │ │ │ │ ├── require.js │ │ │ │ └── webpack.config.js │ │ │ ├── setoptions │ │ │ │ ├── build.json │ │ │ │ ├── setoptions.js │ │ │ │ └── webpack.config.js │ │ │ ├── tagformat │ │ │ │ ├── build.json │ │ │ │ ├── tagformat.js │ │ │ │ └── webpack.config.js │ │ │ ├── textcomp │ │ │ │ ├── build.json │ │ │ │ ├── textcomp.js │ │ │ │ └── webpack.config.js │ │ │ ├── textmacros │ │ │ │ ├── build.json │ │ │ │ ├── textmacros.js │ │ │ │ └── webpack.config.js │ │ │ ├── unicode │ │ │ │ ├── build.json │ │ │ │ ├── unicode.js │ │ │ │ └── webpack.config.js │ │ │ ├── upgreek │ │ │ │ ├── build.json │ │ │ │ ├── upgreek.js │ │ │ │ └── webpack.config.js │ │ │ └── verb │ │ │ │ ├── build.json │ │ │ │ ├── verb.js │ │ │ │ └── webpack.config.js │ │ │ ├── register.js │ │ │ ├── tex.js │ │ │ └── webpack.config.js │ ├── latest │ │ ├── latest.js │ │ └── webpack.config.js │ ├── loader │ │ ├── build.json │ │ ├── loader.js │ │ └── webpack.config.js │ ├── mml-chtml │ │ ├── mml-chtml.js │ │ ├── preload.js │ │ └── webpack.config.js │ ├── mml-svg │ │ ├── mml-svg.js │ │ ├── preload.js │ │ └── webpack.config.js │ ├── node-main │ │ ├── node-main.js │ │ └── webpack.config.js │ ├── output │ │ ├── chtml │ │ │ ├── build.json │ │ │ ├── chtml.js │ │ │ ├── fonts │ │ │ │ └── tex │ │ │ │ │ ├── build.json │ │ │ │ │ ├── copy.json │ │ │ │ │ ├── tex.js │ │ │ │ │ └── webpack.config.js │ │ │ ├── nofont.js │ │ │ └── webpack.config.js │ │ └── svg │ │ │ ├── build.json │ │ │ ├── fonts │ │ │ └── tex │ │ │ │ ├── build.json │ │ │ │ ├── tex.js │ │ │ │ └── webpack.config.js │ │ │ ├── nofont.js │ │ │ ├── svg.js │ │ │ └── webpack.config.js │ ├── source.js │ ├── sre │ │ └── copy.json │ ├── startup │ │ ├── build.json │ │ ├── init.js │ │ ├── startup.js │ │ └── webpack.config.js │ ├── tex-chtml-full-speech │ │ ├── preload.js │ │ ├── tex-chtml-full-speech.js │ │ └── webpack.config.js │ ├── tex-chtml-full │ │ ├── preload.js │ │ ├── tex-chtml-full.js │ │ └── webpack.config.js │ ├── tex-chtml │ │ ├── preload.js │ │ ├── tex-chtml.js │ │ └── webpack.config.js │ ├── tex-mml-chtml │ │ ├── preload.js │ │ ├── tex-mml-chtml.js │ │ └── webpack.config.js │ ├── tex-mml-svg │ │ ├── preload.js │ │ ├── tex-mml-svg.js │ │ └── webpack.config.js │ ├── tex-svg-full │ │ ├── preload.js │ │ ├── tex-svg-full.js │ │ └── webpack.config.js │ ├── tex-svg │ │ ├── preload.js │ │ ├── tex-svg.js │ │ └── webpack.config.js │ └── ui │ │ ├── lazy │ │ ├── build.json │ │ ├── lazy.js │ │ └── webpack.config.js │ │ ├── menu │ │ ├── build.json │ │ ├── menu.js │ │ └── webpack.config.js │ │ └── safe │ │ ├── build.json │ │ ├── safe.js │ │ └── webpack.config.js └── webpack.common.js ├── package-lock.json ├── package.json ├── ts ├── a11y │ ├── assistive-mml.ts │ ├── complexity.ts │ ├── complexity │ │ ├── collapse.ts │ │ └── visitor.ts │ ├── explorer.ts │ ├── explorer │ │ ├── Explorer.ts │ │ ├── KeyExplorer.ts │ │ ├── MouseExplorer.ts │ │ ├── Region.ts │ │ └── TreeExplorer.ts │ ├── mathmaps.ts │ ├── semantic-enrich.ts │ └── sre.ts ├── adaptors │ ├── HTMLAdaptor.ts │ ├── NodeMixin.ts │ ├── browserAdaptor.ts │ ├── chooseAdaptor.ts │ ├── jsdomAdaptor.ts │ ├── linkedomAdaptor.ts │ ├── lite │ │ ├── Document.ts │ │ ├── Element.ts │ │ ├── List.ts │ │ ├── Parser.ts │ │ ├── Text.ts │ │ └── Window.ts │ └── liteAdaptor.ts ├── components │ ├── global.ts │ ├── latest.ts │ ├── loader.ts │ ├── package.ts │ ├── startup.ts │ └── version.ts ├── core │ ├── DOMAdaptor.ts │ ├── FindMath.ts │ ├── Handler.ts │ ├── HandlerList.ts │ ├── InputJax.ts │ ├── MathDocument.ts │ ├── MathItem.ts │ ├── MathList.ts │ ├── MmlTree │ │ ├── Attributes.ts │ │ ├── JsonMmlVisitor.ts │ │ ├── LegacyMmlVisitor.ts │ │ ├── MML.ts │ │ ├── MathMLVisitor.ts │ │ ├── MmlFactory.ts │ │ ├── MmlNode.ts │ │ ├── MmlNodes │ │ │ ├── TeXAtom.ts │ │ │ ├── maction.ts │ │ │ ├── maligngroup.ts │ │ │ ├── malignmark.ts │ │ │ ├── math.ts │ │ │ ├── mathchoice.ts │ │ │ ├── menclose.ts │ │ │ ├── merror.ts │ │ │ ├── mfenced.ts │ │ │ ├── mfrac.ts │ │ │ ├── mglyph.ts │ │ │ ├── mi.ts │ │ │ ├── mmultiscripts.ts │ │ │ ├── mn.ts │ │ │ ├── mo.ts │ │ │ ├── mpadded.ts │ │ │ ├── mphantom.ts │ │ │ ├── mroot.ts │ │ │ ├── mrow.ts │ │ │ ├── ms.ts │ │ │ ├── mspace.ts │ │ │ ├── msqrt.ts │ │ │ ├── mstyle.ts │ │ │ ├── msubsup.ts │ │ │ ├── mtable.ts │ │ │ ├── mtd.ts │ │ │ ├── mtext.ts │ │ │ ├── mtr.ts │ │ │ ├── munderover.ts │ │ │ └── semantics.ts │ │ ├── MmlVisitor.ts │ │ ├── OperatorDictionary.ts │ │ ├── SerializedMmlVisitor.ts │ │ └── TestMmlVisitor.ts │ ├── OutputJax.ts │ └── Tree │ │ ├── Factory.ts │ │ ├── Node.ts │ │ ├── NodeFactory.ts │ │ ├── Visitor.ts │ │ ├── Wrapper.ts │ │ └── WrapperFactory.ts ├── handlers │ ├── html.ts │ └── html │ │ ├── HTMLDocument.ts │ │ ├── HTMLDomStrings.ts │ │ ├── HTMLHandler.ts │ │ ├── HTMLMathItem.ts │ │ └── HTMLMathList.ts ├── input │ ├── asciimath.ts │ ├── asciimath │ │ ├── FindAsciiMath.ts │ │ └── mathjax2 │ │ │ ├── input │ │ │ ├── AsciiMath.d.ts │ │ │ └── AsciiMath.js │ │ │ └── legacy │ │ │ ├── MathJax.js │ │ │ └── jax │ │ │ ├── element │ │ │ ├── JSON.js │ │ │ ├── MmlNode.js │ │ │ └── mml │ │ │ │ ├── jax.js │ │ │ │ └── optable │ │ │ │ ├── Arrows.js │ │ │ │ ├── BasicLatin.js │ │ │ │ ├── CombDiacritMarks.js │ │ │ │ ├── CombDiactForSymbols.js │ │ │ │ ├── Dingbats.js │ │ │ │ ├── GeneralPunctuation.js │ │ │ │ ├── GeometricShapes.js │ │ │ │ ├── GreekAndCoptic.js │ │ │ │ ├── Latin1Supplement.js │ │ │ │ ├── LetterlikeSymbols.js │ │ │ │ ├── MathOperators.js │ │ │ │ ├── MiscMathSymbolsA.js │ │ │ │ ├── MiscMathSymbolsB.js │ │ │ │ ├── MiscSymbolsAndArrows.js │ │ │ │ ├── MiscTechnical.js │ │ │ │ ├── SpacingModLetters.js │ │ │ │ ├── SuppMathOperators.js │ │ │ │ ├── SupplementalArrowsA.js │ │ │ │ └── SupplementalArrowsB.js │ │ │ └── input │ │ │ └── AsciiMath │ │ │ ├── config.js │ │ │ └── jax.js │ ├── mathml.ts │ ├── mathml │ │ ├── FindMathML.ts │ │ ├── MathMLCompile.ts │ │ └── mml3 │ │ │ ├── mml3-node.ts │ │ │ ├── mml3.sef.json │ │ │ └── mml3.ts │ ├── tex.ts │ └── tex │ │ ├── AllPackages.ts │ │ ├── Configuration.ts │ │ ├── FilterUtil.ts │ │ ├── FindTeX.ts │ │ ├── MapHandler.ts │ │ ├── NodeFactory.ts │ │ ├── NodeUtil.ts │ │ ├── ParseMethods.ts │ │ ├── ParseOptions.ts │ │ ├── ParseUtil.ts │ │ ├── Stack.ts │ │ ├── StackItem.ts │ │ ├── StackItemFactory.ts │ │ ├── Symbol.ts │ │ ├── SymbolMap.ts │ │ ├── Tags.ts │ │ ├── TexConstants.ts │ │ ├── TexError.ts │ │ ├── TexParser.ts │ │ ├── Types.ts │ │ ├── action │ │ └── ActionConfiguration.ts │ │ ├── ams │ │ ├── AmsConfiguration.ts │ │ ├── AmsItems.ts │ │ ├── AmsMappings.ts │ │ └── AmsMethods.ts │ │ ├── amscd │ │ ├── AmsCdConfiguration.ts │ │ ├── AmsCdMappings.ts │ │ └── AmsCdMethods.ts │ │ ├── autoload │ │ └── AutoloadConfiguration.ts │ │ ├── base │ │ ├── BaseConfiguration.ts │ │ ├── BaseItems.ts │ │ ├── BaseMappings.ts │ │ └── BaseMethods.ts │ │ ├── bbox │ │ └── BboxConfiguration.ts │ │ ├── boldsymbol │ │ └── BoldsymbolConfiguration.ts │ │ ├── braket │ │ ├── BraketConfiguration.ts │ │ ├── BraketItems.ts │ │ ├── BraketMappings.ts │ │ └── BraketMethods.ts │ │ ├── bussproofs │ │ ├── BussproofsConfiguration.ts │ │ ├── BussproofsItems.ts │ │ ├── BussproofsMappings.ts │ │ ├── BussproofsMethods.ts │ │ └── BussproofsUtil.ts │ │ ├── cancel │ │ └── CancelConfiguration.ts │ │ ├── cases │ │ └── CasesConfiguration.ts │ │ ├── centernot │ │ └── CenternotConfiguration.ts │ │ ├── color │ │ ├── ColorConfiguration.ts │ │ ├── ColorConstants.ts │ │ ├── ColorMethods.ts │ │ └── ColorUtil.ts │ │ ├── colortbl │ │ └── ColortblConfiguration.ts │ │ ├── colorv2 │ │ └── ColorV2Configuration.ts │ │ ├── configmacros │ │ └── ConfigMacrosConfiguration.ts │ │ ├── empheq │ │ ├── EmpheqConfiguration.ts │ │ └── EmpheqUtil.ts │ │ ├── enclose │ │ └── EncloseConfiguration.ts │ │ ├── extpfeil │ │ └── ExtpfeilConfiguration.ts │ │ ├── gensymb │ │ └── GensymbConfiguration.ts │ │ ├── html │ │ ├── HtmlConfiguration.ts │ │ └── HtmlMethods.ts │ │ ├── mathtools │ │ ├── MathtoolsConfiguration.ts │ │ ├── MathtoolsItems.ts │ │ ├── MathtoolsMappings.ts │ │ ├── MathtoolsMethods.ts │ │ ├── MathtoolsTags.ts │ │ └── MathtoolsUtil.ts │ │ ├── mhchem │ │ └── MhchemConfiguration.ts │ │ ├── newcommand │ │ ├── NewcommandConfiguration.ts │ │ ├── NewcommandItems.ts │ │ ├── NewcommandMappings.ts │ │ ├── NewcommandMethods.ts │ │ └── NewcommandUtil.ts │ │ ├── noerrors │ │ └── NoErrorsConfiguration.ts │ │ ├── noundefined │ │ └── NoUndefinedConfiguration.ts │ │ ├── physics │ │ ├── PhysicsConfiguration.ts │ │ ├── PhysicsItems.ts │ │ ├── PhysicsMappings.ts │ │ └── PhysicsMethods.ts │ │ ├── require │ │ └── RequireConfiguration.ts │ │ ├── setoptions │ │ └── SetOptionsConfiguration.ts │ │ ├── tagformat │ │ └── TagFormatConfiguration.ts │ │ ├── textcomp │ │ ├── TextcompConfiguration.ts │ │ └── TextcompMappings.ts │ │ ├── textmacros │ │ ├── TextMacrosConfiguration.ts │ │ ├── TextMacrosMappings.ts │ │ ├── TextMacrosMethods.ts │ │ └── TextParser.ts │ │ ├── unicode │ │ └── UnicodeConfiguration.ts │ │ ├── upgreek │ │ └── UpgreekConfiguration.ts │ │ └── verb │ │ └── VerbConfiguration.ts ├── mathjax.ts ├── output │ ├── chtml.ts │ ├── chtml │ │ ├── FontData.ts │ │ ├── Notation.ts │ │ ├── Usage.ts │ │ ├── Wrapper.ts │ │ ├── WrapperFactory.ts │ │ ├── Wrappers.ts │ │ ├── Wrappers │ │ │ ├── TeXAtom.ts │ │ │ ├── TextNode.ts │ │ │ ├── maction.ts │ │ │ ├── math.ts │ │ │ ├── menclose.ts │ │ │ ├── mfenced.ts │ │ │ ├── mfrac.ts │ │ │ ├── mglyph.ts │ │ │ ├── mi.ts │ │ │ ├── mmultiscripts.ts │ │ │ ├── mn.ts │ │ │ ├── mo.ts │ │ │ ├── mpadded.ts │ │ │ ├── mroot.ts │ │ │ ├── mrow.ts │ │ │ ├── ms.ts │ │ │ ├── mspace.ts │ │ │ ├── msqrt.ts │ │ │ ├── msubsup.ts │ │ │ ├── mtable.ts │ │ │ ├── mtd.ts │ │ │ ├── mtext.ts │ │ │ ├── mtr.ts │ │ │ ├── munderover.ts │ │ │ ├── scriptbase.ts │ │ │ └── semantics.ts │ │ └── fonts │ │ │ ├── tex-woff-v2 │ │ │ ├── MathJax_AMS-Regular.woff │ │ │ ├── MathJax_Calligraphic-Bold.woff │ │ │ ├── MathJax_Calligraphic-Regular.woff │ │ │ ├── MathJax_Fraktur-Bold.woff │ │ │ ├── MathJax_Fraktur-Regular.woff │ │ │ ├── MathJax_Main-Bold.woff │ │ │ ├── MathJax_Main-Italic.woff │ │ │ ├── MathJax_Main-Regular.woff │ │ │ ├── MathJax_Math-BoldItalic.woff │ │ │ ├── MathJax_Math-Italic.woff │ │ │ ├── MathJax_Math-Regular.woff │ │ │ ├── MathJax_SansSerif-Bold.woff │ │ │ ├── MathJax_SansSerif-Italic.woff │ │ │ ├── MathJax_SansSerif-Regular.woff │ │ │ ├── MathJax_Script-Regular.woff │ │ │ ├── MathJax_Size1-Regular.woff │ │ │ ├── MathJax_Size2-Regular.woff │ │ │ ├── MathJax_Size3-Regular.woff │ │ │ ├── MathJax_Size4-Regular.woff │ │ │ ├── MathJax_Typewriter-Regular.woff │ │ │ ├── MathJax_Vector-Bold.woff │ │ │ ├── MathJax_Vector-Regular.woff │ │ │ └── MathJax_Zero.woff │ │ │ ├── tex.ts │ │ │ └── tex │ │ │ ├── bold-italic.ts │ │ │ ├── bold.ts │ │ │ ├── double-struck.ts │ │ │ ├── fraktur-bold.ts │ │ │ ├── fraktur.ts │ │ │ ├── italic.ts │ │ │ ├── largeop.ts │ │ │ ├── monospace.ts │ │ │ ├── normal.ts │ │ │ ├── sans-serif-bold-italic.ts │ │ │ ├── sans-serif-bold.ts │ │ │ ├── sans-serif-italic.ts │ │ │ ├── sans-serif.ts │ │ │ ├── script-bold.ts │ │ │ ├── script.ts │ │ │ ├── smallop.ts │ │ │ ├── tex-calligraphic-bold.ts │ │ │ ├── tex-calligraphic.ts │ │ │ ├── tex-mathit.ts │ │ │ ├── tex-oldstyle-bold.ts │ │ │ ├── tex-oldstyle.ts │ │ │ ├── tex-size3.ts │ │ │ ├── tex-size4.ts │ │ │ └── tex-variant.ts │ ├── common │ │ ├── FontData.ts │ │ ├── Notation.ts │ │ ├── OutputJax.ts │ │ ├── Wrapper.ts │ │ ├── WrapperFactory.ts │ │ ├── Wrappers │ │ │ ├── TeXAtom.ts │ │ │ ├── TextNode.ts │ │ │ ├── maction.ts │ │ │ ├── math.ts │ │ │ ├── menclose.ts │ │ │ ├── mfenced.ts │ │ │ ├── mfrac.ts │ │ │ ├── mglyph.ts │ │ │ ├── mi.ts │ │ │ ├── mmultiscripts.ts │ │ │ ├── mn.ts │ │ │ ├── mo.ts │ │ │ ├── mpadded.ts │ │ │ ├── mroot.ts │ │ │ ├── mrow.ts │ │ │ ├── ms.ts │ │ │ ├── mspace.ts │ │ │ ├── msqrt.ts │ │ │ ├── msubsup.ts │ │ │ ├── mtable.ts │ │ │ ├── mtd.ts │ │ │ ├── mtext.ts │ │ │ ├── mtr.ts │ │ │ ├── munderover.ts │ │ │ ├── scriptbase.ts │ │ │ └── semantics.ts │ │ └── fonts │ │ │ ├── tex.ts │ │ │ └── tex │ │ │ ├── bold-italic.ts │ │ │ ├── bold.ts │ │ │ ├── delimiters.ts │ │ │ ├── double-struck.ts │ │ │ ├── fraktur-bold.ts │ │ │ ├── fraktur.ts │ │ │ ├── italic.ts │ │ │ ├── largeop.ts │ │ │ ├── monospace.ts │ │ │ ├── normal.ts │ │ │ ├── sans-serif-bold-italic.ts │ │ │ ├── sans-serif-bold.ts │ │ │ ├── sans-serif-italic.ts │ │ │ ├── sans-serif.ts │ │ │ ├── script-bold.ts │ │ │ ├── script.ts │ │ │ ├── smallop.ts │ │ │ ├── tex-calligraphic-bold.ts │ │ │ ├── tex-calligraphic.ts │ │ │ ├── tex-mathit.ts │ │ │ ├── tex-oldstyle-bold.ts │ │ │ ├── tex-oldstyle.ts │ │ │ ├── tex-size3.ts │ │ │ ├── tex-size4.ts │ │ │ └── tex-variant.ts │ ├── svg.ts │ └── svg │ │ ├── FontCache.ts │ │ ├── FontData.ts │ │ ├── Notation.ts │ │ ├── Wrapper.ts │ │ ├── WrapperFactory.ts │ │ ├── Wrappers.ts │ │ ├── Wrappers │ │ ├── TeXAtom.ts │ │ ├── TextNode.ts │ │ ├── maction.ts │ │ ├── math.ts │ │ ├── menclose.ts │ │ ├── merror.ts │ │ ├── mfenced.ts │ │ ├── mfrac.ts │ │ ├── mglyph.ts │ │ ├── mi.ts │ │ ├── mmultiscripts.ts │ │ ├── mn.ts │ │ ├── mo.ts │ │ ├── mpadded.ts │ │ ├── mphantom.ts │ │ ├── mroot.ts │ │ ├── mrow.ts │ │ ├── ms.ts │ │ ├── mspace.ts │ │ ├── msqrt.ts │ │ ├── msubsup.ts │ │ ├── mtable.ts │ │ ├── mtd.ts │ │ ├── mtext.ts │ │ ├── mtr.ts │ │ ├── munderover.ts │ │ ├── scriptbase.ts │ │ └── semantics.ts │ │ └── fonts │ │ ├── tex.ts │ │ └── tex │ │ ├── bold-italic.ts │ │ ├── bold.ts │ │ ├── double-struck.ts │ │ ├── fraktur-bold.ts │ │ ├── fraktur.ts │ │ ├── italic.ts │ │ ├── largeop.ts │ │ ├── monospace.ts │ │ ├── normal.ts │ │ ├── sans-serif-bold-italic.ts │ │ ├── sans-serif-bold.ts │ │ ├── sans-serif-italic.ts │ │ ├── sans-serif.ts │ │ ├── script-bold.ts │ │ ├── script.ts │ │ ├── smallop.ts │ │ ├── tex-calligraphic-bold.ts │ │ ├── tex-calligraphic.ts │ │ ├── tex-mathit.ts │ │ ├── tex-oldstyle-bold.ts │ │ ├── tex-oldstyle.ts │ │ ├── tex-size3.ts │ │ ├── tex-size4.ts │ │ └── tex-variant.ts ├── ui │ ├── lazy │ │ └── LazyHandler.ts │ ├── menu │ │ ├── MJContextMenu.ts │ │ ├── Menu.ts │ │ ├── MenuHandler.ts │ │ ├── MmlVisitor.ts │ │ └── SelectableInfo.ts │ └── safe │ │ ├── SafeHandler.ts │ │ ├── SafeMethods.ts │ │ └── safe.ts └── util │ ├── AsyncLoad.ts │ ├── BBox.ts │ ├── BitField.ts │ ├── Entities.ts │ ├── FunctionList.ts │ ├── LinkedList.ts │ ├── Options.ts │ ├── PrioritizedList.ts │ ├── Retries.ts │ ├── StyleList.ts │ ├── Styles.ts │ ├── asyncLoad │ ├── node.ts │ ├── path.d.ts │ └── system.ts │ ├── entities │ ├── a.ts │ ├── all.ts │ ├── b.ts │ ├── c.ts │ ├── d.ts │ ├── e.ts │ ├── f.ts │ ├── fr.ts │ ├── g.ts │ ├── h.ts │ ├── i.ts │ ├── j.ts │ ├── k.ts │ ├── l.ts │ ├── m.ts │ ├── n.ts │ ├── o.ts │ ├── opf.ts │ ├── p.ts │ ├── q.ts │ ├── r.ts │ ├── s.ts │ ├── scr.ts │ ├── t.ts │ ├── u.ts │ ├── v.ts │ ├── w.ts │ ├── x.ts │ ├── y.ts │ └── z.ts │ ├── lengths.ts │ ├── numeric.ts │ └── string.ts ├── tsconfig.json └── tslint.json /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve MathJax 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | Please submit MathJax bug reports to 11 | 12 | https://github.com/mathjax/MathJax/issues 13 | 14 | unless they are about structural issues in this repository (e.g., the package.json file, the compilation process, the repository layout, etc). Bugs with how MathJax works should be reported at the link above. 15 | 16 | If you are not part of the MathJax team, it is unlikely that you should be posting an issue here. Use the tracker linked above instead. 17 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for MathJax 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | Please submit MathJax feature requests at 11 | 12 | https://github.com/mathjax/MathJax/issues 13 | 14 | unless they are about structural issues in this repository (e.g., the package.json file, the compilation process, the repository layout, etc). New features for MathJax should be requested at the link above. 15 | 16 | If you are not part of the MathJax team, it is unlikely that you should be posting an issue here. Use the tracker linked above instead. 17 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/mathjax-source-problem.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: MathJax Source Problem 3 | about: Suggest improvements to the source respository 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | This issue tracker is for problems with the source code repository (e.g., its structure, package file, compilation process, organization, etc.), not for problems with the MathJax code itself. If you are reporting a bug in how MathJax works, please use the [MathJax issue tracker](https://github.com/mathjax/MathJax/issues), rather than this one, so that all the issues are in one place for easier searching and sorting. 11 | 12 | If you are not part of the MathJax team, it is unlikely that you should be posting an issue here. Use the tracker linked above instead. 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | node_modules 3 | components/src/**/lib 4 | js 5 | es5 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | dist: focal 2 | language: node_js 3 | node_js: 4 | - stable 5 | sudo: false 6 | script: 7 | - components/bin/version 8 | - npm install 9 | - npm run compile 10 | - npm run make-components 11 | branches: 12 | only: 13 | - "/^\\d+\\.\\d+/" 14 | deploy: 15 | provider: npm 16 | email: manager@mathjax.org 17 | api_key: 18 | secure: iiJYaydsd6nypSMgjvQiTYIy+YF/oil5fqfVLmMkAQtykAqE5oS/HcJ6QxQa8DKHQCmNNhmUqMnD7H5jVhXGcbhEcx7dNxr7pXkrY2Vkyj8voYFIfZ05rwfaojQQPlPdrkwiLmAcUnz1v9gP20M6uVJrhVpBSe4bfHxSHbSUBjlRu4md8fXyA9cLJ3hu/QHV2ahjRDHL+axklCH8YFMW2bN7IRYALUaFeN6gZFWQvq6A4gT1zaFo0yTsej5z+PmyvDHYGzI1KfUioNa81KMWvSMIkRooJes2JrDFdo4HYXgYhZ/wb+7FLOJGeLLQejfQiVw+MS+7R+C6Ss/TcxddeBGg+x9+pZY4AvnVjuWfYW7WSh+iMZ1ujFE3xhqjVUI6WpowSfLK2lguY/8AZ1hKuWxnWw/UwCGcy6qOG0HMyE05mkl+VvPMITckkkeM/an4k7PeR+DY9L25Imp0jmpCyfk72KXMAEgVLAjnsy+l0EnZWK7oeYzDwEaw8HdOCmKKraRYFSetbqC+25g1iKc8ylTs1IxN7HXo0e0dTGSxwtU14L26GMHrC2pVsDdeR7+b5ll0C/6kevK794eQpzSEM50Addb1+fUJ3bn1y22H7OaglnJYxfuP44AYTENOn3fDJrIgcVG/yp273MImSYZiXL+xQBK8ZPEG5z36sH5/iAI= 19 | on: 20 | tags: true 21 | skip_cleanup: true 22 | -------------------------------------------------------------------------------- /components/src/a11y/assistive-mml/assistive-mml.js: -------------------------------------------------------------------------------- 1 | import './lib/assistive-mml.js'; 2 | 3 | import {AssistiveMmlHandler} from '../../../../js/a11y/assistive-mml.js'; 4 | 5 | if (MathJax.startup) { 6 | MathJax.startup.extendHandler(handler => AssistiveMmlHandler(handler)); 7 | } 8 | -------------------------------------------------------------------------------- /components/src/a11y/assistive-mml/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "a11y/assistive-mml", 3 | "targets": ["a11y/assistive-mml.ts"] 4 | } 5 | 6 | -------------------------------------------------------------------------------- /components/src/a11y/assistive-mml/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'a11y/assistive-mml', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/mml/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/a11y/complexity/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "a11y/complexity", 3 | "targets": [ 4 | "a11y/complexity.ts", 5 | "a11y/complexity", 6 | "a11y/semantic-enrich.ts" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /components/src/a11y/complexity/complexity.js: -------------------------------------------------------------------------------- 1 | import './lib/complexity.js'; 2 | 3 | import {combineDefaults} from '../../../../js/components/global.js'; 4 | import {ComplexityHandler} from '../../../../js/a11y/complexity.js'; 5 | 6 | if (MathJax.startup) { 7 | MathJax.startup.extendHandler(handler => ComplexityHandler(handler)); 8 | combineDefaults(MathJax.config, 'options', MathJax.config['a11y/complexity'] || {}); 9 | } 10 | -------------------------------------------------------------------------------- /components/src/a11y/complexity/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'a11y/complexity', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/a11y/semantic-enrich/lib', 8 | 'components/src/input/mml/lib', 9 | 'components/src/core/lib' 10 | ], 11 | __dirname // our directory 12 | ); 13 | -------------------------------------------------------------------------------- /components/src/a11y/explorer/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "a11y/explorer", 3 | "targets": ["a11y/explorer.ts", "a11y/explorer"] 4 | } 5 | -------------------------------------------------------------------------------- /components/src/a11y/explorer/explorer.js: -------------------------------------------------------------------------------- 1 | import './lib/explorer.js'; 2 | 3 | import {combineDefaults} from '../../../../js/components/global.js'; 4 | import {ExplorerHandler} from '../../../../js/a11y/explorer.js'; 5 | 6 | if (MathJax.startup) { 7 | MathJax.startup.extendHandler(handler => ExplorerHandler(handler)); 8 | } 9 | -------------------------------------------------------------------------------- /components/src/a11y/explorer/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'a11y/explorer', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/ui/menu/lib', 8 | 'components/src/a11y/semantic-enrich/lib', 9 | 'components/src/a11y/sre/lib', 10 | 'components/src/input/mml/lib', 11 | 'components/src/core/lib' 12 | ], 13 | __dirname // our directory 14 | ); 15 | -------------------------------------------------------------------------------- /components/src/a11y/semantic-enrich/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "a11y/semantic-enrich", 3 | "targets": ["a11y/semantic-enrich.ts"] 4 | } 5 | 6 | -------------------------------------------------------------------------------- /components/src/a11y/semantic-enrich/semantic-enrich.js: -------------------------------------------------------------------------------- 1 | import './lib/semantic-enrich.js'; 2 | 3 | import {combineDefaults} from '../../../../js/components/global.js'; 4 | import Sre from '../../../../js/a11y/sre.js'; 5 | import {EnrichHandler} from '../../../../js/a11y/semantic-enrich.js'; 6 | import {MathML} from '../../../../js/input/mathml.js'; 7 | 8 | if (MathJax.loader) { 9 | combineDefaults(MathJax.config.loader, 'a11y/semantic-enrich', {checkReady: () => Sre.sreReady()}); 10 | } 11 | 12 | if (MathJax.startup) { 13 | MathJax.startup.extendHandler(handler => EnrichHandler(handler, new MathML())); 14 | } 15 | -------------------------------------------------------------------------------- /components/src/a11y/semantic-enrich/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'a11y/semantic-enrich', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/mml/lib', 8 | 'components/src/core/lib', 9 | 'components/src/a11y/sre/lib' 10 | ], 11 | __dirname // our directory 12 | ); 13 | -------------------------------------------------------------------------------- /components/src/a11y/sre/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "a11y/sre", 3 | "targets": ["a11y/sre.ts"] 4 | } 5 | 6 | -------------------------------------------------------------------------------- /components/src/a11y/sre/sre.js: -------------------------------------------------------------------------------- 1 | import './lib/sre.js'; 2 | import './sre_config.js'; 3 | import Sre from '../../../../js/a11y/sre.js'; 4 | 5 | if (MathJax.startup) { 6 | ((typeof window !== 'undefined') ? window : global). 7 | SREfeature.custom = (loc) => Sre.preloadLocales(loc); 8 | } 9 | 10 | -------------------------------------------------------------------------------- /components/src/a11y/sre/sre_config.js: -------------------------------------------------------------------------------- 1 | import {combineDefaults} from '../../../../js/components/global.js'; 2 | import {Package} from '../../../../js/components/package.js'; 3 | 4 | // This sets up the correct link to the mathmaps files. 5 | if (MathJax.startup) { 6 | 7 | let path = Package.resolvePath('[sre]', false); 8 | 9 | if (typeof window !== 'undefined') { 10 | window.SREfeature = {json: path}; 11 | } else { 12 | // In Node get the absolute path to the mathmaps directory. 13 | try { 14 | path = MathJax.config.loader.require.resolve( 15 | path + '/base.json').replace(/\/base\.json$/, ''); 16 | } catch(_err) { } 17 | global.SREfeature = {json: path}; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /components/src/a11y/sre/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'a11y/sre', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/mml/lib', 8 | 'components/src/core/lib', 9 | 'components/src/startup/lib' 10 | ], 11 | __dirname // our directory 12 | ); 13 | -------------------------------------------------------------------------------- /components/src/adaptors/liteDOM/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "adaptors/liteDOM", 3 | "targets": ["adaptors/liteAdaptor.ts", "adaptors/lite"] 4 | } 5 | 6 | -------------------------------------------------------------------------------- /components/src/adaptors/liteDOM/liteDOM.js: -------------------------------------------------------------------------------- 1 | import './lib/liteDOM.js'; 2 | 3 | import {liteAdaptor} from '../../../../js/adaptors/liteAdaptor.js'; 4 | 5 | if (MathJax.startup) { 6 | MathJax.startup.registerConstructor('liteAdaptor', liteAdaptor); 7 | MathJax.startup.useAdaptor('liteAdaptor', true); 8 | } 9 | -------------------------------------------------------------------------------- /components/src/adaptors/liteDOM/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'adaptors/liteDOM', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | ['components/src/core/lib'], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/core/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "core", 3 | 4 | "targets": [ 5 | "mathjax.ts", 6 | "core", "util", "handlers", 7 | "adaptors/HTMLAdaptor.ts", 8 | "adaptors/browserAdaptor.ts", 9 | "components/global.ts" 10 | ], 11 | 12 | "exclude": [ 13 | "core/MmlTree/JsonMmlVisitor.ts", 14 | "core/MmlTree/LegacyMmlVisitor.ts", 15 | "core/MmlTree/TestMmlVisitor.ts", 16 | "util/asyncLoad", 17 | "util/entities" 18 | ] 19 | } 20 | 21 | -------------------------------------------------------------------------------- /components/src/core/core.js: -------------------------------------------------------------------------------- 1 | import './lib/core.js'; 2 | 3 | import {HTMLHandler} from '../../../js/handlers/html/HTMLHandler.js'; 4 | import {browserAdaptor} from '../../../js/adaptors/browserAdaptor.js'; 5 | 6 | if (MathJax.startup) { 7 | MathJax.startup.registerConstructor('HTMLHandler', HTMLHandler); 8 | MathJax.startup.registerConstructor('browserAdaptor', browserAdaptor); 9 | MathJax.startup.useHandler('HTMLHandler'); 10 | MathJax.startup.useAdaptor('browserAdaptor'); 11 | } 12 | if (MathJax.loader) { 13 | MathJax._.mathjax.mathjax.asyncLoad = (name => MathJax.loader.load(name)); 14 | } 15 | -------------------------------------------------------------------------------- /components/src/core/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'core', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/input/asciimath/asciimath.js: -------------------------------------------------------------------------------- 1 | import './lib/asciimath.js'; 2 | 3 | import {AsciiMath} from '../../../../js/input/asciimath.js'; 4 | 5 | if (MathJax.startup) { 6 | MathJax.startup.registerConstructor('asciimath', AsciiMath); 7 | MathJax.startup.useInput('asciimath'); 8 | } 9 | -------------------------------------------------------------------------------- /components/src/input/asciimath/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "input/asciimath", 3 | "targets": ["input/asciimath.ts", "input/asciimath"], 4 | "excludeSubdirs": "true" 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/asciimath/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/asciimath', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | ['components/src/core/lib'], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/input/mml/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "input/mml", 3 | "targets": [ 4 | "input/mathml.ts", 5 | "input/mathml" 6 | ], 7 | "excludeSubdirs": "true" 8 | } 9 | -------------------------------------------------------------------------------- /components/src/input/mml/entities/entities.js: -------------------------------------------------------------------------------- 1 | import '../../../../../js/util/entities/all.js'; 2 | 3 | -------------------------------------------------------------------------------- /components/src/input/mml/entities/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/mml/entities', // the package to build 5 | '../../../../../js', // location of the MathJax js library 6 | ['components/src/core/lib'], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/input/mml/extensions/mml3/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[mml]/mml3", 3 | "component": "input/mml/extensions/mml3", 4 | "targets": ["input/mathml/mml3"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/mml/extensions/mml3/copy.json: -------------------------------------------------------------------------------- 1 | { 2 | "to": "../../../../../../es5/input/mml/extensions", 3 | "from": "../../../../../../ts/input/mathml/mml3", 4 | "copy": [ 5 | "mml3.sef.json" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /components/src/input/mml/extensions/mml3/mml3.js: -------------------------------------------------------------------------------- 1 | import './lib/mml3.js'; 2 | 3 | import {Mml3Handler} from '../../../../../../js/input/mathml/mml3/mml3.js'; 4 | 5 | if (MathJax.startup) { 6 | MathJax.startup.extendHandler(handler => Mml3Handler(handler)); 7 | } 8 | -------------------------------------------------------------------------------- /components/src/input/mml/extensions/mml3/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/mml/extensions/mml3', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/mml/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/mml/mml.js: -------------------------------------------------------------------------------- 1 | import './lib/mml.js'; 2 | 3 | import {MathML} from '../../../../js/input/mathml.js'; 4 | 5 | if (MathJax.startup) { 6 | MathJax.startup.registerConstructor('mml', MathML); 7 | MathJax.startup.useInput('mml'); 8 | } 9 | if (MathJax.loader) { 10 | // 11 | // Install a path-filter to cause loading of an entity file to load all entities, 12 | // since the individual files don't have individual components. 13 | // 14 | MathJax.loader.pathFilters.add((data) => { 15 | data.name = data.name.replace(/\/util\/entities\/.*?\.js/, '/input/mml/entities.js'); 16 | return true; 17 | }); 18 | } 19 | -------------------------------------------------------------------------------- /components/src/input/mml/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/mml', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | ['components/src/core/lib'], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/input/tex-base/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "input/tex-base", 3 | "targets": [ 4 | "input/tex.ts", 5 | "input/tex", 6 | "input/tex/base" 7 | ], 8 | "exclude": ["input/tex/AllPackages.ts"], 9 | "excludeSubdirs": "true" 10 | } 11 | -------------------------------------------------------------------------------- /components/src/input/tex-base/tex-base.js: -------------------------------------------------------------------------------- 1 | import './lib/tex-base.js'; 2 | 3 | import {registerTeX} from '../tex/register.js'; 4 | 5 | registerTeX(['base']); 6 | 7 | -------------------------------------------------------------------------------- /components/src/input/tex-base/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex-base', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | ['components/src/core/lib'], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/input/tex-full/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "input/tex-full", 3 | "targets": [ 4 | "input/tex.ts", 5 | "input/tex" 6 | ] 7 | } 8 | 9 | -------------------------------------------------------------------------------- /components/src/input/tex-full/tex-full.js: -------------------------------------------------------------------------------- 1 | import './lib/tex-full.js'; 2 | import '../tex/extensions/all-packages/all-packages.js'; 3 | import {registerTeX} from '../tex/register.js'; 4 | 5 | if (MathJax.loader) { 6 | MathJax.loader.preLoad( 7 | 'input/tex-base', 8 | '[tex]/all-packages' 9 | ); 10 | } 11 | 12 | registerTeX(); 13 | -------------------------------------------------------------------------------- /components/src/input/tex-full/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex-full', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/startup/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "input/tex", 3 | "targets": [ 4 | "input/tex.ts", 5 | "input/tex", 6 | "input/tex/base", 7 | "input/tex/ams", 8 | "input/tex/newcommand", 9 | "input/tex/noundefined", 10 | "input/tex/require", 11 | "input/tex/autoload", 12 | "input/tex/configmacros" 13 | ], 14 | "exclude": ["input/tex/AllPackages.ts"], 15 | "excludeSubdirs": "true" 16 | } 17 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/action/action.js: -------------------------------------------------------------------------------- 1 | import './lib/action.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/action/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/action", 3 | "component": "input/tex/extensions/action", 4 | "targets": ["input/tex/action"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/action/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/action', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/all-packages/all-packages.js: -------------------------------------------------------------------------------- 1 | import './lib/all-packages.js'; 2 | 3 | import {AllPackages} from '../../../../../../js/input/tex/AllPackages.js'; 4 | import '../../../../../../js/input/tex/autoload/AutoloadConfiguration.js'; 5 | import '../../../../../../js/input/tex/require/RequireConfiguration.js'; 6 | import {registerTeX} from '../../register.js'; 7 | 8 | if (MathJax.loader) { 9 | MathJax.loader.preLoad('[tex]/autoload', '[tex]/require'); 10 | } 11 | 12 | registerTeX(['require', ...AllPackages], false); 13 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/all-packages/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/all-packages", 3 | "component": "input/tex/extensions/all-packages", 4 | "targets": [ 5 | "input/tex/AllPackages.ts", 6 | "input/tex/autoload", 7 | "input/tex/require" 8 | ] 9 | } 10 | 11 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/all-packages/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/all-packages',// the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/startup/lib', 9 | 'components/src/core/lib' 10 | ], 11 | __dirname // our directory 12 | ); 13 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/ams/ams.js: -------------------------------------------------------------------------------- 1 | import './lib/ams.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/ams/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/ams", 3 | "component": "input/tex/extensions/ams", 4 | "targets": ["input/tex/ams"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/ams/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/ams', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/amscd/amscd.js: -------------------------------------------------------------------------------- 1 | import './lib/amscd.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/amscd/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/amscd", 3 | "component": "input/tex/extensions/amscd", 4 | "targets": ["input/tex/amscd"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/amscd/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/amscd', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/autoload/autoload.js: -------------------------------------------------------------------------------- 1 | import './lib/autoload.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/autoload/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/autoload", 3 | "component": "input/tex/extensions/autoload", 4 | "targets": ["input/tex/autoload"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/autoload/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/autoload', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex/extensions/require/lib', 8 | 'components/src/input/tex-base/lib', 9 | 'components/src/startup/lib', 10 | 'components/src/core/lib' 11 | ], 12 | __dirname // our directory 13 | ); 14 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/bbox/bbox.js: -------------------------------------------------------------------------------- 1 | import './lib/bbox.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/bbox/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/bbox", 3 | "component": "input/tex/extensions/bbox", 4 | "targets": ["input/tex/bbox"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/bbox/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/bbox', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/boldsymbol/boldsymbol.js: -------------------------------------------------------------------------------- 1 | import './lib/boldsymbol.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/boldsymbol/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/boldsymbol", 3 | "component": "input/tex/extensions/boldsymbol", 4 | "targets": ["input/tex/boldsymbol"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/boldsymbol/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/boldsymbol', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/braket/braket.js: -------------------------------------------------------------------------------- 1 | import './lib/braket.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/braket/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/braket", 3 | "component": "input/tex/extensions/braket", 4 | "targets": ["input/tex/braket"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/braket/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/braket', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/bussproofs/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/bussproofs", 3 | "component": "input/tex/extensions/bussproofs", 4 | "targets": ["input/tex/bussproofs"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/bussproofs/bussproofs.js: -------------------------------------------------------------------------------- 1 | import './lib/bussproofs.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/bussproofs/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/bussproofs', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/cancel/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/cancel", 3 | "component": "input/tex/extensions/cancel", 4 | "targets": ["input/tex/cancel"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/cancel/cancel.js: -------------------------------------------------------------------------------- 1 | import './lib/cancel.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/cancel/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/cancel', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/input/tex/extensions/enclose/lib', 9 | 'components/src/core/lib' 10 | ], 11 | __dirname // our directory 12 | ); 13 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/cases/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/cases", 3 | "component": "input/tex/extensions/cases", 4 | "targets": ["input/tex/cases"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/cases/cases.js: -------------------------------------------------------------------------------- 1 | import './lib/cases.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/cases/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/cases', // the package to build 5 | '../../../../../../js', // location of the compiled js files 6 | [ // packages to link to (relative to Mathjax components) 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/input/tex/extensions/ams/lib', 9 | 'components/src/input/tex/extensions/empheq/lib', 10 | 'components/src/core/lib' 11 | ], 12 | __dirname // our directory 13 | ); 14 | 15 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/centernot/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/centernot", 3 | "component": "input/tex/extensions/centernot", 4 | "targets": ["input/tex/centernot"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/centernot/centernot.js: -------------------------------------------------------------------------------- 1 | import './lib/centernot.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/centernot/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/centernot', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/color/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/color", 3 | "component": "input/tex/extensions/color", 4 | "targets": ["input/tex/color"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/color/color.js: -------------------------------------------------------------------------------- 1 | import './lib/color.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/color/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/color', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/colortbl/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/colortbl", 3 | "component": "input/tex/extensions/colortbl", 4 | "targets": ["input/tex/colortbl"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/colortbl/colortbl.js: -------------------------------------------------------------------------------- 1 | import './lib/colortbl.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/colortbl/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/colortbl', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/colorv2/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/colorv2", 3 | "component": "input/tex/extensions/colorv2", 4 | "targets": ["input/tex/colorv2"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/colorv2/colorv2.js: -------------------------------------------------------------------------------- 1 | import './lib/colorv2.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/colorv2/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/colorv2', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/configmacros/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/configmacros", 3 | "component": "input/tex/extensions/configmacros", 4 | "targets": ["input/tex/configmacros"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/configmacros/configmacros.js: -------------------------------------------------------------------------------- 1 | import './lib/configmacros.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/configmacros/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/configmacros',// the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex/extensions/newcommand/lib', 8 | 'components/src/input/tex-base/lib', 9 | 'components/src/core/lib', 10 | 'components/src/startup/lib' 11 | ], 12 | __dirname // our directory 13 | ); 14 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/empheq/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/empheq", 3 | "component": "input/tex/extensions/empheq", 4 | "targets": ["input/tex/empheq"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/empheq/empheq.js: -------------------------------------------------------------------------------- 1 | import './lib/empheq.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/empheq/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/empheq', // the package to build 5 | '../../../../../../js', // location of the compiled js files 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | 13 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/enclose/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/enclose", 3 | "component": "input/tex/extensions/enclose", 4 | "targets": ["input/tex/enclose"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/enclose/enclose.js: -------------------------------------------------------------------------------- 1 | import './lib/enclose.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/enclose/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/enclose', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/extpfeil/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/extpfeil", 3 | "component": "input/tex/extensions/extpfeil", 4 | "targets": ["input/tex/extpfeil"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/extpfeil/extpfeil.js: -------------------------------------------------------------------------------- 1 | import './lib/extpfeil.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/extpfeil/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/extpfeil', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex/extensions/ams/lib', 8 | 'components/src/input/tex/extensions/newcommand/lib', 9 | 'components/src/input/tex-base/lib', 10 | 'components/src/core/lib' 11 | ], 12 | __dirname // our directory 13 | ); 14 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/gensymb/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/gensymb", 3 | "component": "input/tex/extensions/gensymb", 4 | "targets": ["input/tex/gensymb"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/gensymb/gensymb.js: -------------------------------------------------------------------------------- 1 | import './lib/gensymb.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/gensymb/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/gensymb', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/html/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/html", 3 | "component": "input/tex/extensions/html", 4 | "targets": ["input/tex/html"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/html/html.js: -------------------------------------------------------------------------------- 1 | import './lib/html.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/html/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/html', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/mathtools/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/mathtools", 3 | "component": "input/tex/extensions/mathtools", 4 | "targets": ["input/tex/mathtools"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/mathtools/mathtools.js: -------------------------------------------------------------------------------- 1 | import './lib/mathtools.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/mathtools/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/mathtools', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex/extensions/ams/lib', 8 | 'components/src/input/tex/extensions/newcommand/lib', 9 | 'components/src/input/tex-base/lib', 10 | 'components/src/core/lib' 11 | ], 12 | __dirname // our directory 13 | ); 14 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/mhchem/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/mhchem", 3 | "component": "input/tex/extensions/mhchem", 4 | "targets": ["input/tex/mhchem"], 5 | "exclude": ["input/tex/mhchem/mhchem_parser.d.ts"] 6 | } 7 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/mhchem/mhchem.js: -------------------------------------------------------------------------------- 1 | import './lib/mhchem.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/mhchem/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/mhchem', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex/extensions/ams/lib', 8 | 'components/src/input/tex-base/lib', 9 | 'components/src/core/lib' 10 | ], 11 | __dirname // our directory 12 | ); 13 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/newcommand/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/newcommand", 3 | "component": "input/tex/extensions/newcommand", 4 | "targets": ["input/tex/newcommand"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/newcommand/newcommand.js: -------------------------------------------------------------------------------- 1 | import './lib/newcommand.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/newcommand/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/newcommand', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/noerrors/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/noerrors", 3 | "component": "input/tex/extensions/noerrors", 4 | "targets": ["input/tex/noerrors"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/noerrors/noerrors.js: -------------------------------------------------------------------------------- 1 | import './lib/noerrors.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/noerrors/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/noerrors', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/noundefined/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/noundefined", 3 | "component": "input/tex/extensions/noundefined", 4 | "targets": ["input/tex/noundefined"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/noundefined/noundefined.js: -------------------------------------------------------------------------------- 1 | import './lib/noundefined.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/noundefined/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/noundefined', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/physics/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/physics", 3 | "component": "input/tex/extensions/physics", 4 | "targets": ["input/tex/physics"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/physics/physics.js: -------------------------------------------------------------------------------- 1 | import './lib/physics.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/physics/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/physics', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/require/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/require", 3 | "component": "input/tex/extensions/require", 4 | "targets": ["input/tex/require"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/require/require.js: -------------------------------------------------------------------------------- 1 | import './lib/require.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/require/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/require', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib', 9 | 'components/src/startup/lib' 10 | ], 11 | __dirname // our directory 12 | ); 13 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/setoptions/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/setoptions", 3 | "component": "input/tex/extensions/setoptions", 4 | "targets": ["input/tex/setoptions"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/setoptions/setoptions.js: -------------------------------------------------------------------------------- 1 | import './lib/setoptions.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/setoptions/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/setoptions', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/tagformat/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/tagformat", 3 | "component": "input/tex/extensions/tagformat", 4 | "targets": ["input/tex/tagformat"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/tagformat/tagformat.js: -------------------------------------------------------------------------------- 1 | import './lib/tagformat.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/tagformat/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/tagformat', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/textcomp/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/textcomp", 3 | "component": "input/tex/extensions/textcomp", 4 | "targets": ["input/tex/textcomp"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/textcomp/textcomp.js: -------------------------------------------------------------------------------- 1 | import './lib/textcomp.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/textcomp/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/textcomp', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex/extensions/textmacros/lib', 8 | 'components/src/input/tex-base/lib', 9 | 'components/src/core/lib' 10 | ], 11 | __dirname // our directory 12 | ); 13 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/textmacros/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/textmacros", 3 | "component": "input/tex/extensions/textmacros", 4 | "targets": ["input/tex/textmacros"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/textmacros/textmacros.js: -------------------------------------------------------------------------------- 1 | import './lib/textmacros.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/textmacros/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/textmacros', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/unicode/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/unicode", 3 | "component": "input/tex/extensions/unicode", 4 | "targets": ["input/tex/unicode"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/unicode/unicode.js: -------------------------------------------------------------------------------- 1 | import './lib/unicode.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/unicode/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/unicode', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/upgreek/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/upgreek", 3 | "component": "input/tex/extensions/upgreek", 4 | "targets": ["input/tex/upgreek"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/upgreek/upgreek.js: -------------------------------------------------------------------------------- 1 | import './lib/upgreek.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/upgreek/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/upgreek', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/verb/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "[tex]/verb", 3 | "component": "input/tex/extensions/verb", 4 | "targets": ["input/tex/verb"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/verb/verb.js: -------------------------------------------------------------------------------- 1 | import './lib/verb.js'; 2 | -------------------------------------------------------------------------------- /components/src/input/tex/extensions/verb/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex/extensions/verb', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/input/tex-base/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/input/tex/register.js: -------------------------------------------------------------------------------- 1 | import {insert} from '../../../../js/util/Options.js'; 2 | 3 | export function registerTeX(packageList = [], tex = true) { 4 | if (MathJax.startup) { 5 | if (tex) { 6 | MathJax.startup.registerConstructor('tex', MathJax._.input.tex_ts.TeX); 7 | MathJax.startup.useInput('tex'); 8 | } 9 | if (!MathJax.config.tex) { 10 | MathJax.config.tex = {}; 11 | } 12 | let packages = MathJax.config.tex.packages; 13 | MathJax.config.tex.packages = packageList; 14 | if (packages) { 15 | insert(MathJax.config.tex, {packages}); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /components/src/input/tex/tex.js: -------------------------------------------------------------------------------- 1 | import './lib/tex.js'; 2 | 3 | import {registerTeX} from './register.js'; 4 | import {Loader} from '../../../../js/components/loader.js'; 5 | 6 | Loader.preLoad( 7 | 'input/tex-base', 8 | '[tex]/ams', 9 | '[tex]/newcommand', 10 | '[tex]/noundefined', 11 | '[tex]/require', 12 | '[tex]/autoload', 13 | '[tex]/configmacros' 14 | ); 15 | 16 | registerTeX([ 17 | 'base', 18 | 'ams', 19 | 'newcommand', 20 | 'noundefined', 21 | 'require', 22 | 'autoload', 23 | 'configmacros' 24 | ]); 25 | -------------------------------------------------------------------------------- /components/src/input/tex/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'input/tex', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/startup/lib', 8 | 'components/src/core/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/latest/latest.js: -------------------------------------------------------------------------------- 1 | import {loadLatest} from '../../../js/components/latest.js'; 2 | 3 | loadLatest(); 4 | -------------------------------------------------------------------------------- /components/src/latest/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'latest', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/loader/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "loader", 3 | "targets": [ 4 | "components/loader.ts", 5 | "components/package.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /components/src/loader/loader.js: -------------------------------------------------------------------------------- 1 | import './lib/loader.js'; 2 | 3 | import {Loader, CONFIG} from '../../../js/components/loader.js'; 4 | import {combineDefaults} from '../../../js/components/global.js'; 5 | import {dependencies, paths, provides} from '../dependencies.js'; 6 | 7 | combineDefaults(MathJax.config.loader, 'dependencies', dependencies); 8 | combineDefaults(MathJax.config.loader, 'paths', paths); 9 | combineDefaults(MathJax.config.loader, 'provides', provides); 10 | 11 | Loader.load(...CONFIG.load) 12 | .then(() => CONFIG.ready()) 13 | .catch((message, name) => CONFIG.failed(message, name)); 14 | -------------------------------------------------------------------------------- /components/src/loader/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'loader', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/mml-chtml/mml-chtml.js: -------------------------------------------------------------------------------- 1 | import '../startup/init.js'; 2 | import './preload.js'; 3 | import '../core/core.js'; 4 | import '../input/mml/mml.js'; 5 | import '../output/chtml/chtml.js'; 6 | import '../output/chtml/fonts/tex/tex.js'; 7 | import '../ui/menu/menu.js'; 8 | import '../a11y/assistive-mml/assistive-mml.js'; 9 | import '../startup/startup.js'; 10 | -------------------------------------------------------------------------------- /components/src/mml-chtml/preload.js: -------------------------------------------------------------------------------- 1 | import {Loader} from '../../../js/components/loader.js'; 2 | 3 | Loader.preLoad( 4 | 'loader', 'startup', 5 | 'core', 6 | 'input/mml', 7 | 'output/chtml', 'output/chtml/fonts/tex.js', 8 | 'ui/menu', 'a11y/assistive-mml' 9 | ); 10 | -------------------------------------------------------------------------------- /components/src/mml-chtml/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'mml-chtml', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/mml-svg/mml-svg.js: -------------------------------------------------------------------------------- 1 | import '../startup/init.js'; 2 | import './preload.js'; 3 | import '../core/core.js'; 4 | import '../input/mml/mml.js'; 5 | import '../output/svg/svg.js'; 6 | import '../output/svg/fonts/tex/tex.js'; 7 | import '../ui/menu/menu.js'; 8 | import '../a11y/assistive-mml/assistive-mml.js'; 9 | import '../startup/startup.js'; 10 | -------------------------------------------------------------------------------- /components/src/mml-svg/preload.js: -------------------------------------------------------------------------------- 1 | import {Loader} from '../../../js/components/loader.js'; 2 | 3 | Loader.preLoad( 4 | 'loader', 'startup', 5 | 'core', 6 | 'input/mml', 7 | 'output/svg', 'output/svg/fonts/tex.js', 8 | 'ui/menu', 'a11y/assistive-mml' 9 | ); 10 | -------------------------------------------------------------------------------- /components/src/mml-svg/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'mml-svg', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/node-main/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | const package = PACKAGE( 4 | 'node-main', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | 10 | // make node-main.js exports available to caller 11 | package.output.library = { 12 | name: 'init', 13 | type: 'commonjs', 14 | export: 'init' 15 | }; 16 | 17 | module.exports = package; 18 | -------------------------------------------------------------------------------- /components/src/output/chtml/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "output/chtml", 3 | "targets": ["output/chtml.ts", "output/chtml", "output/common"], 4 | "exclude": ["output/chtml/fonts", "output/common/fonts"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/output/chtml/chtml.js: -------------------------------------------------------------------------------- 1 | import './lib/chtml.js'; 2 | 3 | import {combineDefaults} from '../../../../js/components/global.js'; 4 | import {CHTML} from '../../../../js/output/chtml.js'; 5 | 6 | if (MathJax.loader) { 7 | combineDefaults(MathJax.config.loader, 'output/chtml', { 8 | checkReady() { 9 | return MathJax.loader.load("output/chtml/fonts/tex"); 10 | } 11 | }); 12 | } 13 | 14 | if (MathJax.startup) { 15 | MathJax.startup.registerConstructor('chtml', CHTML); 16 | MathJax.startup.useOutput('chtml'); 17 | } 18 | -------------------------------------------------------------------------------- /components/src/output/chtml/fonts/tex/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "output/chtml/fonts/tex", 3 | "targets": ["output/chtml/fonts/tex.ts", "output/chtml/fonts/tex", "output/common/fonts/tex"] 4 | } 5 | -------------------------------------------------------------------------------- /components/src/output/chtml/fonts/tex/copy.json: -------------------------------------------------------------------------------- 1 | { 2 | "to": "../../../../../../es5/output/chtml/fonts/woff-v2", 3 | "from": "../../../../../../ts/output/chtml/fonts/tex-woff-v2", 4 | "copy": [ 5 | "MathJax_AMS-Regular.woff", 6 | "MathJax_Calligraphic-Bold.woff", 7 | "MathJax_Calligraphic-Regular.woff", 8 | "MathJax_Fraktur-Bold.woff", 9 | "MathJax_Fraktur-Regular.woff", 10 | "MathJax_Main-Bold.woff", 11 | "MathJax_Main-Italic.woff", 12 | "MathJax_Main-Regular.woff", 13 | "MathJax_Math-BoldItalic.woff", 14 | "MathJax_Math-Italic.woff", 15 | "MathJax_Math-Regular.woff", 16 | "MathJax_SansSerif-Bold.woff", 17 | "MathJax_SansSerif-Italic.woff", 18 | "MathJax_SansSerif-Regular.woff", 19 | "MathJax_Script-Regular.woff", 20 | "MathJax_Size1-Regular.woff", 21 | "MathJax_Size2-Regular.woff", 22 | "MathJax_Size3-Regular.woff", 23 | "MathJax_Size4-Regular.woff", 24 | "MathJax_Typewriter-Regular.woff", 25 | "MathJax_Vector-Bold.woff", 26 | "MathJax_Vector-Regular.woff", 27 | "MathJax_Zero.woff" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /components/src/output/chtml/fonts/tex/tex.js: -------------------------------------------------------------------------------- 1 | import './lib/tex.js'; 2 | 3 | import {combineDefaults} from '../../../../../../js/components/global.js'; 4 | import {Package} from '../../../../../../js/components/package.js'; 5 | import {selectOptionsFromKeys} from '../../../../../../js/util/Options.js'; 6 | import {TeXFont} from '../../../../../../js/output/chtml/fonts/tex.js'; 7 | 8 | if (MathJax.startup) { 9 | combineDefaults(MathJax.config, 'chtml', { 10 | fontURL: Package.resolvePath('output/chtml/fonts/woff-v2', false) 11 | }); 12 | const options = selectOptionsFromKeys(MathJax.config.chtml || {}, TeXFont.OPTIONS); 13 | combineDefaults(MathJax.config, 'chtml', {font: new TeXFont(options)}); 14 | } 15 | -------------------------------------------------------------------------------- /components/src/output/chtml/fonts/tex/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'output/chtml/fonts/tex', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/core/lib', 8 | 'components/src/output/chtml/lib', 9 | 'components/src/startup/lib' 10 | ], 11 | __dirname // our directory 12 | ); 13 | -------------------------------------------------------------------------------- /components/src/output/chtml/nofont.js: -------------------------------------------------------------------------------- 1 | import {FontData} from '../../../../js/output/chtml/FontData.js'; 2 | 3 | export class TeXFont extends FontData {}; 4 | 5 | TeXFont.OPTIONS = {fontURL: '.'}; 6 | -------------------------------------------------------------------------------- /components/src/output/chtml/webpack.config.js: -------------------------------------------------------------------------------- 1 | const webpack = require("webpack"); 2 | const PACKAGE = require('../../../webpack.common.js'); 3 | 4 | module.exports = PACKAGE( 5 | 'output/chtml', // the package to build 6 | '../../../../js', // location of the MathJax js library 7 | ['components/src/core/lib'], // packages to link to 8 | __dirname // our directory 9 | ); 10 | 11 | module.exports.plugins.push( 12 | new webpack.NormalModuleReplacementPlugin( 13 | /\/fonts\/tex\.js$/, 14 | function (resource) { 15 | resource.request = '../../components/src/output/chtml/nofont.js'; 16 | } 17 | ) 18 | ); 19 | -------------------------------------------------------------------------------- /components/src/output/svg/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "output/svg", 3 | "targets": ["output/svg.ts", "output/svg", "output/common"], 4 | "exclude": ["output/svg/fonts", "output/common/fonts"] 5 | } 6 | -------------------------------------------------------------------------------- /components/src/output/svg/fonts/tex/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "output/svg/fonts/tex", 3 | "targets": ["output/svg/fonts/tex.ts", "output/svg/fonts/tex", "output/common/fonts/tex"] 4 | } 5 | -------------------------------------------------------------------------------- /components/src/output/svg/fonts/tex/tex.js: -------------------------------------------------------------------------------- 1 | import './lib/tex.js'; 2 | 3 | import {TeXFont} from '../../../../../../js/output/svg/fonts/tex.js'; 4 | import {combineDefaults} from '../../../../../../js/components/global.js'; 5 | import {selectOptionsFromKeys} from '../../../../../../js/util/Options.js'; 6 | 7 | if (MathJax.startup) { 8 | const options = selectOptionsFromKeys(MathJax.config.svg || {}, TeXFont.OPTIONS); 9 | combineDefaults(MathJax.config, 'svg', {font: new TeXFont(options)}); 10 | } 11 | -------------------------------------------------------------------------------- /components/src/output/svg/fonts/tex/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'output/svg/fonts/tex', // the package to build 5 | '../../../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/core/lib', 8 | 'components/src/output/svg/lib' 9 | ], 10 | __dirname // our directory 11 | ); 12 | -------------------------------------------------------------------------------- /components/src/output/svg/nofont.js: -------------------------------------------------------------------------------- 1 | import {FontData} from '../../../../js/output/svg/FontData.js'; 2 | 3 | export class TeXFont extends FontData {}; 4 | 5 | TeXFont.OPTIONS = {fontURL: '.'}; 6 | -------------------------------------------------------------------------------- /components/src/output/svg/svg.js: -------------------------------------------------------------------------------- 1 | import './lib/svg.js'; 2 | 3 | import {combineDefaults} from '../../../../js/components/global.js'; 4 | import {SVG} from '../../../../js/output/svg.js'; 5 | 6 | if (MathJax.loader) { 7 | combineDefaults(MathJax.config.loader, 'output/svg', { 8 | checkReady() { 9 | return MathJax.loader.load("output/svg/fonts/tex"); 10 | } 11 | }); 12 | } 13 | 14 | if (MathJax.startup) { 15 | MathJax.startup.registerConstructor('svg', SVG); 16 | MathJax.startup.useOutput('svg'); 17 | } 18 | -------------------------------------------------------------------------------- /components/src/output/svg/webpack.config.js: -------------------------------------------------------------------------------- 1 | const webpack = require("webpack"); 2 | const PACKAGE = require('../../../webpack.common.js'); 3 | 4 | module.exports = PACKAGE( 5 | 'output/svg', // the package to build 6 | '../../../../js', // location of the MathJax js library 7 | ['components/src/core/lib'], // packages to link to 8 | __dirname // our directory 9 | ); 10 | 11 | module.exports.plugins.push( 12 | new webpack.NormalModuleReplacementPlugin( 13 | /\/fonts\/tex\.js$/, 14 | function (resource) { 15 | resource.request = '../../components/src/output/svg/nofont.js'; 16 | } 17 | ) 18 | ); 19 | -------------------------------------------------------------------------------- /components/src/sre/copy.json: -------------------------------------------------------------------------------- 1 | { 2 | "to": "../../../es5/sre", 3 | "from": "[node]/speech-rule-engine/lib", 4 | "copy": [ 5 | "mathmaps" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /components/src/startup/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "startup", 3 | "targets": [ 4 | "components/loader.ts", 5 | "components/package.ts", 6 | "components/startup.ts" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /components/src/startup/init.js: -------------------------------------------------------------------------------- 1 | import './lib/startup.js'; 2 | 3 | import {combineDefaults} from '../../../js/components/global.js'; 4 | import {dependencies, paths, provides, compatibility} from '../dependencies.js'; 5 | 6 | combineDefaults(MathJax.config.loader, 'dependencies', dependencies); 7 | combineDefaults(MathJax.config.loader, 'paths', paths); 8 | combineDefaults(MathJax.config.loader, 'provides', provides); 9 | combineDefaults(MathJax.config.loader, 'source', compatibility); 10 | -------------------------------------------------------------------------------- /components/src/startup/startup.js: -------------------------------------------------------------------------------- 1 | import './init.js'; 2 | import {Loader, CONFIG} from '../../../js/components/loader.js'; 3 | 4 | Loader.preLoad('loader'); 5 | 6 | Loader.load(...CONFIG.load) 7 | .then(() => CONFIG.ready()) 8 | .catch(error => CONFIG.failed(error)); 9 | -------------------------------------------------------------------------------- /components/src/startup/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'startup', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/tex-chtml-full-speech/preload.js: -------------------------------------------------------------------------------- 1 | import {Loader} from '../../../js/components/loader.js'; 2 | 3 | Loader.preLoad( 4 | 'loader', 'startup', 5 | 'core', 6 | 'input/tex-full', 7 | 'output/chtml', 'output/chtml/fonts/tex.js', 8 | 'ui/menu', 'a11y/assistive-mml', 'a11y/sre' 9 | ); 10 | -------------------------------------------------------------------------------- /components/src/tex-chtml-full-speech/tex-chtml-full-speech.js: -------------------------------------------------------------------------------- 1 | import '../startup/init.js'; 2 | import './preload.js'; 3 | import '../core/core.js'; 4 | import '../input/tex-full/tex-full.js'; 5 | import '../output/chtml/chtml.js'; 6 | import '../output/chtml/fonts/tex/tex.js'; 7 | import '../ui/menu/menu.js'; 8 | import '../a11y/assistive-mml/assistive-mml.js'; 9 | import '../a11y/sre/sre.js'; 10 | import MathMaps from '../../../js/a11y/mathmaps.js'; 11 | import base from 'speech-rule-engine/lib/mathmaps/base.json'; 12 | import en from 'speech-rule-engine/lib/mathmaps/en.json'; 13 | import nemeth from 'speech-rule-engine/lib/mathmaps/nemeth.json'; 14 | 15 | MathMaps.set('base', base); 16 | MathMaps.set('en', en); 17 | MathMaps.set('nemeth', nemeth); 18 | 19 | import '../startup/startup.js'; 20 | -------------------------------------------------------------------------------- /components/src/tex-chtml-full-speech/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'tex-chtml-full-speech', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | ], 8 | __dirname // our directory 9 | ); 10 | -------------------------------------------------------------------------------- /components/src/tex-chtml-full/preload.js: -------------------------------------------------------------------------------- 1 | import {Loader} from '../../../js/components/loader.js'; 2 | 3 | Loader.preLoad( 4 | 'loader', 'startup', 5 | 'core', 6 | 'input/tex-full', 7 | 'output/chtml', 'output/chtml/fonts/tex.js', 8 | 'ui/menu', 'a11y/assistive-mml' 9 | ); 10 | -------------------------------------------------------------------------------- /components/src/tex-chtml-full/tex-chtml-full.js: -------------------------------------------------------------------------------- 1 | import '../startup/init.js'; 2 | import './preload.js'; 3 | import '../core/core.js'; 4 | import '../input/tex-full/tex-full.js'; 5 | import '../output/chtml/chtml.js'; 6 | import '../output/chtml/fonts/tex/tex.js'; 7 | import '../ui/menu/menu.js'; 8 | import '../a11y/assistive-mml/assistive-mml.js'; 9 | import '../startup/startup.js'; 10 | -------------------------------------------------------------------------------- /components/src/tex-chtml-full/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'tex-chtml-full', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/tex-chtml/preload.js: -------------------------------------------------------------------------------- 1 | import {Loader} from '../../../js/components/loader.js'; 2 | 3 | Loader.preLoad( 4 | 'loader', 'startup', 5 | 'core', 6 | 'input/tex', 7 | 'output/chtml', 'output/chtml/fonts/tex.js', 8 | 'ui/menu', 'a11y/assistive-mml' 9 | ); 10 | -------------------------------------------------------------------------------- /components/src/tex-chtml/tex-chtml.js: -------------------------------------------------------------------------------- 1 | import '../startup/init.js'; 2 | import './preload.js'; 3 | import '../core/core.js'; 4 | import '../input/tex/tex.js'; 5 | import '../output/chtml/chtml.js'; 6 | import '../output/chtml/fonts/tex/tex.js'; 7 | import '../ui/menu/menu.js'; 8 | import '../a11y/assistive-mml/assistive-mml.js'; 9 | import '../startup/startup.js'; 10 | -------------------------------------------------------------------------------- /components/src/tex-chtml/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'tex-chtml', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/tex-mml-chtml/preload.js: -------------------------------------------------------------------------------- 1 | import {Loader} from '../../../js/components/loader.js'; 2 | 3 | Loader.preLoad( 4 | 'loader', 'startup', 5 | 'core', 6 | 'input/tex', 'input/mml', 7 | 'output/chtml', 'output/chtml/fonts/tex.js', 8 | 'ui/menu', 'a11y/assistive-mml' 9 | ); 10 | -------------------------------------------------------------------------------- /components/src/tex-mml-chtml/tex-mml-chtml.js: -------------------------------------------------------------------------------- 1 | import '../startup/init.js'; 2 | import './preload.js'; 3 | import '../core/core.js'; 4 | import '../input/tex/tex.js'; 5 | import '../input/mml/mml.js'; 6 | import '../output/chtml/chtml.js'; 7 | import '../output/chtml/fonts/tex/tex.js'; 8 | import '../ui/menu/menu.js'; 9 | import '../a11y/assistive-mml/assistive-mml.js'; 10 | import '../startup/startup.js'; 11 | -------------------------------------------------------------------------------- /components/src/tex-mml-chtml/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'tex-mml-chtml', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/tex-mml-svg/preload.js: -------------------------------------------------------------------------------- 1 | import {Loader} from '../../../js/components/loader.js'; 2 | 3 | Loader.preLoad( 4 | 'loader', 'startup', 5 | 'core', 6 | 'input/tex', 'input/mml', 7 | 'output/svg', 'output/svg/fonts/tex.js', 8 | 'ui/menu', 'a11y/assistive-mml' 9 | ); 10 | -------------------------------------------------------------------------------- /components/src/tex-mml-svg/tex-mml-svg.js: -------------------------------------------------------------------------------- 1 | import '../startup/init.js'; 2 | import './preload.js'; 3 | import '../core/core.js'; 4 | import '../input/tex/tex.js'; 5 | import '../input/mml/mml.js'; 6 | import '../output/svg/svg.js'; 7 | import '../output/svg/fonts/tex/tex.js'; 8 | import '../ui/menu/menu.js'; 9 | import '../a11y/assistive-mml/assistive-mml.js'; 10 | import '../startup/startup.js'; 11 | -------------------------------------------------------------------------------- /components/src/tex-mml-svg/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'tex-mml-svg', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/tex-svg-full/preload.js: -------------------------------------------------------------------------------- 1 | import {Loader} from '../../../js/components/loader.js'; 2 | 3 | Loader.preLoad( 4 | 'loader', 'startup', 5 | 'core', 6 | 'input/tex-full', 7 | 'output/svg', 'output/svg/fonts/tex.js', 8 | 'ui/menu', 'a11y/assistive-mml' 9 | ); 10 | -------------------------------------------------------------------------------- /components/src/tex-svg-full/tex-svg-full.js: -------------------------------------------------------------------------------- 1 | import '../startup/init.js'; 2 | import './preload.js'; 3 | import '../core/core.js'; 4 | import '../input/tex-full/tex-full.js'; 5 | import '../output/svg/svg.js'; 6 | import '../output/svg/fonts/tex/tex.js'; 7 | import '../ui/menu/menu.js'; 8 | import '../a11y/assistive-mml/assistive-mml.js'; 9 | import '../startup/startup.js'; 10 | -------------------------------------------------------------------------------- /components/src/tex-svg-full/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'tex-svg-full', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/tex-svg/preload.js: -------------------------------------------------------------------------------- 1 | import {Loader} from '../../../js/components/loader.js'; 2 | 3 | Loader.preLoad( 4 | 'loader', 'startup', 5 | 'core', 6 | 'input/tex', 7 | 'output/svg', 'output/svg/fonts/tex.js', 8 | 'ui/menu', 'a11y/assistive-mml' 9 | ); 10 | -------------------------------------------------------------------------------- /components/src/tex-svg/tex-svg.js: -------------------------------------------------------------------------------- 1 | import '../startup/init.js'; 2 | import './preload.js'; 3 | import '../core/core.js'; 4 | import '../input/tex/tex.js'; 5 | import '../output/svg/svg.js'; 6 | import '../output/svg/fonts/tex/tex.js'; 7 | import '../ui/menu/menu.js'; 8 | import '../a11y/assistive-mml/assistive-mml.js'; 9 | import '../startup/startup.js'; 10 | -------------------------------------------------------------------------------- /components/src/tex-svg/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'tex-svg', // the package to build 5 | '../../../js', // location of the MathJax js library 6 | [], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/ui/lazy/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "ui/lazy", 3 | "targets": ["ui/lazy"] 4 | } 5 | 6 | -------------------------------------------------------------------------------- /components/src/ui/lazy/lazy.js: -------------------------------------------------------------------------------- 1 | import './lib/lazy.js'; 2 | 3 | import {LazyHandler} from '../../../../js/ui/lazy/LazyHandler.js'; 4 | 5 | if (MathJax.startup) { 6 | MathJax.startup.extendHandler(handler => LazyHandler(handler)); 7 | } 8 | -------------------------------------------------------------------------------- /components/src/ui/lazy/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'ui/lazy', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | [ // packages to link to 7 | 'components/src/core/lib' 8 | ], 9 | __dirname // our directory 10 | ); 11 | -------------------------------------------------------------------------------- /components/src/ui/menu/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "ui/menu", 3 | "targets": ["ui/menu"] 4 | } 5 | -------------------------------------------------------------------------------- /components/src/ui/menu/menu.js: -------------------------------------------------------------------------------- 1 | import './lib/menu.js'; 2 | 3 | import {MenuHandler} from '../../../../js/ui/menu/MenuHandler.js'; 4 | 5 | if (MathJax.startup && typeof window !== 'undefined') { 6 | MathJax.startup.extendHandler(handler => MenuHandler(handler), 20); 7 | } 8 | -------------------------------------------------------------------------------- /components/src/ui/menu/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'ui/menu', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | ['components/src/core/lib', 'node_modules/mj-context-menu/js'], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /components/src/ui/safe/build.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": "ui/safe", 3 | "targets": ["ui/safe"] 4 | } 5 | -------------------------------------------------------------------------------- /components/src/ui/safe/safe.js: -------------------------------------------------------------------------------- 1 | import './lib/safe.js'; 2 | 3 | import {SafeHandler} from '../../../../js/ui/safe/SafeHandler.js'; 4 | 5 | if (MathJax.startup && typeof window !== 'undefined') { 6 | MathJax.startup.extendHandler(handler => SafeHandler(handler)); 7 | } 8 | -------------------------------------------------------------------------------- /components/src/ui/safe/webpack.config.js: -------------------------------------------------------------------------------- 1 | const PACKAGE = require('../../../webpack.common.js'); 2 | 3 | module.exports = PACKAGE( 4 | 'ui/safe', // the package to build 5 | '../../../../js', // location of the MathJax js library 6 | ['components/src/core/lib'], // packages to link to 7 | __dirname // our directory 8 | ); 9 | -------------------------------------------------------------------------------- /ts/a11y/mathmaps.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Base imports of sre locales. 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | * @author v.sorge@mathjax.org (Volker Sorge) 23 | */ 24 | 25 | const MathMaps: Map = new Map(); 26 | 27 | export default MathMaps; 28 | -------------------------------------------------------------------------------- /ts/adaptors/browserAdaptor.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the browser DOM adaptor 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {HTMLAdaptor} from './HTMLAdaptor.js'; 25 | 26 | // 27 | // Let Typescript know about these 28 | // 29 | declare global { 30 | interface Window { 31 | Document: typeof Document; 32 | DOMParser: typeof DOMParser; 33 | XMLSerializer: typeof XMLSerializer; 34 | HTMLElement: typeof HTMLElement; 35 | HTMLCollection: typeof HTMLCollection; 36 | NodeList: typeof NodeList; 37 | DocumentFragment: typeof DocumentFragment; 38 | } 39 | } 40 | 41 | /** 42 | * Function to create an HTML adpator for browsers 43 | * 44 | * @return {HTMLAdaptor} The newly created adaptor 45 | */ 46 | export function browserAdaptor(): HTMLAdaptor { 47 | return new HTMLAdaptor(window); 48 | } 49 | -------------------------------------------------------------------------------- /ts/adaptors/chooseAdaptor.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Chooses between jdsom and browser DOM adaptors 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {liteAdaptor} from './liteAdaptor.js'; 25 | import {browserAdaptor} from './browserAdaptor.js'; 26 | 27 | let choose; 28 | 29 | try { 30 | document; // errors if not in browser 31 | choose = browserAdaptor; 32 | } catch (e) { 33 | choose = liteAdaptor; 34 | } 35 | 36 | /** 37 | * Function to select which adaptor to use (depending on whether we are in a browser or node.js) 38 | */ 39 | export const chooseAdaptor = choose; 40 | -------------------------------------------------------------------------------- /ts/components/version.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview The version of MathJax (used to tell what version a component 20 | * was compiled against). 21 | * 22 | * @author dpvc@mathjax.org (Davide Cervone) 23 | */ 24 | 25 | export const VERSION = '3.2.2'; 26 | -------------------------------------------------------------------------------- /ts/core/MmlTree/MmlFactory.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the MmlFactory to create Mml Nodes 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {AbstractNodeFactory} from '../Tree/NodeFactory.js'; 25 | import {MmlNode, MmlNodeClass} from './MmlNode.js'; 26 | import {MML} from './MML.js'; 27 | 28 | /*****************************************************************/ 29 | /** 30 | * Implements the MmlFactory (subclass of NodeFactory) 31 | */ 32 | 33 | export class MmlFactory extends AbstractNodeFactory { 34 | 35 | /** 36 | * The default node-creation functions 37 | */ 38 | public static defaultNodes = MML; 39 | 40 | /** 41 | * @return {Object} The list of node-creation functions (similar to the 42 | * MML object from MathJax v2). 43 | */ 44 | get MML(): Object { 45 | return this.node; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /ts/core/MmlTree/MmlNodes/mn.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the MmlMn node 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {PropertyList} from '../../Tree/Node.js'; 25 | import {AbstractMmlTokenNode, TEXCLASS} from '../MmlNode.js'; 26 | 27 | /*****************************************************************/ 28 | /** 29 | * Implements the MmlMn node class (subclass of AbstractMmlTokenNode) 30 | */ 31 | 32 | export class MmlMn extends AbstractMmlTokenNode { 33 | 34 | /** 35 | * @override 36 | */ 37 | public static defaults: PropertyList = { 38 | ...AbstractMmlTokenNode.defaults 39 | }; 40 | 41 | /** 42 | * TeX class is ORD 43 | */ 44 | protected texclass = TEXCLASS.ORD; 45 | 46 | /** 47 | * @override 48 | */ 49 | public get kind() { 50 | return 'mn'; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /ts/core/MmlTree/MmlNodes/mpadded.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the MmlMpadded node 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {PropertyList} from '../../Tree/Node.js'; 25 | import {AbstractMmlLayoutNode} from '../MmlNode.js'; 26 | 27 | /*****************************************************************/ 28 | /** 29 | * Implements the MmlMpadded node class (subclass of AbstractMmlLayoutNode) 30 | */ 31 | 32 | export class MmlMpadded extends AbstractMmlLayoutNode { 33 | 34 | /** 35 | * @override 36 | */ 37 | public static defaults: PropertyList = { 38 | ...AbstractMmlLayoutNode.defaults, 39 | width: '', 40 | height: '', 41 | depth: '', 42 | lspace: 0, 43 | voffset: 0 44 | }; 45 | 46 | /** 47 | * @override 48 | */ 49 | public get kind() { 50 | return 'mpadded'; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /ts/core/MmlTree/MmlNodes/mphantom.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the MmlMphantom node 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {PropertyList} from '../../Tree/Node.js'; 25 | import {AbstractMmlLayoutNode, TEXCLASS} from '../MmlNode.js'; 26 | 27 | /*****************************************************************/ 28 | /** 29 | * Implements the MmlMphantom node class (subclass of AbstractMmlLayoutNode) 30 | */ 31 | 32 | export class MmlMphantom extends AbstractMmlLayoutNode { 33 | 34 | /** 35 | * @override 36 | */ 37 | public static defaults: PropertyList = { 38 | ...AbstractMmlLayoutNode.defaults 39 | }; 40 | 41 | /** 42 | * TeX class is ORD 43 | */ 44 | protected texclass = TEXCLASS.ORD; 45 | 46 | /** 47 | * @override 48 | */ 49 | public get kind() { 50 | return 'mphantom'; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /ts/core/MmlTree/MmlNodes/ms.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the MmlMs node 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {PropertyList} from '../../Tree/Node.js'; 25 | import {AbstractMmlTokenNode, TEXCLASS} from '../MmlNode.js'; 26 | 27 | /*****************************************************************/ 28 | /** 29 | * Implements the MmlMs node class (subclass of AbstractMmlTokenNode) 30 | */ 31 | 32 | export class MmlMs extends AbstractMmlTokenNode { 33 | 34 | /** 35 | * @override 36 | */ 37 | public static defaults: PropertyList = { 38 | ...AbstractMmlTokenNode.defaults, 39 | lquote: '"', 40 | rquote: '"' 41 | }; 42 | 43 | /** 44 | * TeX class is ORD 45 | */ 46 | protected texclass = TEXCLASS.ORD; 47 | 48 | /** 49 | * @override 50 | */ 51 | public get kind() { 52 | return 'ms'; 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /ts/handlers/html.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Registers the HTML document type 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {mathjax} from '../mathjax.js'; 25 | import {HTMLHandler} from './html/HTMLHandler.js'; 26 | import {DOMAdaptor} from '../core/DOMAdaptor.js'; 27 | 28 | /** 29 | * Create the HTML handler object and register it with MathJax. 30 | * 31 | * @param {DOMAdaptor} adaptor The DOM adaptor to use with HTML 32 | * @return {HTMLHandler} The newly created handler 33 | * 34 | * @template N The HTMLElement node class 35 | * @template T The Text node class 36 | * @template D The Document class 37 | */ 38 | export function RegisterHTMLHandler(adaptor: DOMAdaptor): HTMLHandler { 39 | const handler = new HTMLHandler(adaptor); 40 | mathjax.handlers.register(handler); 41 | return handler; 42 | } 43 | -------------------------------------------------------------------------------- /ts/handlers/html/HTMLMathList.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the HTMLMathList object 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {AbstractMathList} from '../../core/MathList.js'; 25 | 26 | /*****************************************************************/ 27 | /** 28 | * Implement the HTMLMathList class (extends AbstractMathList) 29 | * 30 | * @template N The HTMLElement node class 31 | * @template T The Text node class 32 | * @template D The Document class 33 | */ 34 | export class HTMLMathList extends AbstractMathList { 35 | } 36 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/input/AsciiMath.d.ts: -------------------------------------------------------------------------------- 1 | export var LegacyAsciiMath: any; 2 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/input/AsciiMath.js: -------------------------------------------------------------------------------- 1 | MathJax = Object.assign(global.MathJax || {}, require("../legacy/MathJax.js").MathJax); 2 | 3 | // 4 | // Load component-based configuration, if any 5 | // 6 | if (MathJax.config && MathJax.config.asciimath) { 7 | MathJax.Hub.Config({AsciiMath: MathJax.config.asciimath}); 8 | } 9 | 10 | MathJax.Ajax.Preloading( 11 | "[MathJax]/jax/input/AsciiMath/config.js", 12 | "[MathJax]/jax/input/AsciiMath/jax.js", 13 | "[MathJax]/jax/element/mml/jax.js" 14 | ); 15 | 16 | require("../legacy/jax/element/mml/jax.js"); 17 | require("../legacy/jax/input/AsciiMath/config.js"); 18 | require("../legacy/jax/input/AsciiMath/jax.js"); 19 | 20 | require("../legacy/jax/element/MmlNode.js"); 21 | 22 | var MmlFactory = require("../../../../core/MmlTree/MmlFactory.js").MmlFactory; 23 | var factory = new MmlFactory(); 24 | 25 | exports.LegacyAsciiMath = { 26 | Compile: function (am,display) { 27 | var script = { 28 | type: "math/asciimath", 29 | innerText: am, 30 | MathJax: {} 31 | }; 32 | var node = MathJax.InputJax.AsciiMath.Translate(script).root.toMmlNode(factory); 33 | node.setInheritedAttributes({}, display, 0, false); 34 | return node; 35 | }, 36 | Translate: function (am,display) { 37 | return this.Compile(am,display); 38 | } 39 | }; 40 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/legacy/jax/element/mml/optable/CombDiacritMarks.js: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * MathJax/jax/output/HTML-CSS/optable/CombDiacritMarks.js 4 | * 5 | * Copyright (c) 2010-2017 The MathJax Consortium 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | */ 20 | 21 | (function (MML) { 22 | var MO = MML.mo.OPTYPES; 23 | var TEXCLASS = MML.TEXCLASS; 24 | 25 | MathJax.Hub.Insert(MML.mo.prototype,{ 26 | OPTABLE: { 27 | postfix: { 28 | '\u0311': MO.ACCENT // combining inverted breve 29 | } 30 | } 31 | }); 32 | 33 | MathJax.Ajax.loadComplete(MML.optableDir+"/CombDiacritMarks.js"); 34 | 35 | })(MathJax.ElementJax.mml); 36 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/legacy/jax/element/mml/optable/CombDiactForSymbols.js: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * MathJax/jax/output/HTML-CSS/optable/CombDiactForSymbols.js 4 | * 5 | * Copyright (c) 2010-2017 The MathJax Consortium 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | */ 20 | 21 | (function (MML) { 22 | var MO = MML.mo.OPTYPES; 23 | var TEXCLASS = MML.TEXCLASS; 24 | 25 | MathJax.Hub.Insert(MML.mo.prototype,{ 26 | OPTABLE: { 27 | postfix: { 28 | '\u20DB': MO.ACCENT, // combining three dots above 29 | '\u20DC': MO.ACCENT // combining four dots above 30 | } 31 | } 32 | }); 33 | 34 | MathJax.Ajax.loadComplete(MML.optableDir+"/CombDiactForSymbols.js"); 35 | 36 | })(MathJax.ElementJax.mml); 37 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/legacy/jax/element/mml/optable/Dingbats.js: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * MathJax/jax/output/HTML-CSS/optable/Dingbats.js 4 | * 5 | * Copyright (c) 2010-2017 The MathJax Consortium 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | */ 20 | 21 | (function (MML) { 22 | var MO = MML.mo.OPTYPES; 23 | var TEXCLASS = MML.TEXCLASS; 24 | 25 | MathJax.Hub.Insert(MML.mo.prototype,{ 26 | OPTABLE: { 27 | prefix: { 28 | '\u2772': MO.OPEN // light left tortoise shell bracket ornament 29 | }, 30 | postfix: { 31 | '\u2773': MO.CLOSE // light right tortoise shell bracket ornament 32 | } 33 | } 34 | }); 35 | 36 | MathJax.Ajax.loadComplete(MML.optableDir+"/Dingbats.js"); 37 | 38 | })(MathJax.ElementJax.mml); 39 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/legacy/jax/element/mml/optable/GreekAndCoptic.js: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * MathJax/jax/output/HTML-CSS/optable/GreekAndCoptic.js 4 | * 5 | * Copyright (c) 2010-2017 The MathJax Consortium 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | */ 20 | 21 | (function (MML) { 22 | var MO = MML.mo.OPTYPES; 23 | var TEXCLASS = MML.TEXCLASS; 24 | 25 | MathJax.Hub.Insert(MML.mo.prototype,{ 26 | OPTABLE: { 27 | infix: { 28 | '\u03F6': MO.REL // greek reversed lunate epsilon symbol 29 | } 30 | } 31 | }); 32 | 33 | MathJax.Ajax.loadComplete(MML.optableDir+"/GreekAndCoptic.js"); 34 | 35 | })(MathJax.ElementJax.mml); 36 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/legacy/jax/element/mml/optable/Latin1Supplement.js: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * MathJax/jax/output/HTML-CSS/optable/Latin1Supplement.js 4 | * 5 | * Copyright (c) 2010-2017 The MathJax Consortium 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | */ 20 | 21 | (function (MML) { 22 | var MO = MML.mo.OPTYPES; 23 | var TEXCLASS = MML.TEXCLASS; 24 | 25 | MathJax.Hub.Insert(MML.mo.prototype,{ 26 | OPTABLE: { 27 | postfix: { 28 | '\u00B0': MO.ORD, // degree sign 29 | '\u00B4': MO.ACCENT, // acute accent 30 | '\u00B8': MO.ACCENT // cedilla 31 | } 32 | } 33 | }); 34 | 35 | MathJax.Ajax.loadComplete(MML.optableDir+"/Latin1Supplement.js"); 36 | 37 | })(MathJax.ElementJax.mml); 38 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/legacy/jax/element/mml/optable/LetterlikeSymbols.js: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * MathJax/jax/output/HTML-CSS/optable/LetterlikeSymbols.js 4 | * 5 | * Copyright (c) 2010-2017 The MathJax Consortium 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | */ 20 | 21 | (function (MML) { 22 | var MO = MML.mo.OPTYPES; 23 | var TEXCLASS = MML.TEXCLASS; 24 | 25 | MathJax.Hub.Insert(MML.mo.prototype,{ 26 | OPTABLE: { 27 | prefix: { 28 | '\u2145': MO.ORD21, // double-struck italic capital d 29 | '\u2146': [2,0,TEXCLASS.ORD] // double-struck italic small d 30 | } 31 | } 32 | }); 33 | 34 | MathJax.Ajax.loadComplete(MML.optableDir+"/LetterlikeSymbols.js"); 35 | 36 | })(MathJax.ElementJax.mml); 37 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/legacy/jax/element/mml/optable/MiscSymbolsAndArrows.js: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * MathJax/jax/output/HTML-CSS/optable/MiscSymbolsAndArrows.js 4 | * 5 | * Copyright (c) 2010-2017 The MathJax Consortium 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | */ 20 | 21 | (function (MML) { 22 | var MO = MML.mo.OPTYPES; 23 | var TEXCLASS = MML.TEXCLASS; 24 | 25 | MathJax.Hub.Insert(MML.mo.prototype,{ 26 | OPTABLE: { 27 | infix: { 28 | '\u2B45': MO.RELSTRETCH, // leftwards quadruple arrow 29 | '\u2B46': MO.RELSTRETCH // rightwards quadruple arrow 30 | } 31 | } 32 | }); 33 | 34 | MathJax.Ajax.loadComplete(MML.optableDir+"/MiscSymbolsAndArrows.js"); 35 | 36 | })(MathJax.ElementJax.mml); 37 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/legacy/jax/element/mml/optable/MiscTechnical.js: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * MathJax/jax/output/HTML-CSS/optable/MiscTechnical.js 4 | * 5 | * Copyright (c) 2010-2017 The MathJax Consortium 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | */ 20 | 21 | (function (MML) { 22 | var MO = MML.mo.OPTYPES; 23 | var TEXCLASS = MML.TEXCLASS; 24 | 25 | MathJax.Hub.Insert(MML.mo.prototype,{ 26 | OPTABLE: { 27 | postfix: { 28 | '\u23B4': MO.WIDEACCENT, // top square bracket 29 | '\u23B5': MO.WIDEACCENT, // bottom square bracket 30 | '\u23DC': MO.WIDEACCENT, // top parenthesis 31 | '\u23DD': MO.WIDEACCENT, // bottom parenthesis 32 | '\u23E0': MO.WIDEACCENT, // top tortoise shell bracket 33 | '\u23E1': MO.WIDEACCENT // bottom tortoise shell bracket 34 | } 35 | } 36 | }); 37 | 38 | MathJax.Ajax.loadComplete(MML.optableDir+"/MiscTechnical.js"); 39 | 40 | })(MathJax.ElementJax.mml); 41 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/legacy/jax/element/mml/optable/SpacingModLetters.js: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * MathJax/jax/output/HTML-CSS/optable/SpacingModLetters.js 4 | * 5 | * Copyright (c) 2010-2017 The MathJax Consortium 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | */ 20 | 21 | (function (MML) { 22 | var MO = MML.mo.OPTYPES; 23 | var TEXCLASS = MML.TEXCLASS; 24 | 25 | MathJax.Hub.Insert(MML.mo.prototype,{ 26 | OPTABLE: { 27 | postfix: { 28 | '\u02CD': MO.WIDEACCENT, // modifier letter low macron 29 | '\u02DA': MO.ACCENT, // ring above 30 | '\u02DD': MO.ACCENT, // double acute accent 31 | '\u02F7': MO.WIDEACCENT // modifier letter low tilde 32 | } 33 | } 34 | }); 35 | 36 | MathJax.Ajax.loadComplete(MML.optableDir+"/SpacingModLetters.js"); 37 | 38 | })(MathJax.ElementJax.mml); 39 | -------------------------------------------------------------------------------- /ts/input/asciimath/mathjax2/legacy/jax/element/mml/optable/SupplementalArrowsA.js: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * MathJax/jax/output/HTML-CSS/optable/SupplementalArrowsA.js 4 | * 5 | * Copyright (c) 2010-2017 The MathJax Consortium 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | */ 20 | 21 | (function (MML) { 22 | var MO = MML.mo.OPTYPES; 23 | var TEXCLASS = MML.TEXCLASS; 24 | 25 | MathJax.Hub.Insert(MML.mo.prototype,{ 26 | OPTABLE: { 27 | infix: { 28 | '\u27F0': MO.RELSTRETCH, // upwards quadruple arrow 29 | '\u27F1': MO.RELSTRETCH, // downwards quadruple arrow 30 | '\u27FB': MO.WIDEREL, // long leftwards arrow from bar 31 | '\u27FD': MO.WIDEREL, // long leftwards double arrow from bar 32 | '\u27FE': MO.WIDEREL, // long rightwards double arrow from bar 33 | '\u27FF': MO.WIDEREL // long rightwards squiggle arrow 34 | } 35 | } 36 | }); 37 | 38 | MathJax.Ajax.loadComplete(MML.optableDir+"/SupplementalArrowsA.js"); 39 | 40 | })(MathJax.ElementJax.mml); 41 | -------------------------------------------------------------------------------- /ts/input/tex/Types.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | /** 20 | * @fileoverview Basic type definitions. 21 | * 22 | * @author v.sorge@mathjax.org (Volker Sorge) 23 | */ 24 | 25 | import {StackItem} from './StackItem.js'; 26 | import {Symbol} from './Symbol.js'; 27 | import TexParser from './TexParser.js'; 28 | 29 | export type Args = boolean | number | string | null; 30 | 31 | export type Attributes = Record; 32 | 33 | export type Environment = Record; 34 | 35 | export type ParseInput = [TexParser, string]; 36 | export type ParseResult = void | boolean | StackItem; 37 | 38 | export type ParseMethod = (parser: TexParser, c: string | Symbol | StackItem, ...rest: any[]) => ParseResult; 39 | -------------------------------------------------------------------------------- /ts/input/tex/amscd/AmsCdConfiguration.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | /** 20 | * @fileoverview Configuration file for the AMScd package. 21 | * 22 | * @author v.sorge@mathjax.org (Volker Sorge) 23 | */ 24 | 25 | import {Configuration} from '../Configuration.js'; 26 | import './AmsCdMappings.js'; 27 | 28 | 29 | export const AmsCdConfiguration = Configuration.create( 30 | 'amscd', { 31 | handler: { 32 | character: ['amscd_special'], 33 | macro: ['amscd_macros'], 34 | environment: ['amscd_environment'] 35 | }, 36 | options: { 37 | amscd: { 38 | colspace: '5pt', 39 | rowspace: '5pt', 40 | harrowsize: '2.75em', 41 | varrowsize: '1.75em', 42 | hideHorizontalLabels: false 43 | } 44 | } 45 | } 46 | ); 47 | -------------------------------------------------------------------------------- /ts/input/tex/amscd/AmsCdMappings.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | /** 20 | * @fileoverview Symbol mappings for the AMScd package. 21 | * 22 | * @author v.sorge@mathjax.org (Volker Sorge) 23 | */ 24 | 25 | import * as sm from '../SymbolMap.js'; 26 | import ParseMethods from '../ParseMethods.js'; 27 | import AmsCdMethods from './AmsCdMethods.js'; 28 | 29 | 30 | new sm.EnvironmentMap('amscd_environment', ParseMethods.environment, 31 | {CD: 'CD'}, AmsCdMethods); 32 | 33 | new sm.CommandMap('amscd_macros', { 34 | minCDarrowwidth: 'minCDarrowwidth', 35 | minCDarrowheight: 'minCDarrowheight', 36 | }, AmsCdMethods); 37 | 38 | new sm.MacroMap('amscd_special', {'@': 'arrow'}, AmsCdMethods); 39 | -------------------------------------------------------------------------------- /ts/input/tex/braket/BraketConfiguration.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | /** 20 | * @fileoverview Configuration file for the Braket package. 21 | * 22 | * @author v.sorge@mathjax.org (Volker Sorge) 23 | */ 24 | 25 | import {Configuration} from '../Configuration.js'; 26 | import {BraketItem} from './BraketItems.js'; 27 | import './BraketMappings.js'; 28 | 29 | 30 | export const BraketConfiguration = Configuration.create( 31 | 'braket', { 32 | handler: { 33 | character: ['Braket-characters'], 34 | macro: ['Braket-macros'] 35 | }, 36 | items: { 37 | [BraketItem.prototype.kind]: BraketItem, 38 | } 39 | } 40 | ); 41 | 42 | 43 | -------------------------------------------------------------------------------- /ts/input/tex/html/HtmlConfiguration.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | /** 20 | * @fileoverview Configuration file for the Html package. 21 | * 22 | * @author v.sorge@mathjax.org (Volker Sorge) 23 | */ 24 | 25 | import {Configuration} from '../Configuration.js'; 26 | import {CommandMap} from '../SymbolMap.js'; 27 | import HtmlMethods from './HtmlMethods.js'; 28 | 29 | 30 | new CommandMap('html_macros', { 31 | href: 'Href', 32 | 'class': 'Class', 33 | style: 'Style', 34 | cssId: 'Id' 35 | }, HtmlMethods); 36 | 37 | export const HtmlConfiguration = Configuration.create( 38 | 'html', {handler: { macro: ['html_macros']}} 39 | ); 40 | -------------------------------------------------------------------------------- /ts/input/tex/newcommand/NewcommandMappings.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | /** 20 | * @fileoverview Mappings for TeX parsing for definitorial commands. 21 | * 22 | * @author v.sorge@mathjax.org (Volker Sorge) 23 | */ 24 | 25 | import NewcommandMethods from './NewcommandMethods.js'; 26 | import {CommandMap} from '../SymbolMap.js'; 27 | 28 | 29 | /** 30 | * Macros for newcommand etc. 31 | */ 32 | new CommandMap('Newcommand-macros', { 33 | newcommand: 'NewCommand', 34 | renewcommand: 'NewCommand', 35 | newenvironment: 'NewEnvironment', 36 | renewenvironment: 'NewEnvironment', 37 | def: 'MacroDef', 38 | 'let': 'Let' 39 | }, NewcommandMethods); 40 | 41 | 42 | -------------------------------------------------------------------------------- /ts/input/tex/textcomp/TextcompConfiguration.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2021-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | /** 20 | * @fileoverview Configuration file for the textcomp package. 21 | * 22 | * @author v.sorge@mathjax.org (Volker Sorge) 23 | */ 24 | 25 | import {Configuration} from '../Configuration.js'; 26 | import './TextcompMappings.js'; 27 | 28 | 29 | export const TextcompConfiguration = Configuration.create( 30 | 'textcomp', { 31 | handler: {macro: ['textcomp-macros']} 32 | } 33 | ); 34 | 35 | -------------------------------------------------------------------------------- /ts/output/chtml/Wrappers/mi.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the CHTMLmi wrapper for the MmlMi object 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {CHTMLWrapper, CHTMLConstructor} from '../Wrapper.js'; 25 | import {CommonMiMixin} from '../../common/Wrappers/mi.js'; 26 | import {MmlMi} from '../../../core/MmlTree/MmlNodes/mi.js'; 27 | 28 | /*****************************************************************/ 29 | /** 30 | * The CHTMLmi wrapper for the MmlMi object 31 | * 32 | * @template N The HTMLElement node class 33 | * @template T The Text node class 34 | * @template D The Document class 35 | */ 36 | // @ts-ignore 37 | export class CHTMLmi extends 38 | CommonMiMixin>(CHTMLWrapper) { 39 | 40 | /** 41 | * The mi wrapper 42 | */ 43 | public static kind = MmlMi.prototype.kind; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /ts/output/chtml/Wrappers/mn.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the CHTMLmn wrapper for the MmlMn object 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {CHTMLWrapper, CHTMLConstructor} from '../Wrapper.js'; 25 | import {CommonMnMixin} from '../../common/Wrappers/mn.js'; 26 | import {MmlMn} from '../../../core/MmlTree/MmlNodes/mn.js'; 27 | 28 | /*****************************************************************/ 29 | /** 30 | * The CHTMLmn wrapper for the MmlMn object 31 | * 32 | * @template N The HTMLElement node class 33 | * @template T The Text node class 34 | * @template D The Document class 35 | */ 36 | // @ts-ignore 37 | export class CHTMLmn extends 38 | CommonMnMixin>(CHTMLWrapper) { 39 | 40 | /** 41 | * The mn wrapper 42 | */ 43 | public static kind = MmlMn.prototype.kind; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /ts/output/chtml/Wrappers/ms.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the CHTMLms wrapper for the MmlMs object 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {CHTMLWrapper, CHTMLConstructor} from '../Wrapper.js'; 25 | import {CommonMsMixin} from '../../common/Wrappers/ms.js'; 26 | import {MmlMs} from '../../../core/MmlTree/MmlNodes/ms.js'; 27 | 28 | /*****************************************************************/ 29 | /** 30 | * The CHTMLms wrapper for the MmlMs object 31 | * 32 | * @template N The HTMLElement node class 33 | * @template T The Text node class 34 | * @template D The Document class 35 | */ 36 | // @ts-ignore 37 | export class CHTMLms extends 38 | CommonMsMixin>(CHTMLWrapper) { 39 | 40 | /** 41 | * The ms wrapper 42 | */ 43 | public static kind = MmlMs.prototype.kind; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /ts/output/chtml/Wrappers/mtext.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2019-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the CHTMLmtext wrapper for the MmlMtext object 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {CHTMLWrapper, CHTMLConstructor} from '../Wrapper.js'; 25 | import {CommonMtextMixin} from '../../common/Wrappers/mtext.js'; 26 | import {MmlMtext} from '../../../core/MmlTree/MmlNodes/mtext.js'; 27 | 28 | /*****************************************************************/ 29 | /** 30 | * The CHTMLmtext wrapper for the MmlMtext object 31 | * 32 | * @template N The HTMLElement node class 33 | * @template T The Text node class 34 | * @template D The Document class 35 | */ 36 | // @ts-ignore 37 | export class CHTMLmtext extends 38 | CommonMtextMixin>(CHTMLWrapper) { 39 | 40 | /** 41 | * The mtext wrapper 42 | */ 43 | public static kind = MmlMtext.prototype.kind; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_AMS-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_AMS-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Calligraphic-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Calligraphic-Bold.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Calligraphic-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Calligraphic-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Fraktur-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Fraktur-Bold.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Fraktur-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Fraktur-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Main-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Main-Bold.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Main-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Main-Italic.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Main-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Main-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Math-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Math-BoldItalic.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Math-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Math-Italic.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Math-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Math-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_SansSerif-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_SansSerif-Bold.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_SansSerif-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_SansSerif-Italic.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_SansSerif-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_SansSerif-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Script-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Script-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Size1-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Size1-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Size2-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Size2-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Size3-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Size3-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Size4-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Size4-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Typewriter-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Typewriter-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Vector-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Vector-Bold.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Vector-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Vector-Regular.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex-woff-v2/MathJax_Zero.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathjax/MathJax-src/844ad7513005fa096a07d2468bf59c7f6a6c3a50/ts/output/chtml/fonts/tex-woff-v2/MathJax_Zero.woff -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/bold-italic.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {boldItalic as font} from '../../../common/fonts/tex/bold-italic.js'; 19 | 20 | export const boldItalic: CHTMLCharMap = AddCSS(font, { 21 | 0x131: {f: 'B'}, 22 | 0x237: {f: 'B'}, 23 | 0x2044: {c: '/'}, 24 | 0x2206: {c: '\\394'}, 25 | 0x29F8: {c: '/'}, 26 | }); 27 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/double-struck.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | export {doubleStruck} from '../../../common/fonts/tex/double-struck.js'; 18 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/fraktur-bold.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {frakturBold as font} from '../../../common/fonts/tex/fraktur-bold.js'; 19 | 20 | export const frakturBold: CHTMLCharMap = AddCSS(font, { 21 | 0x2044: {c: '/'}, 22 | }); 23 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/fraktur.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {fraktur as font} from '../../../common/fonts/tex/fraktur.js'; 19 | 20 | export const fraktur: CHTMLCharMap = AddCSS(font, { 21 | 0x2044: {c: '/'}, 22 | }); 23 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/italic.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {italic as font} from '../../../common/fonts/tex/italic.js'; 19 | 20 | export const italic: CHTMLCharMap = AddCSS(font, { 21 | 0x2F: {f: 'I'}, 22 | 0x3DD: {c: '\\E008', f: 'A'}, 23 | 0x2015: {c: '\\2014'}, 24 | 0x2017: {c: '_'}, 25 | 0x2044: {c: '/', f: 'I'}, 26 | 0x2206: {c: '\\394', f: 'I'}, 27 | 0x29F8: {c: '/', f: 'I'}, 28 | }); 29 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/largeop.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {largeop as font} from '../../../common/fonts/tex/largeop.js'; 19 | 20 | export const largeop: CHTMLCharMap = AddCSS(font, { 21 | 0x2016: {f: 'S1'}, 22 | 0x2044: {c: '/'}, 23 | 0x2191: {f: 'S1'}, 24 | 0x2193: {f: 'S1'}, 25 | 0x21D1: {f: 'S1'}, 26 | 0x21D3: {f: 'S1'}, 27 | 0x2223: {f: 'S1'}, 28 | 0x2225: {f: 'S1'}, 29 | 0x2329: {c: '\\27E8'}, 30 | 0x232A: {c: '\\27E9'}, 31 | 0x23D0: {f: 'S1'}, 32 | 0x2758: {c: '\\2223', f: 'S1'}, 33 | 0x2A0C: {c: '\\222C\\222C'}, 34 | 0x3008: {c: '\\27E8'}, 35 | 0x3009: {c: '\\27E9'}, 36 | }); 37 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/monospace.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {monospace as font} from '../../../common/fonts/tex/monospace.js'; 19 | 20 | export const monospace: CHTMLCharMap = AddCSS(font, { 21 | 0x2B9: {c: '\\2032'}, 22 | 0x391: {c: 'A'}, 23 | 0x392: {c: 'B'}, 24 | 0x395: {c: 'E'}, 25 | 0x396: {c: 'Z'}, 26 | 0x397: {c: 'H'}, 27 | 0x399: {c: 'I'}, 28 | 0x39A: {c: 'K'}, 29 | 0x39C: {c: 'M'}, 30 | 0x39D: {c: 'N'}, 31 | 0x39F: {c: 'O'}, 32 | 0x3A1: {c: 'P'}, 33 | 0x3A4: {c: 'T'}, 34 | 0x3A7: {c: 'X'}, 35 | 0x2017: {c: '_'}, 36 | 0x2033: {c: '\\2032\\2032'}, 37 | 0x2034: {c: '\\2032\\2032\\2032'}, 38 | 0x2044: {c: '/'}, 39 | 0x2057: {c: '\\2032\\2032\\2032\\2032'}, 40 | 0x2206: {c: '\\394'}, 41 | }); 42 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/sans-serif-bold-italic.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {sansSerifBoldItalic as font} from '../../../common/fonts/tex/sans-serif-bold-italic.js'; 19 | 20 | export const sansSerifBoldItalic: CHTMLCharMap = AddCSS(font, { 21 | 0x131: {f: 'SSB'}, 22 | 0x237: {f: 'SSB'}, 23 | }); 24 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/sans-serif-bold.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {sansSerifBold as font} from '../../../common/fonts/tex/sans-serif-bold.js'; 19 | 20 | export const sansSerifBold: CHTMLCharMap = AddCSS(font, { 21 | 0x2015: {c: '\\2014'}, 22 | 0x2017: {c: '_'}, 23 | 0x2044: {c: '/'}, 24 | 0x2206: {c: '\\394'}, 25 | }); 26 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/sans-serif-italic.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {sansSerifItalic as font} from '../../../common/fonts/tex/sans-serif-italic.js'; 19 | 20 | export const sansSerifItalic: CHTMLCharMap = AddCSS(font, { 21 | 0x391: {c: 'A'}, 22 | 0x392: {c: 'B'}, 23 | 0x395: {c: 'E'}, 24 | 0x396: {c: 'Z'}, 25 | 0x397: {c: 'H'}, 26 | 0x399: {c: 'I'}, 27 | 0x39A: {c: 'K'}, 28 | 0x39C: {c: 'M'}, 29 | 0x39D: {c: 'N'}, 30 | 0x39F: {c: 'O'}, 31 | 0x3A1: {c: 'P'}, 32 | 0x3A4: {c: 'T'}, 33 | 0x3A7: {c: 'X'}, 34 | 0x2015: {c: '\\2014'}, 35 | 0x2017: {c: '_'}, 36 | 0x2044: {c: '/'}, 37 | 0x2206: {c: '\\394'}, 38 | }); 39 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/sans-serif.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {sansSerif as font} from '../../../common/fonts/tex/sans-serif.js'; 19 | 20 | export const sansSerif: CHTMLCharMap = AddCSS(font, { 21 | 0x391: {c: 'A'}, 22 | 0x392: {c: 'B'}, 23 | 0x395: {c: 'E'}, 24 | 0x396: {c: 'Z'}, 25 | 0x397: {c: 'H'}, 26 | 0x399: {c: 'I'}, 27 | 0x39A: {c: 'K'}, 28 | 0x39C: {c: 'M'}, 29 | 0x39D: {c: 'N'}, 30 | 0x39F: {c: 'O'}, 31 | 0x3A1: {c: 'P'}, 32 | 0x3A4: {c: 'T'}, 33 | 0x3A7: {c: 'X'}, 34 | 0x2015: {c: '\\2014'}, 35 | 0x2017: {c: '_'}, 36 | 0x2044: {c: '/'}, 37 | 0x2206: {c: '\\394'}, 38 | }); 39 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/script-bold.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | export {scriptBold} from '../../../common/fonts/tex/script-bold.js'; 18 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/script.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | export {script} from '../../../common/fonts/tex/script.js'; 18 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/smallop.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {smallop as font} from '../../../common/fonts/tex/smallop.js'; 19 | 20 | export const smallop: CHTMLCharMap = AddCSS(font, { 21 | 0x2044: {c: '/'}, 22 | 0x2329: {c: '\\27E8'}, 23 | 0x232A: {c: '\\27E9'}, 24 | 0x2758: {c: '\\2223'}, 25 | 0x2A0C: {c: '\\222C\\222C'}, 26 | 0x3008: {c: '\\27E8'}, 27 | 0x3009: {c: '\\27E9'}, 28 | }); 29 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/tex-calligraphic-bold.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {texCalligraphicBold as font} from '../../../common/fonts/tex/tex-calligraphic-bold.js'; 19 | 20 | export const texCalligraphicBold: CHTMLCharMap = AddCSS(font, { 21 | 0x131: {f: 'B'}, 22 | 0x237: {f: 'B'}, 23 | }); 24 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/tex-calligraphic.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | export {texCalligraphic} from '../../../common/fonts/tex/tex-calligraphic.js'; 18 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/tex-mathit.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | export {texMathit} from '../../../common/fonts/tex/tex-mathit.js'; 18 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/tex-oldstyle-bold.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | export {texOldstyleBold} from '../../../common/fonts/tex/tex-oldstyle-bold.js'; 18 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/tex-oldstyle.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | export {texOldstyle} from '../../../common/fonts/tex/tex-oldstyle.js'; 18 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/tex-size3.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {texSize3 as font} from '../../../common/fonts/tex/tex-size3.js'; 19 | 20 | export const texSize3: CHTMLCharMap = AddCSS(font, { 21 | 0x2044: {c: '/'}, 22 | 0x2329: {c: '\\27E8'}, 23 | 0x232A: {c: '\\27E9'}, 24 | 0x3008: {c: '\\27E8'}, 25 | 0x3009: {c: '\\27E9'}, 26 | }); 27 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/tex-size4.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {texSize4 as font} from '../../../common/fonts/tex/tex-size4.js'; 19 | 20 | export const texSize4: CHTMLCharMap = AddCSS(font, { 21 | 0x2044: {c: '/'}, 22 | 0x2329: {c: '\\27E8'}, 23 | 0x232A: {c: '\\27E9'}, 24 | 0x3008: {c: '\\27E8'}, 25 | 0x3009: {c: '\\27E9'}, 26 | 0xE155: {c: '\\E153\\E152'}, 27 | 0xE156: {c: '\\E151\\E150'}, 28 | }); 29 | -------------------------------------------------------------------------------- /ts/output/chtml/fonts/tex/tex-variant.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {CHTMLCharMap, AddCSS} from '../../FontData.js'; 18 | import {texVariant as font} from '../../../common/fonts/tex/tex-variant.js'; 19 | 20 | export const texVariant: CHTMLCharMap = AddCSS(font, { 21 | 0x3F0: {c: '\\E009'}, 22 | 0x210F: {f: ''}, 23 | 0x2224: {c: '\\E006'}, 24 | 0x2226: {c: '\\E007'}, 25 | 0x2268: {c: '\\E00C'}, 26 | 0x2269: {c: '\\E00D'}, 27 | 0x2270: {c: '\\E011'}, 28 | 0x2271: {c: '\\E00E'}, 29 | 0x2288: {c: '\\E016'}, 30 | 0x2289: {c: '\\E018'}, 31 | 0x228A: {c: '\\E01A'}, 32 | 0x228B: {c: '\\E01B'}, 33 | 0x2A87: {c: '\\E010'}, 34 | 0x2A88: {c: '\\E00F'}, 35 | 0x2ACB: {c: '\\E017'}, 36 | 0x2ACC: {c: '\\E019'}, 37 | }); 38 | -------------------------------------------------------------------------------- /ts/output/common/fonts/tex/bold-italic.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import {CharMap, CharOptions} from '../../FontData.js'; 19 | 20 | export const boldItalic: CharMap = { 21 | 0x2F: [.711, .21, .894], 22 | 0x131: [.452, .008, .394, {sk: .0319}], 23 | 0x237: [.451, .201, .439, {sk: .0958}], 24 | 0x2044: [.711, .21, .894], 25 | 0x2206: [.711, 0, .958, {sk: .192}], 26 | 0x29F8: [.711, .21, .894], 27 | }; 28 | -------------------------------------------------------------------------------- /ts/output/common/fonts/tex/double-struck.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import {CharMap, CharOptions} from '../../FontData.js'; 19 | 20 | export const doubleStruck: CharMap = { 21 | }; 22 | -------------------------------------------------------------------------------- /ts/output/common/fonts/tex/sans-serif-bold-italic.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import {CharMap, CharOptions} from '../../FontData.js'; 19 | 20 | export const sansSerifBoldItalic: CharMap = { 21 | 0x131: [.458, 0, .256], 22 | 0x237: [.458, .205, .286], 23 | }; 24 | -------------------------------------------------------------------------------- /ts/output/common/fonts/tex/script-bold.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import {CharMap, CharOptions} from '../../FontData.js'; 19 | 20 | export const scriptBold: CharMap = { 21 | }; 22 | -------------------------------------------------------------------------------- /ts/output/common/fonts/tex/script.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import {CharMap, CharOptions} from '../../FontData.js'; 19 | 20 | export const script: CharMap = { 21 | }; 22 | -------------------------------------------------------------------------------- /ts/output/svg/Wrappers/mi.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the SVGmi wrapper for the MmlMi object 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {SVGWrapper, SVGConstructor} from '../Wrapper.js'; 25 | import {CommonMiMixin} from '../../common/Wrappers/mi.js'; 26 | import {MmlMi} from '../../../core/MmlTree/MmlNodes/mi.js'; 27 | 28 | /*****************************************************************/ 29 | /** 30 | * The SVGmi wrapper for the MmlMi object 31 | * 32 | * @template N The HTMLElement node class 33 | * @template T The Text node class 34 | * @template D The Document class 35 | */ 36 | // @ts-ignore 37 | export class SVGmi extends 38 | CommonMiMixin>(SVGWrapper) { 39 | 40 | /** 41 | * The mi wrapper 42 | */ 43 | public static kind = MmlMi.prototype.kind; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /ts/output/svg/Wrappers/mn.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the SVGmn wrapper for the MmlMn object 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {SVGWrapper, SVGConstructor} from '../Wrapper.js'; 25 | import {CommonMnMixin} from '../../common/Wrappers/mn.js'; 26 | import {MmlMn} from '../../../core/MmlTree/MmlNodes/mn.js'; 27 | 28 | /*****************************************************************/ 29 | /** 30 | * The SVGmn wrapper for the MmlMn object 31 | * 32 | * @template N The HTMLElement node class 33 | * @template T The Text node class 34 | * @template D The Document class 35 | */ 36 | // @ts-ignore 37 | export class SVGmn extends 38 | CommonMnMixin>(SVGWrapper) { 39 | 40 | /** 41 | * The mn wrapper 42 | */ 43 | public static kind = MmlMn.prototype.kind; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /ts/output/svg/Wrappers/mphantom.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the SVGmphantom wrapper for the MmlMphantom object 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {SVGWrapper} from '../Wrapper.js'; 25 | import {MmlMphantom} from '../../../core/MmlTree/MmlNodes/mphantom.js'; 26 | 27 | /*****************************************************************/ 28 | /** 29 | * The SVGmi wrapper for the MmlMi object 30 | * 31 | * @template N The HTMLElement node class 32 | * @template T The Text node class 33 | * @template D The Document class 34 | */ 35 | export class SVGmphantom extends SVGWrapper { 36 | 37 | /** 38 | * The mphantom wrapper 39 | */ 40 | public static kind = MmlMphantom.prototype.kind; 41 | 42 | /** 43 | * @override 44 | */ 45 | public toSVG(parent: N) { 46 | this.standardSVGnode(parent); 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /ts/output/svg/Wrappers/ms.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the SVGms wrapper for the MmlMs object 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {SVGWrapper, SVGConstructor} from '../Wrapper.js'; 25 | import {CommonMsMixin} from '../../common/Wrappers/ms.js'; 26 | import {MmlMs} from '../../../core/MmlTree/MmlNodes/ms.js'; 27 | 28 | /*****************************************************************/ 29 | /** 30 | * The SVGms wrapper for the MmlMs object 31 | * 32 | * @template N The HTMLElement node class 33 | * @template T The Text node class 34 | * @template D The Document class 35 | */ 36 | // @ts-ignore 37 | export class SVGms extends 38 | CommonMsMixin>(SVGWrapper) { 39 | 40 | /** 41 | * The ms wrapper 42 | */ 43 | public static kind = MmlMs.prototype.kind; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /ts/output/svg/Wrappers/mspace.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the SVGmspace wrapper for the MmlMspace object 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {SVGWrapper, SVGConstructor} from '../Wrapper.js'; 25 | import {CommonMspaceMixin} from '../../common/Wrappers/mspace.js'; 26 | import {MmlMspace} from '../../../core/MmlTree/MmlNodes/mspace.js'; 27 | 28 | /*****************************************************************/ 29 | /** 30 | * The SVGmspace wrapper for the MmlMspace object 31 | * 32 | * @template N The HTMLElement node class 33 | * @template T The Text node class 34 | * @template D The Document class 35 | */ 36 | // @ts-ignore 37 | export class SVGmspace extends 38 | CommonMspaceMixin>(SVGWrapper) { 39 | 40 | /** 41 | * The mspace wrapper 42 | */ 43 | public static kind = MmlMspace.prototype.kind; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /ts/output/svg/Wrappers/mtext.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2019-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements the SVGmtext wrapper for the MmlMtext object 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {SVGWrapper, SVGConstructor} from '../Wrapper.js'; 25 | import {CommonMtextMixin} from '../../common/Wrappers/mtext.js'; 26 | import {MmlMtext} from '../../../core/MmlTree/MmlNodes/mtext.js'; 27 | 28 | /*****************************************************************/ 29 | /** 30 | * The SVGmtext wrapper for the MmlMtext object 31 | * 32 | * @template N The HTMLElement node class 33 | * @template T The Text node class 34 | * @template D The Document class 35 | */ 36 | // @ts-ignore 37 | export class SVGmtext extends 38 | CommonMtextMixin>(SVGWrapper) { 39 | 40 | /** 41 | * The mtext wrapper 42 | */ 43 | public static kind = MmlMtext.prototype.kind; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /ts/output/svg/fonts/tex/double-struck.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | export {doubleStruck} from '../../../common/fonts/tex/double-struck.js'; 18 | -------------------------------------------------------------------------------- /ts/output/svg/fonts/tex/sans-serif-bold-italic.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import {SVGCharMap, AddPaths} from '../../FontData.js'; 18 | import {sansSerifBoldItalic as font} from '../../../common/fonts/tex/sans-serif-bold-italic.js'; 19 | 20 | export const sansSerifBoldItalic: SVGCharMap = AddPaths(font, { 21 | 0x131: '54 431Q63 458 102 458H127H149Q192 458 199 433Q201 427 201 229T199 25Q190 0 149 0H125L81 1Q61 7 54 28V431', 22 | 0x237: '-38 -84Q-36 -84 -14 -95T33 -106H38Q70 -103 78 -86Q83 -78 83 -49T84 180Q84 427 86 433Q93 458 136 458H158H180Q201 458 209 456T225 443Q230 436 231 418Q232 397 232 313V183V124V40Q232 -55 228 -87T203 -147Q166 -205 78 -205Q31 -205 -20 -189T-71 -159Q-71 -156 -59 -123Q-50 -96 -47 -91T-38 -84', 23 | },{ 24 | }); 25 | -------------------------------------------------------------------------------- /ts/output/svg/fonts/tex/script-bold.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | export {scriptBold} from '../../../common/fonts/tex/script-bold.js'; 18 | -------------------------------------------------------------------------------- /ts/output/svg/fonts/tex/script.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | export {script} from '../../../common/fonts/tex/script.js'; 18 | -------------------------------------------------------------------------------- /ts/util/AsyncLoad.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements asynchronous loading of files 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {mathjax} from '../mathjax.js'; 25 | 26 | /** 27 | * Load a file asynchronously using the mathjax.asynchLoad method, if there is one 28 | * 29 | * @param {string} name The name of the file to load 30 | * @return {Promise} The promise that is satisfied when the file is loaded 31 | */ 32 | export function asyncLoad(name: string): Promise { 33 | if (!mathjax.asyncLoad) { 34 | return Promise.reject(`Can't load '${name}': No asyncLoad method specified`); 35 | } 36 | return new Promise((ok, fail) => { 37 | const result = mathjax.asyncLoad(name); 38 | if (result instanceof Promise) { 39 | result.then((value: any) => ok(value)).catch((err: Error) => fail(err)); 40 | } else { 41 | ok(result); 42 | } 43 | }); 44 | } 45 | -------------------------------------------------------------------------------- /ts/util/asyncLoad/node.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2019-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements asynchronous loading for use with node applications 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {mathjax} from '../../mathjax.js'; 25 | import * as path from 'path'; 26 | 27 | declare var require: (name: string) => any; 28 | declare var __dirname: string; 29 | 30 | const root = path.dirname(path.dirname(__dirname)); 31 | 32 | if (!mathjax.asyncLoad && typeof require !== 'undefined') { 33 | mathjax.asyncLoad = (name: string) => { 34 | return require(name.charAt(0) === '.' ? path.resolve(root, name) : name); 35 | }; 36 | } 37 | -------------------------------------------------------------------------------- /ts/util/asyncLoad/path.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'path' { 2 | export function dirname(dir: string): string; 3 | export function resolve(root: string, name: string): string; 4 | } 5 | -------------------------------------------------------------------------------- /ts/util/asyncLoad/system.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2019-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements asynchronous loading for use with SystemJS 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import {mathjax} from '../../mathjax.js'; 25 | 26 | declare var System: {import: (name: string, url?: string) => any}; 27 | declare var __dirname: string; 28 | 29 | let root = 'file://' + __dirname.replace(/\/\/[^\/]*$/, '/'); 30 | 31 | if (!mathjax.asyncLoad && typeof System !== 'undefined' && System.import) { 32 | mathjax.asyncLoad = (name: string) => { 33 | return System.import(name, root); 34 | }; 35 | } 36 | 37 | /** 38 | * @param {string} URL the base URL to use for loading relative paths 39 | */ 40 | export function setBaseURL(URL: string) { 41 | root = URL; 42 | if (!root.match(/\/$/)) { 43 | root += '/'; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /ts/util/entities/all.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Loads all the entity files (used to avoid dynamic loading) 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | import './a.js'; 25 | import './b.js'; 26 | import './c.js'; 27 | import './d.js'; 28 | import './e.js'; 29 | import './f.js'; 30 | import './g.js'; 31 | import './h.js'; 32 | import './i.js'; 33 | import './j.js'; 34 | import './k.js'; 35 | import './l.js'; 36 | import './m.js'; 37 | import './n.js'; 38 | import './o.js'; 39 | import './p.js'; 40 | import './q.js'; 41 | import './r.js'; 42 | import './s.js'; 43 | import './t.js'; 44 | import './u.js'; 45 | import './v.js'; 46 | import './w.js'; 47 | import './x.js'; 48 | import './y.js'; 49 | import './z.js'; 50 | 51 | import './fr.js'; 52 | import './opf.js'; 53 | import './scr.js'; 54 | -------------------------------------------------------------------------------- /ts/util/entities/h.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as Entities from '../Entities.js'; 19 | 20 | Entities.add({ 21 | HARDcy: '\u042A', 22 | Hcirc: '\u0124', 23 | HilbertSpace: '\u210B', 24 | HorizontalLine: '\u2500', 25 | Hstrok: '\u0126', 26 | hArr: '\u21D4', 27 | hairsp: '\u200A', 28 | half: '\u00BD', 29 | hamilt: '\u210B', 30 | hardcy: '\u044A', 31 | harr: '\u2194', 32 | harrcir: '\u2948', 33 | hcirc: '\u0125', 34 | hearts: '\u2665', 35 | heartsuit: '\u2665', 36 | hercon: '\u22B9', 37 | hksearow: '\u2925', 38 | hkswarow: '\u2926', 39 | hoarr: '\u21FF', 40 | homtht: '\u223B', 41 | horbar: '\u2015', 42 | hslash: '\u210F', 43 | hstrok: '\u0127', 44 | hybull: '\u2043', 45 | hyphen: '\u2010' 46 | }, 'h'); 47 | -------------------------------------------------------------------------------- /ts/util/entities/j.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as Entities from '../Entities.js'; 19 | 20 | Entities.add({ 21 | Jcirc: '\u0134', 22 | Jcy: '\u0419', 23 | Jsercy: '\u0408', 24 | Jukcy: '\u0404', 25 | jcirc: '\u0135', 26 | jcy: '\u0439', 27 | jsercy: '\u0458', 28 | jukcy: '\u0454' 29 | }, 'j'); 30 | -------------------------------------------------------------------------------- /ts/util/entities/k.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as Entities from '../Entities.js'; 19 | 20 | Entities.add({ 21 | KHcy: '\u0425', 22 | KJcy: '\u040C', 23 | Kappa: '\u039A', 24 | Kcedil: '\u0136', 25 | Kcy: '\u041A', 26 | kcedil: '\u0137', 27 | kcy: '\u043A', 28 | kgreen: '\u0138', 29 | khcy: '\u0445', 30 | kjcy: '\u045C' 31 | }, 'k'); 32 | -------------------------------------------------------------------------------- /ts/util/entities/q.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as Entities from '../Entities.js'; 19 | 20 | Entities.add({ 21 | QUOT: '\u0022', 22 | qint: '\u2A0C', 23 | qprime: '\u2057', 24 | quaternions: '\u210D', 25 | quatint: '\u2A16', 26 | quest: '\u003F', 27 | questeq: '\u225F' 28 | }, 'q'); 29 | -------------------------------------------------------------------------------- /ts/util/entities/w.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as Entities from '../Entities.js'; 19 | 20 | Entities.add({ 21 | Wcirc: '\u0174', 22 | wcirc: '\u0175', 23 | wedbar: '\u2A5F', 24 | wedge: '\u2227', 25 | wedgeq: '\u2259', 26 | wp: '\u2118', 27 | wr: '\u2240', 28 | wreath: '\u2240' 29 | }, 'w'); 30 | -------------------------------------------------------------------------------- /ts/util/entities/x.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as Entities from '../Entities.js'; 19 | 20 | Entities.add({ 21 | xcap: '\u22C2', 22 | xcirc: '\u25EF', 23 | xcup: '\u22C3', 24 | xdtri: '\u25BD', 25 | xhArr: '\u27FA', 26 | xharr: '\u27F7', 27 | xlArr: '\u27F8', 28 | xlarr: '\u27F5', 29 | xmap: '\u27FC', 30 | xnis: '\u22FB', 31 | xodot: '\u2A00', 32 | xoplus: '\u2A01', 33 | xotime: '\u2A02', 34 | xrArr: '\u27F9', 35 | xrarr: '\u27F6', 36 | xsqcup: '\u2A06', 37 | xuplus: '\u2A04', 38 | xutri: '\u25B3', 39 | xvee: '\u22C1', 40 | xwedge: '\u22C0' 41 | }, 'x'); 42 | -------------------------------------------------------------------------------- /ts/util/entities/y.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as Entities from '../Entities.js'; 19 | 20 | Entities.add({ 21 | YAcy: '\u042F', 22 | YIcy: '\u0407', 23 | YUcy: '\u042E', 24 | Yacute: '\u00DD', 25 | Ycirc: '\u0176', 26 | Ycy: '\u042B', 27 | Yuml: '\u0178', 28 | yacute: '\u00FD', 29 | yacy: '\u044F', 30 | ycirc: '\u0177', 31 | ycy: '\u044B', 32 | yicy: '\u0457', 33 | yucy: '\u044E', 34 | yuml: '\u00FF' 35 | }, 'y'); 36 | -------------------------------------------------------------------------------- /ts/util/entities/z.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2017-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as Entities from '../Entities.js'; 19 | 20 | Entities.add({ 21 | ZHcy: '\u0416', 22 | Zacute: '\u0179', 23 | Zcaron: '\u017D', 24 | Zcy: '\u0417', 25 | Zdot: '\u017B', 26 | ZeroWidthSpace: '\u200B', 27 | Zeta: '\u0396', 28 | zacute: '\u017A', 29 | zcaron: '\u017E', 30 | zcy: '\u0437', 31 | zdot: '\u017C', 32 | zeetrf: '\u2128', 33 | zhcy: '\u0436', 34 | zwj: '\u200D', 35 | zwnj: '\u200C' 36 | }, 'z'); 37 | -------------------------------------------------------------------------------- /ts/util/numeric.ts: -------------------------------------------------------------------------------- 1 | /************************************************************* 2 | * 3 | * Copyright (c) 2018-2022 The MathJax Consortium 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * @fileoverview Implements some numeric utility functions 20 | * 21 | * @author dpvc@mathjax.org (Davide Cervone) 22 | */ 23 | 24 | /** 25 | * @param {number[]} A The array to sum 26 | * @return {number} The summ of the elements in A 27 | */ 28 | export function sum(A: number[]): number { 29 | return A.reduce((a, b) => a + b, 0); 30 | } 31 | 32 | /** 33 | * @param {number[]} A The array whose maximum entry is sought 34 | * @return {number} The largest entry in the array 35 | */ 36 | export function max(A: number[]): number { 37 | return A.reduce((a, b) => Math.max(a, b), 0); 38 | } 39 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": true, 3 | "compilerOptions": { 4 | "target": "ES5", 5 | "downlevelIteration": true, 6 | "module": "commonjs", 7 | "declaration": true, 8 | "noImplicitAny": true, 9 | "noImplicitReturns": true, 10 | "noUnusedLocals": true, 11 | "noUnusedParameters": true, 12 | "removeComments": true, 13 | "resolveJsonModule" : true, 14 | "esModuleInterop": true , 15 | "baseUrl": ".", 16 | "paths": { 17 | "mj-context-menu": ["node_modules/mj-context-menu"], 18 | "speech-rule-engine": ["node_modules/speech-rule-engine"] 19 | }, 20 | "lib": ["es6", "dom"], 21 | "noLib": false, 22 | "sourceMap": true, 23 | "outDir": "js", 24 | "typeRoots": ["./typings"] 25 | }, 26 | "include": ["ts/**/*"], 27 | "exclude": ["js", "es5", "components"] 28 | } 29 | --------------------------------------------------------------------------------