mathjax-rails 2.5.1 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mathjax/rails/version.rb +2 -2
- data/vendor/mathjax/.npmignore +7 -0
- data/vendor/mathjax/.travis.yml +18 -0
- data/vendor/mathjax/CONTRIBUTING.md +45 -47
- data/vendor/mathjax/MathJax.js +1 -1
- data/vendor/mathjax/README.md +11 -4
- data/vendor/mathjax/composer.json +2 -10
- data/vendor/mathjax/config/AM_CHTML-full.js +50 -0
- data/vendor/mathjax/config/AM_CHTML.js +46 -0
- data/vendor/mathjax/config/AM_HTMLorMML-full.js +22 -20
- data/vendor/mathjax/config/AM_HTMLorMML.js +19 -17
- data/vendor/mathjax/config/AM_SVG-full.js +50 -0
- data/vendor/mathjax/config/AM_SVG.js +44 -0
- data/vendor/mathjax/config/Accessible-full.js +29 -28
- data/vendor/mathjax/config/Accessible.js +26 -25
- data/vendor/mathjax/config/MML_CHTML-full.js +50 -0
- data/vendor/mathjax/config/MML_CHTML.js +46 -0
- data/vendor/mathjax/config/MML_HTMLorMML-full.js +22 -20
- data/vendor/mathjax/config/MML_HTMLorMML.js +19 -17
- data/vendor/mathjax/config/MML_SVG-full.js +50 -0
- data/vendor/mathjax/config/MML_SVG.js +46 -0
- data/vendor/mathjax/config/MMLorHTML.js +1 -1
- data/vendor/mathjax/config/TeX-AMS-MML_HTMLorMML-full.js +29 -27
- data/vendor/mathjax/config/TeX-AMS-MML_HTMLorMML.js +26 -24
- data/vendor/mathjax/config/TeX-AMS-MML_SVG-full.js +26 -24
- data/vendor/mathjax/config/TeX-AMS-MML_SVG.js +24 -22
- data/vendor/mathjax/config/TeX-AMS_CHTML-full.js +58 -0
- data/vendor/mathjax/config/TeX-AMS_CHTML.js +54 -0
- data/vendor/mathjax/config/TeX-AMS_HTML-full.js +23 -21
- data/vendor/mathjax/config/TeX-AMS_HTML.js +21 -19
- data/vendor/mathjax/config/TeX-AMS_SVG-full.js +58 -0
- data/vendor/mathjax/config/TeX-AMS_SVG.js +54 -0
- data/vendor/mathjax/config/TeX-MML-AM_CHTML-full.js +70 -0
- data/vendor/mathjax/config/TeX-MML-AM_CHTML.js +66 -0
- data/vendor/mathjax/config/TeX-MML-AM_HTMLorMML-full.js +32 -30
- data/vendor/mathjax/config/TeX-MML-AM_HTMLorMML.js +29 -27
- data/vendor/mathjax/config/TeX-MML-AM_SVG-full.js +70 -0
- data/vendor/mathjax/config/TeX-MML-AM_SVG.js +66 -0
- data/vendor/mathjax/config/default.js +6 -0
- data/vendor/mathjax/extensions/AssistiveMML.js +19 -0
- data/vendor/mathjax/extensions/CHTML-preview.js +1 -1
- data/vendor/mathjax/extensions/FontWarnings.js +1 -1
- data/vendor/mathjax/extensions/HTML-CSS/handle-floats.js +1 -1
- data/vendor/mathjax/extensions/HelpDialog.js +1 -1
- data/vendor/mathjax/extensions/MatchWebFonts.js +1 -1
- data/vendor/mathjax/extensions/MathEvents.js +1 -1
- data/vendor/mathjax/extensions/MathML/content-mathml.js +1 -1
- data/vendor/mathjax/extensions/MathML/mml3.js +1 -1
- data/vendor/mathjax/extensions/MathMenu.js +1 -1
- data/vendor/mathjax/extensions/MathZoom.js +1 -1
- data/vendor/mathjax/extensions/Safe.js +1 -1
- data/vendor/mathjax/extensions/TeX/AMScd.js +1 -1
- data/vendor/mathjax/extensions/TeX/AMSmath.js +1 -1
- data/vendor/mathjax/extensions/TeX/AMSsymbols.js +1 -1
- data/vendor/mathjax/extensions/TeX/HTML.js +1 -1
- data/vendor/mathjax/extensions/TeX/action.js +1 -1
- data/vendor/mathjax/extensions/TeX/autobold.js +1 -1
- data/vendor/mathjax/extensions/TeX/autoload-all.js +1 -1
- data/vendor/mathjax/extensions/TeX/bbox.js +1 -1
- data/vendor/mathjax/extensions/TeX/begingroup.js +1 -1
- data/vendor/mathjax/extensions/TeX/boldsymbol.js +1 -1
- data/vendor/mathjax/extensions/TeX/cancel.js +1 -1
- data/vendor/mathjax/extensions/TeX/color.js +1 -1
- data/vendor/mathjax/extensions/TeX/enclose.js +1 -1
- data/vendor/mathjax/extensions/TeX/extpfeil.js +1 -1
- data/vendor/mathjax/extensions/TeX/mathchoice.js +1 -1
- data/vendor/mathjax/extensions/TeX/mediawiki-texvc.js +1 -1
- data/vendor/mathjax/extensions/TeX/mhchem.js +1 -1
- data/vendor/mathjax/extensions/TeX/newcommand.js +1 -1
- data/vendor/mathjax/extensions/TeX/noErrors.js +1 -1
- data/vendor/mathjax/extensions/TeX/noUndefined.js +1 -1
- data/vendor/mathjax/extensions/TeX/unicode.js +1 -1
- data/vendor/mathjax/extensions/TeX/verb.js +1 -1
- data/vendor/mathjax/extensions/asciimath2jax.js +1 -1
- data/vendor/mathjax/extensions/fast-preview.js +19 -0
- data/vendor/mathjax/extensions/jsMath2jax.js +1 -1
- data/vendor/mathjax/extensions/mml2jax.js +1 -1
- data/vendor/mathjax/extensions/tex2jax.js +1 -1
- data/vendor/mathjax/extensions/toMathML.js +1 -1
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_AMS-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Caligraphic-Bold.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Caligraphic-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Fraktur-Bold.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Fraktur-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Main-Bold.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Main-Italic.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Main-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Math-BoldItalic.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Math-Italic.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Math-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_SansSerif-Bold.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_SansSerif-Italic.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_SansSerif-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Script-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size1-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size2-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size3-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size4-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Typewriter-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_WinIE6-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_AMS-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Caligraphic-Bold.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Caligraphic-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Fraktur-Bold.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Fraktur-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Main-Bold.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Main-Italic.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Main-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Math-BoldItalic.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Math-Italic.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Math-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_SansSerif-Bold.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_SansSerif-Italic.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_SansSerif-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Script-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size1-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size2-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size3-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size4-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Typewriter-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_WinChrome-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_WinIE6-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff +0 -0
- data/vendor/mathjax/jax/element/mml/jax.js +1 -1
- data/vendor/mathjax/jax/input/AsciiMath/config.js +1 -1
- data/vendor/mathjax/jax/input/AsciiMath/jax.js +1 -1
- data/vendor/mathjax/jax/input/MathML/config.js +1 -1
- data/vendor/mathjax/jax/input/MathML/jax.js +1 -1
- data/vendor/mathjax/jax/input/TeX/config.js +1 -1
- data/vendor/mathjax/jax/input/TeX/jax.js +1 -1
- data/vendor/mathjax/jax/output/CommonHTML/autoload/annotation-xml.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/maction.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/menclose.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/mglyph.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/mmultiscripts.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/ms.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/mtable.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/multiline.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/config.js +1 -1
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Caligraphic-Bold.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Bold.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Main-Bold.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Math-BoldItalic.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Bold.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Italic.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Regular.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Script-Regular.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Typewriter-Regular.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata-extra.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/jax.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/annotation-xml.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/maction.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/menclose.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/mglyph.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/mmultiscripts.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/ms.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/mtable.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/multiline.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/config.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Asana-Math/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Asana-Math/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Gyre-Pagella/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Gyre-Pagella/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Gyre-Termes/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Gyre-Termes/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Latin-Modern/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Latin-Modern/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Neo-Euler/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Neo-Euler/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/STIX/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/STIX/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/imageFonts.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/jax.js +1 -1
- data/vendor/mathjax/jax/output/NativeMML/config.js +1 -1
- data/vendor/mathjax/jax/output/NativeMML/jax.js +1 -1
- data/vendor/mathjax/jax/output/PlainSource/config.js +19 -0
- data/vendor/mathjax/jax/output/PlainSource/jax.js +19 -0
- data/vendor/mathjax/jax/output/PreviewHTML/config.js +19 -0
- data/vendor/mathjax/jax/output/PreviewHTML/jax.js +19 -0
- data/vendor/mathjax/jax/output/SVG/autoload/annotation-xml.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/maction.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/menclose.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/mglyph.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/mmultiscripts.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/ms.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/mtable.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/multiline.js +1 -1
- data/vendor/mathjax/jax/output/SVG/config.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Asana-Math/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Asana-Math/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Gyre-Pagella/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Gyre-Pagella/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Gyre-Termes/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Gyre-Termes/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Latin-Modern/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Latin-Modern/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Neo-Euler/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Neo-Euler/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/STIX-Web/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/STIX-Web/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/TeX/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/TeX/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/jax.js +1 -1
- data/vendor/mathjax/localization/ast/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ast/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ast/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ast/MathML.js +1 -1
- data/vendor/mathjax/localization/ast/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ast/TeX.js +1 -1
- data/vendor/mathjax/localization/ast/ast.js +1 -1
- data/vendor/mathjax/localization/bcc/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/bcc/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/bcc/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/bcc/MathML.js +1 -1
- data/vendor/mathjax/localization/bcc/MathMenu.js +1 -1
- data/vendor/mathjax/localization/bcc/TeX.js +1 -1
- data/vendor/mathjax/localization/bcc/bcc.js +1 -1
- data/vendor/mathjax/localization/bg/FontWarnings.js +19 -0
- data/vendor/mathjax/localization/bg/HTML-CSS.js +19 -0
- data/vendor/mathjax/localization/bg/HelpDialog.js +19 -0
- data/vendor/mathjax/localization/bg/MathML.js +19 -0
- data/vendor/mathjax/localization/bg/MathMenu.js +19 -0
- data/vendor/mathjax/localization/bg/TeX.js +19 -0
- data/vendor/mathjax/localization/bg/bg.js +19 -0
- data/vendor/mathjax/localization/br/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/br/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/br/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/br/MathML.js +1 -1
- data/vendor/mathjax/localization/br/MathMenu.js +1 -1
- data/vendor/mathjax/localization/br/TeX.js +1 -1
- data/vendor/mathjax/localization/br/br.js +1 -1
- data/vendor/mathjax/localization/ca/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ca/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ca/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ca/MathML.js +1 -1
- data/vendor/mathjax/localization/ca/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ca/TeX.js +1 -1
- data/vendor/mathjax/localization/ca/ca.js +1 -1
- data/vendor/mathjax/localization/cdo/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/cdo/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/cdo/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/cdo/MathML.js +1 -1
- data/vendor/mathjax/localization/cdo/MathMenu.js +1 -1
- data/vendor/mathjax/localization/cdo/TeX.js +1 -1
- data/vendor/mathjax/localization/cdo/cdo.js +1 -1
- data/vendor/mathjax/localization/ce/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ce/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ce/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ce/MathML.js +1 -1
- data/vendor/mathjax/localization/ce/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ce/TeX.js +1 -1
- data/vendor/mathjax/localization/ce/ce.js +1 -1
- data/vendor/mathjax/localization/cs/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/cs/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/cs/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/cs/MathML.js +1 -1
- data/vendor/mathjax/localization/cs/MathMenu.js +1 -1
- data/vendor/mathjax/localization/cs/TeX.js +1 -1
- data/vendor/mathjax/localization/cs/cs.js +1 -1
- data/vendor/mathjax/localization/cy/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/cy/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/cy/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/cy/MathML.js +1 -1
- data/vendor/mathjax/localization/cy/MathMenu.js +1 -1
- data/vendor/mathjax/localization/cy/TeX.js +1 -1
- data/vendor/mathjax/localization/cy/cy.js +1 -1
- data/vendor/mathjax/localization/da/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/da/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/da/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/da/MathML.js +1 -1
- data/vendor/mathjax/localization/da/MathMenu.js +1 -1
- data/vendor/mathjax/localization/da/TeX.js +1 -1
- data/vendor/mathjax/localization/da/da.js +1 -1
- data/vendor/mathjax/localization/de/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/de/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/de/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/de/MathML.js +1 -1
- data/vendor/mathjax/localization/de/MathMenu.js +1 -1
- data/vendor/mathjax/localization/de/TeX.js +1 -1
- data/vendor/mathjax/localization/de/de.js +1 -1
- data/vendor/mathjax/localization/en/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/en/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/en/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/en/MathML.js +1 -1
- data/vendor/mathjax/localization/en/MathMenu.js +1 -1
- data/vendor/mathjax/localization/en/TeX.js +1 -1
- data/vendor/mathjax/localization/en/en.js +1 -1
- data/vendor/mathjax/localization/eo/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/eo/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/eo/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/eo/MathML.js +1 -1
- data/vendor/mathjax/localization/eo/MathMenu.js +1 -1
- data/vendor/mathjax/localization/eo/TeX.js +1 -1
- data/vendor/mathjax/localization/eo/eo.js +1 -1
- data/vendor/mathjax/localization/es/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/es/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/es/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/es/MathML.js +1 -1
- data/vendor/mathjax/localization/es/MathMenu.js +1 -1
- data/vendor/mathjax/localization/es/TeX.js +1 -1
- data/vendor/mathjax/localization/es/es.js +1 -1
- data/vendor/mathjax/localization/fa/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/fa/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/fa/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/fa/MathML.js +1 -1
- data/vendor/mathjax/localization/fa/MathMenu.js +1 -1
- data/vendor/mathjax/localization/fa/TeX.js +1 -1
- data/vendor/mathjax/localization/fa/fa.js +1 -1
- data/vendor/mathjax/localization/fi/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/fi/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/fi/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/fi/MathML.js +1 -1
- data/vendor/mathjax/localization/fi/MathMenu.js +1 -1
- data/vendor/mathjax/localization/fi/TeX.js +1 -1
- data/vendor/mathjax/localization/fi/fi.js +1 -1
- data/vendor/mathjax/localization/fr/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/fr/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/fr/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/fr/MathML.js +1 -1
- data/vendor/mathjax/localization/fr/MathMenu.js +1 -1
- data/vendor/mathjax/localization/fr/TeX.js +1 -1
- data/vendor/mathjax/localization/fr/fr.js +1 -1
- data/vendor/mathjax/localization/gl/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/gl/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/gl/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/gl/MathML.js +1 -1
- data/vendor/mathjax/localization/gl/MathMenu.js +1 -1
- data/vendor/mathjax/localization/gl/TeX.js +1 -1
- data/vendor/mathjax/localization/gl/gl.js +1 -1
- data/vendor/mathjax/localization/he/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/he/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/he/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/he/MathML.js +1 -1
- data/vendor/mathjax/localization/he/MathMenu.js +1 -1
- data/vendor/mathjax/localization/he/TeX.js +1 -1
- data/vendor/mathjax/localization/he/he.js +1 -1
- data/vendor/mathjax/localization/ia/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ia/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ia/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ia/MathML.js +1 -1
- data/vendor/mathjax/localization/ia/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ia/TeX.js +1 -1
- data/vendor/mathjax/localization/ia/ia.js +1 -1
- data/vendor/mathjax/localization/it/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/it/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/it/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/it/MathML.js +1 -1
- data/vendor/mathjax/localization/it/MathMenu.js +1 -1
- data/vendor/mathjax/localization/it/TeX.js +1 -1
- data/vendor/mathjax/localization/it/it.js +1 -1
- data/vendor/mathjax/localization/ja/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ja/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ja/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ja/MathML.js +1 -1
- data/vendor/mathjax/localization/ja/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ja/TeX.js +1 -1
- data/vendor/mathjax/localization/ja/ja.js +1 -1
- data/vendor/mathjax/localization/kn/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/kn/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/kn/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/kn/MathML.js +1 -1
- data/vendor/mathjax/localization/kn/MathMenu.js +1 -1
- data/vendor/mathjax/localization/kn/TeX.js +1 -1
- data/vendor/mathjax/localization/kn/kn.js +1 -1
- data/vendor/mathjax/localization/ko/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ko/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ko/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ko/MathML.js +1 -1
- data/vendor/mathjax/localization/ko/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ko/TeX.js +1 -1
- data/vendor/mathjax/localization/ko/ko.js +1 -1
- data/vendor/mathjax/localization/lb/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/lb/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/lb/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/lb/MathML.js +1 -1
- data/vendor/mathjax/localization/lb/MathMenu.js +1 -1
- data/vendor/mathjax/localization/lb/TeX.js +1 -1
- data/vendor/mathjax/localization/lb/lb.js +1 -1
- data/vendor/mathjax/localization/lki/FontWarnings.js +19 -0
- data/vendor/mathjax/localization/lki/HTML-CSS.js +19 -0
- data/vendor/mathjax/localization/lki/HelpDialog.js +19 -0
- data/vendor/mathjax/localization/lki/MathML.js +19 -0
- data/vendor/mathjax/localization/lki/MathMenu.js +19 -0
- data/vendor/mathjax/localization/lki/TeX.js +19 -0
- data/vendor/mathjax/localization/lki/lki.js +19 -0
- data/vendor/mathjax/localization/lt/FontWarnings.js +19 -0
- data/vendor/mathjax/localization/lt/HTML-CSS.js +19 -0
- data/vendor/mathjax/localization/lt/HelpDialog.js +19 -0
- data/vendor/mathjax/localization/lt/MathML.js +19 -0
- data/vendor/mathjax/localization/lt/MathMenu.js +19 -0
- data/vendor/mathjax/localization/lt/TeX.js +19 -0
- data/vendor/mathjax/localization/lt/lt.js +19 -0
- data/vendor/mathjax/localization/mk/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/mk/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/mk/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/mk/MathML.js +1 -1
- data/vendor/mathjax/localization/mk/MathMenu.js +1 -1
- data/vendor/mathjax/localization/mk/TeX.js +1 -1
- data/vendor/mathjax/localization/mk/mk.js +1 -1
- data/vendor/mathjax/localization/nl/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/nl/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/nl/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/nl/MathML.js +1 -1
- data/vendor/mathjax/localization/nl/MathMenu.js +1 -1
- data/vendor/mathjax/localization/nl/TeX.js +1 -1
- data/vendor/mathjax/localization/nl/nl.js +1 -1
- data/vendor/mathjax/localization/oc/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/oc/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/oc/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/oc/MathML.js +1 -1
- data/vendor/mathjax/localization/oc/MathMenu.js +1 -1
- data/vendor/mathjax/localization/oc/TeX.js +1 -1
- data/vendor/mathjax/localization/oc/oc.js +1 -1
- data/vendor/mathjax/localization/pl/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/pl/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/pl/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/pl/MathML.js +1 -1
- data/vendor/mathjax/localization/pl/MathMenu.js +1 -1
- data/vendor/mathjax/localization/pl/TeX.js +1 -1
- data/vendor/mathjax/localization/pl/pl.js +1 -1
- data/vendor/mathjax/localization/pt-br/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/pt-br/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/pt-br/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/pt-br/MathML.js +1 -1
- data/vendor/mathjax/localization/pt-br/MathMenu.js +1 -1
- data/vendor/mathjax/localization/pt-br/TeX.js +1 -1
- data/vendor/mathjax/localization/pt-br/pt-br.js +1 -1
- data/vendor/mathjax/localization/pt/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/pt/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/pt/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/pt/MathML.js +1 -1
- data/vendor/mathjax/localization/pt/MathMenu.js +1 -1
- data/vendor/mathjax/localization/pt/TeX.js +1 -1
- data/vendor/mathjax/localization/pt/pt.js +1 -1
- data/vendor/mathjax/localization/qqq/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/qqq/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/qqq/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/qqq/MathML.js +1 -1
- data/vendor/mathjax/localization/qqq/MathMenu.js +1 -1
- data/vendor/mathjax/localization/qqq/TeX.js +1 -1
- data/vendor/mathjax/localization/qqq/qqq.js +1 -1
- data/vendor/mathjax/localization/ru/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ru/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ru/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ru/MathML.js +1 -1
- data/vendor/mathjax/localization/ru/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ru/TeX.js +1 -1
- data/vendor/mathjax/localization/ru/ru.js +1 -1
- data/vendor/mathjax/localization/scn/FontWarnings.js +19 -0
- data/vendor/mathjax/localization/scn/HTML-CSS.js +19 -0
- data/vendor/mathjax/localization/scn/HelpDialog.js +19 -0
- data/vendor/mathjax/localization/scn/MathML.js +19 -0
- data/vendor/mathjax/localization/scn/MathMenu.js +19 -0
- data/vendor/mathjax/localization/scn/TeX.js +19 -0
- data/vendor/mathjax/localization/scn/scn.js +19 -0
- data/vendor/mathjax/localization/sco/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/sco/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/sco/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/sco/MathML.js +1 -1
- data/vendor/mathjax/localization/sco/MathMenu.js +1 -1
- data/vendor/mathjax/localization/sco/TeX.js +1 -1
- data/vendor/mathjax/localization/sco/sco.js +1 -1
- data/vendor/mathjax/localization/sl/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/sl/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/sl/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/sl/MathML.js +1 -1
- data/vendor/mathjax/localization/sl/MathMenu.js +1 -1
- data/vendor/mathjax/localization/sl/TeX.js +1 -1
- data/vendor/mathjax/localization/sl/sl.js +1 -1
- data/vendor/mathjax/localization/sv/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/sv/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/sv/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/sv/MathML.js +1 -1
- data/vendor/mathjax/localization/sv/MathMenu.js +1 -1
- data/vendor/mathjax/localization/sv/TeX.js +1 -1
- data/vendor/mathjax/localization/sv/sv.js +1 -1
- data/vendor/mathjax/localization/tr/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/tr/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/tr/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/tr/MathML.js +1 -1
- data/vendor/mathjax/localization/tr/MathMenu.js +1 -1
- data/vendor/mathjax/localization/tr/TeX.js +1 -1
- data/vendor/mathjax/localization/tr/tr.js +1 -1
- data/vendor/mathjax/localization/uk/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/uk/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/uk/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/uk/MathML.js +1 -1
- data/vendor/mathjax/localization/uk/MathMenu.js +1 -1
- data/vendor/mathjax/localization/uk/TeX.js +1 -1
- data/vendor/mathjax/localization/uk/uk.js +1 -1
- data/vendor/mathjax/localization/vi/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/vi/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/vi/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/vi/MathML.js +1 -1
- data/vendor/mathjax/localization/vi/MathMenu.js +1 -1
- data/vendor/mathjax/localization/vi/TeX.js +1 -1
- data/vendor/mathjax/localization/vi/vi.js +1 -1
- data/vendor/mathjax/localization/zh-hans/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/zh-hans/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/zh-hans/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/zh-hans/MathML.js +1 -1
- data/vendor/mathjax/localization/zh-hans/MathMenu.js +1 -1
- data/vendor/mathjax/localization/zh-hans/TeX.js +1 -1
- data/vendor/mathjax/localization/zh-hans/zh-hans.js +1 -1
- data/vendor/mathjax/package.json +30 -0
- data/vendor/mathjax/test/examples.html +3 -0
- data/vendor/mathjax/test/index-images.html +1 -0
- data/vendor/mathjax/test/index.html +1 -0
- data/vendor/mathjax/test/localization.html +3 -1
- data/vendor/mathjax/test/sample-all-at-once.html +1 -0
- data/vendor/mathjax/test/sample-asciimath.html +1 -0
- data/vendor/mathjax/test/sample-autoload.html +1 -0
- data/vendor/mathjax/test/sample-dynamic-2.html +26 -12
- data/vendor/mathjax/test/sample-dynamic-steps.html +1 -0
- data/vendor/mathjax/test/sample-dynamic.html +7 -1
- data/vendor/mathjax/test/sample-eqnum.html +1 -0
- data/vendor/mathjax/test/sample-eqrefs.html +1 -0
- data/vendor/mathjax/test/sample-loader-config.html +1 -0
- data/vendor/mathjax/test/sample-loader.html +1 -0
- data/vendor/mathjax/test/sample-macros.html +1 -0
- data/vendor/mathjax/test/sample-mediawiki-texvc.html +2 -0
- data/vendor/mathjax/test/sample-mml.html +1 -0
- data/vendor/mathjax/test/sample-signals.html +1 -0
- data/vendor/mathjax/test/sample-tex.html +1 -0
- data/vendor/mathjax/test/sample.html +1 -0
- data/vendor/mathjax/unpacked/MathJax.js +103 -58
- data/vendor/mathjax/unpacked/config/AM_CHTML-full.js +24 -0
- data/vendor/mathjax/unpacked/config/AM_CHTML.js +24 -0
- data/vendor/mathjax/unpacked/config/AM_HTMLorMML-full.js +2 -2
- data/vendor/mathjax/unpacked/config/AM_HTMLorMML.js +2 -2
- data/vendor/mathjax/unpacked/config/AM_SVG-full.js +24 -0
- data/vendor/mathjax/unpacked/config/AM_SVG.js +24 -0
- data/vendor/mathjax/unpacked/config/Accessible-full.js +2 -2
- data/vendor/mathjax/unpacked/config/Accessible.js +2 -2
- data/vendor/mathjax/unpacked/config/MML_CHTML-full.js +24 -0
- data/vendor/mathjax/unpacked/config/MML_CHTML.js +24 -0
- data/vendor/mathjax/unpacked/config/MML_HTMLorMML-full.js +2 -2
- data/vendor/mathjax/unpacked/config/MML_HTMLorMML.js +2 -2
- data/vendor/mathjax/unpacked/config/MML_SVG-full.js +24 -0
- data/vendor/mathjax/unpacked/config/MML_SVG.js +24 -0
- data/vendor/mathjax/unpacked/config/MMLorHTML.js +1 -1
- data/vendor/mathjax/unpacked/config/TeX-AMS-MML_HTMLorMML-full.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS-MML_HTMLorMML.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS-MML_SVG-full.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS-MML_SVG.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS_CHTML-full.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-AMS_CHTML.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-AMS_HTML-full.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS_HTML.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS_SVG-full.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-AMS_SVG.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_CHTML-full.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_CHTML.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_HTMLorMML-full.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_HTMLorMML.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_SVG-full.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_SVG.js +24 -0
- data/vendor/mathjax/unpacked/config/default.js +6 -0
- data/vendor/mathjax/unpacked/extensions/AssistiveMML.js +160 -0
- data/vendor/mathjax/unpacked/extensions/CHTML-preview.js +5 -114
- data/vendor/mathjax/unpacked/extensions/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/extensions/HTML-CSS/handle-floats.js +1 -1
- data/vendor/mathjax/unpacked/extensions/HelpDialog.js +64 -15
- data/vendor/mathjax/unpacked/extensions/MatchWebFonts.js +1 -1
- data/vendor/mathjax/unpacked/extensions/MathEvents.js +111 -63
- data/vendor/mathjax/unpacked/extensions/MathML/content-mathml.js +15 -7
- data/vendor/mathjax/unpacked/extensions/MathML/mml3.js +661 -5
- data/vendor/mathjax/unpacked/extensions/MathMenu.js +635 -178
- data/vendor/mathjax/unpacked/extensions/MathZoom.js +4 -1
- data/vendor/mathjax/unpacked/extensions/Safe.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/AMScd.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/AMSmath.js +16 -24
- data/vendor/mathjax/unpacked/extensions/TeX/AMSsymbols.js +2 -2
- data/vendor/mathjax/unpacked/extensions/TeX/HTML.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/action.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/autobold.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/autoload-all.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/bbox.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/begingroup.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/boldsymbol.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/cancel.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/color.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/enclose.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/extpfeil.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/mathchoice.js +22 -8
- data/vendor/mathjax/unpacked/extensions/TeX/mediawiki-texvc.js +23 -3
- data/vendor/mathjax/unpacked/extensions/TeX/mhchem.js +55 -20
- data/vendor/mathjax/unpacked/extensions/TeX/newcommand.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/noErrors.js +63 -10
- data/vendor/mathjax/unpacked/extensions/TeX/noUndefined.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/unicode.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/verb.js +1 -1
- data/vendor/mathjax/unpacked/extensions/asciimath2jax.js +1 -1
- data/vendor/mathjax/unpacked/extensions/fast-preview.js +155 -0
- data/vendor/mathjax/unpacked/extensions/jsMath2jax.js +1 -1
- data/vendor/mathjax/unpacked/extensions/mml2jax.js +3 -3
- data/vendor/mathjax/unpacked/extensions/tex2jax.js +1 -1
- data/vendor/mathjax/unpacked/extensions/toMathML.js +15 -5
- data/vendor/mathjax/unpacked/jax/element/mml/jax.js +36 -12
- data/vendor/mathjax/unpacked/jax/input/AsciiMath/config.js +1 -1
- data/vendor/mathjax/unpacked/jax/input/AsciiMath/jax.js +11 -3
- data/vendor/mathjax/unpacked/jax/input/MathML/config.js +1 -1
- data/vendor/mathjax/unpacked/jax/input/MathML/jax.js +5 -3
- data/vendor/mathjax/unpacked/jax/input/TeX/config.js +1 -1
- data/vendor/mathjax/unpacked/jax/input/TeX/jax.js +65 -45
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/annotation-xml.js +60 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/maction.js +178 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/menclose.js +317 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/mglyph.js +94 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/mmultiscripts.js +290 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/ms.js +73 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/mtable.js +596 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/multiline.js +777 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/config.js +12 -1
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js +289 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Caligraphic-Bold.js +99 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Fraktur-Bold.js +125 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js +125 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Main-Bold.js +208 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Math-BoldItalic.js +208 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/SansSerif-Bold.js +152 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/SansSerif-Italic.js +152 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/SansSerif-Regular.js +152 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Script-Regular.js +88 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Typewriter-Regular.js +155 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/fontdata-extra.js +238 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/fontdata.js +1697 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/jax.js +2397 -857
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/annotation-xml.js +5 -3
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/maction.js +12 -11
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/menclose.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/mglyph.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/mmultiscripts.js +36 -11
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/ms.js +8 -5
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/mtable.js +24 -20
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/multiline.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/config.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Asana-Math/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Asana-Math/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Gyre-Pagella/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Gyre-Pagella/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Gyre-Termes/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Gyre-Termes/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Latin-Modern/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Latin-Modern/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Neo-Euler/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Neo-Euler/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/STIX-Web/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/STIX/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/STIX/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/TeX/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/imageFonts.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/jax.js +117 -59
- data/vendor/mathjax/unpacked/jax/output/NativeMML/config.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/NativeMML/jax.js +19 -7
- data/vendor/mathjax/unpacked/jax/output/PlainSource/config.js +49 -0
- data/vendor/mathjax/unpacked/jax/output/PlainSource/jax.js +185 -0
- data/vendor/mathjax/unpacked/jax/output/PreviewHTML/config.js +54 -0
- data/vendor/mathjax/unpacked/jax/output/PreviewHTML/jax.js +1092 -0
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/annotation-xml.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/maction.js +6 -3
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/menclose.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/mglyph.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/mmultiscripts.js +10 -5
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/ms.js +8 -5
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/mtable.js +28 -12
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/multiline.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/config.js +2 -2
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Asana-Math/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Asana-Math/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Gyre-Pagella/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Gyre-Pagella/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Gyre-Termes/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Gyre-Termes/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Latin-Modern/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Latin-Modern/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Neo-Euler/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Neo-Euler/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/STIX-Web/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/STIX-Web/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/TeX/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/TeX/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/jax.js +58 -31
- data/vendor/mathjax/unpacked/localization/ast/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/ast.js +2 -2
- data/vendor/mathjax/unpacked/localization/bcc/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/bcc.js +3 -3
- data/vendor/mathjax/unpacked/localization/bg/FontWarnings.js +32 -0
- data/vendor/mathjax/unpacked/localization/bg/HTML-CSS.js +32 -0
- data/vendor/mathjax/unpacked/localization/bg/HelpDialog.js +32 -0
- data/vendor/mathjax/unpacked/localization/bg/MathML.js +32 -0
- data/vendor/mathjax/unpacked/localization/bg/MathMenu.js +60 -0
- data/vendor/mathjax/unpacked/localization/bg/TeX.js +72 -0
- data/vendor/mathjax/unpacked/localization/bg/bg.js +59 -0
- data/vendor/mathjax/unpacked/localization/br/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/br/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/br/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/br/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/br/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/br/TeX.js +3 -2
- data/vendor/mathjax/unpacked/localization/br/br.js +2 -2
- data/vendor/mathjax/unpacked/localization/ca/FontWarnings.js +2 -2
- data/vendor/mathjax/unpacked/localization/ca/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ca/HelpDialog.js +2 -2
- data/vendor/mathjax/unpacked/localization/ca/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ca/MathMenu.js +2 -2
- data/vendor/mathjax/unpacked/localization/ca/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ca/ca.js +2 -2
- data/vendor/mathjax/unpacked/localization/cdo/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/cdo.js +5 -5
- data/vendor/mathjax/unpacked/localization/ce/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/ce.js +2 -2
- data/vendor/mathjax/unpacked/localization/cs/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/cs.js +2 -2
- data/vendor/mathjax/unpacked/localization/cy/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/cy.js +2 -2
- data/vendor/mathjax/unpacked/localization/da/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/da.js +2 -2
- data/vendor/mathjax/unpacked/localization/de/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/de/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/de/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/de/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/de/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/de/TeX.js +14 -14
- data/vendor/mathjax/unpacked/localization/de/de.js +2 -2
- data/vendor/mathjax/unpacked/localization/en/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/en.js +2 -2
- data/vendor/mathjax/unpacked/localization/eo/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/eo.js +2 -2
- data/vendor/mathjax/unpacked/localization/es/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/es/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/es/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/es/MathML.js +2 -2
- data/vendor/mathjax/unpacked/localization/es/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/es/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/es/es.js +2 -2
- data/vendor/mathjax/unpacked/localization/fa/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/fa/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/fa/HelpDialog.js +3 -3
- data/vendor/mathjax/unpacked/localization/fa/MathML.js +2 -2
- data/vendor/mathjax/unpacked/localization/fa/MathMenu.js +2 -2
- data/vendor/mathjax/unpacked/localization/fa/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/fa/fa.js +2 -2
- data/vendor/mathjax/unpacked/localization/fi/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/fi.js +2 -2
- data/vendor/mathjax/unpacked/localization/fr/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/fr/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/fr/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/fr/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/fr/MathMenu.js +2 -2
- data/vendor/mathjax/unpacked/localization/fr/TeX.js +11 -11
- data/vendor/mathjax/unpacked/localization/fr/fr.js +4 -4
- data/vendor/mathjax/unpacked/localization/gl/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/gl.js +2 -2
- data/vendor/mathjax/unpacked/localization/he/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/he.js +2 -2
- data/vendor/mathjax/unpacked/localization/ia/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/ia.js +2 -2
- data/vendor/mathjax/unpacked/localization/it/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/it.js +2 -2
- data/vendor/mathjax/unpacked/localization/ja/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/ja.js +2 -2
- data/vendor/mathjax/unpacked/localization/kn/FontWarnings.js +3 -2
- data/vendor/mathjax/unpacked/localization/kn/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/kn/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/kn/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/kn/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/kn/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/kn/kn.js +2 -2
- data/vendor/mathjax/unpacked/localization/ko/FontWarnings.js +4 -2
- data/vendor/mathjax/unpacked/localization/ko/HTML-CSS.js +6 -2
- data/vendor/mathjax/unpacked/localization/ko/HelpDialog.js +5 -2
- data/vendor/mathjax/unpacked/localization/ko/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ko/MathMenu.js +11 -3
- data/vendor/mathjax/unpacked/localization/ko/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ko/ko.js +2 -2
- data/vendor/mathjax/unpacked/localization/lb/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/lb.js +2 -2
- data/vendor/mathjax/unpacked/localization/lki/FontWarnings.js +38 -0
- data/vendor/mathjax/unpacked/localization/lki/HTML-CSS.js +36 -0
- data/vendor/mathjax/unpacked/localization/lki/HelpDialog.js +41 -0
- data/vendor/mathjax/unpacked/localization/lki/MathML.js +41 -0
- data/vendor/mathjax/unpacked/localization/lki/MathMenu.js +111 -0
- data/vendor/mathjax/unpacked/localization/lki/TeX.js +102 -0
- data/vendor/mathjax/unpacked/localization/lki/lki.js +61 -0
- data/vendor/mathjax/unpacked/localization/lt/FontWarnings.js +38 -0
- data/vendor/mathjax/unpacked/localization/lt/HTML-CSS.js +36 -0
- data/vendor/mathjax/unpacked/localization/lt/HelpDialog.js +41 -0
- data/vendor/mathjax/unpacked/localization/lt/MathML.js +41 -0
- data/vendor/mathjax/unpacked/localization/lt/MathMenu.js +111 -0
- data/vendor/mathjax/unpacked/localization/lt/TeX.js +102 -0
- data/vendor/mathjax/unpacked/localization/lt/lt.js +66 -0
- data/vendor/mathjax/unpacked/localization/mk/FontWarnings.js +2 -2
- data/vendor/mathjax/unpacked/localization/mk/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/mk/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/mk/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/mk/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/mk/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/mk/mk.js +2 -2
- data/vendor/mathjax/unpacked/localization/nl/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/nl/HTML-CSS.js +3 -3
- data/vendor/mathjax/unpacked/localization/nl/HelpDialog.js +2 -2
- data/vendor/mathjax/unpacked/localization/nl/MathML.js +2 -2
- data/vendor/mathjax/unpacked/localization/nl/MathMenu.js +21 -21
- data/vendor/mathjax/unpacked/localization/nl/TeX.js +26 -26
- data/vendor/mathjax/unpacked/localization/nl/nl.js +7 -7
- data/vendor/mathjax/unpacked/localization/oc/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/oc.js +2 -2
- data/vendor/mathjax/unpacked/localization/pl/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/pl.js +2 -2
- data/vendor/mathjax/unpacked/localization/pt-br/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt-br/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt-br/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt-br/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt-br/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt-br/TeX.js +2 -2
- data/vendor/mathjax/unpacked/localization/pt-br/pt-br.js +5 -5
- data/vendor/mathjax/unpacked/localization/pt/FontWarnings.js +8 -8
- data/vendor/mathjax/unpacked/localization/pt/HTML-CSS.js +4 -4
- data/vendor/mathjax/unpacked/localization/pt/HelpDialog.js +5 -5
- data/vendor/mathjax/unpacked/localization/pt/MathML.js +2 -2
- data/vendor/mathjax/unpacked/localization/pt/MathMenu.js +17 -17
- data/vendor/mathjax/unpacked/localization/pt/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt/pt.js +2 -2
- data/vendor/mathjax/unpacked/localization/qqq/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/qqq.js +2 -2
- data/vendor/mathjax/unpacked/localization/ru/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/ru.js +2 -2
- data/vendor/mathjax/unpacked/localization/scn/FontWarnings.js +38 -0
- data/vendor/mathjax/unpacked/localization/scn/HTML-CSS.js +36 -0
- data/vendor/mathjax/unpacked/localization/scn/HelpDialog.js +41 -0
- data/vendor/mathjax/unpacked/localization/scn/MathML.js +41 -0
- data/vendor/mathjax/unpacked/localization/scn/MathMenu.js +111 -0
- data/vendor/mathjax/unpacked/localization/scn/TeX.js +102 -0
- data/vendor/mathjax/unpacked/localization/scn/scn.js +61 -0
- data/vendor/mathjax/unpacked/localization/sco/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/sco.js +2 -2
- data/vendor/mathjax/unpacked/localization/sl/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/sl.js +2 -2
- data/vendor/mathjax/unpacked/localization/sv/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/sv.js +2 -2
- data/vendor/mathjax/unpacked/localization/tr/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/tr.js +2 -2
- data/vendor/mathjax/unpacked/localization/uk/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/uk.js +2 -2
- data/vendor/mathjax/unpacked/localization/vi/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/vi.js +2 -2
- data/vendor/mathjax/unpacked/localization/zh-hans/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/zh-hans/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/zh-hans/HelpDialog.js +2 -2
- data/vendor/mathjax/unpacked/localization/zh-hans/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/zh-hans/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/zh-hans/TeX.js +2 -2
- data/vendor/mathjax/unpacked/localization/zh-hans/zh-hans.js +2 -2
- metadata +154 -11
- data/vendor/mathjax/images/CloseX-31.png +0 -0
- data/vendor/mathjax/images/MenuArrow-15.png +0 -0
@@ -0,0 +1,317 @@
|
|
1
|
+
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
|
2
|
+
/* vim: set ts=2 et sw=2 tw=80: */
|
3
|
+
|
4
|
+
/*************************************************************
|
5
|
+
*
|
6
|
+
* MathJax/jax/output/CommonHTML/autoload/menclose.js
|
7
|
+
*
|
8
|
+
* Implements the CommonHTML output for <menclose> elements.
|
9
|
+
*
|
10
|
+
* ---------------------------------------------------------------------
|
11
|
+
*
|
12
|
+
* Copyright (c) 2015 The MathJax Consortium
|
13
|
+
*
|
14
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
15
|
+
* you may not use this file except in compliance with the License.
|
16
|
+
* You may obtain a copy of the License at
|
17
|
+
*
|
18
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
19
|
+
*
|
20
|
+
* Unless required by applicable law or agreed to in writing, software
|
21
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
22
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
23
|
+
* See the License for the specific language governing permissions and
|
24
|
+
* limitations under the License.
|
25
|
+
*/
|
26
|
+
|
27
|
+
MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () {
|
28
|
+
var VERSION = "2.6.0";
|
29
|
+
var MML = MathJax.ElementJax.mml,
|
30
|
+
CHTML = MathJax.OutputJax.CommonHTML;
|
31
|
+
|
32
|
+
var SVGNS = "http://www.w3.org/2000/svg";
|
33
|
+
var ARROWX = 4, ARROWDX = 1, ARROWY = 2;
|
34
|
+
|
35
|
+
MML.menclose.Augment({
|
36
|
+
toCommonHTML: function (node) {
|
37
|
+
var values = this.getValues("notation","thickness","padding");
|
38
|
+
if (values.thickness == null) values.thickness = ".075em";
|
39
|
+
if (values.padding == null) values.padding = ".2em";
|
40
|
+
//
|
41
|
+
// Get DOM nodes
|
42
|
+
//
|
43
|
+
node = this.CHTMLdefaultNode(node,{childNodes:"mjx-box", forceChild:true});
|
44
|
+
var child = node.firstChild, cbox = this.CHTMLbboxFor(0);
|
45
|
+
//
|
46
|
+
// Get the padding and rule thickness
|
47
|
+
//
|
48
|
+
var p = this.CHTMLlength2em(values.padding,1/CHTML.em); // padding for enclosure
|
49
|
+
var t = this.CHTMLlength2em(values.thickness,1/CHTML.em); // thickness of lines
|
50
|
+
t = Math.max(1,Math.round(t*CHTML.em))/CHTML.em;
|
51
|
+
var SOLID = CHTML.Px(t)+" solid";
|
52
|
+
var bb = {L:p, R:p, T:p, B:p, H:cbox.h+p, D:cbox.d+p, W:cbox.w+2*p};
|
53
|
+
child.style.padding = CHTML.Em(p);
|
54
|
+
//
|
55
|
+
// Eliminate duplicate notations.
|
56
|
+
//
|
57
|
+
var notations = MathJax.Hub.SplitList(values.notation), notation = {};
|
58
|
+
for (var i = 0, m = notations.length; i < m; i++) notation[notations[i]] = true;
|
59
|
+
if (notation[MML.NOTATION.UPDIAGONALARROW]) delete notation[MML.NOTATION.UPDIAGONALSTRIKE];
|
60
|
+
//
|
61
|
+
// Add the needed notations
|
62
|
+
//
|
63
|
+
for (var n in notation) {
|
64
|
+
if (notation.hasOwnProperty(n)) {
|
65
|
+
if (this.CHTMLnotation[n] && this.CHTMLnotation.hasOwnProperty(n))
|
66
|
+
this.CHTMLnotation[n].call(this,child,cbox,bb,p,t,SOLID);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
//
|
70
|
+
// Adjust the bounding box
|
71
|
+
//
|
72
|
+
var BBOX = this.CHTML;
|
73
|
+
BBOX.w += bb.L + bb.R; BBOX.r += BBOX.L; if (BBOX.w > BBOX.r) BBOX.r = BBOX.w;
|
74
|
+
BBOX.h += bb.T; if (BBOX.h > BBOX.t) BBOX.t = BBOX.h;
|
75
|
+
BBOX.d += bb.B; if (BBOX.d > BBOX.b) BBOX.b = BBOX.d;
|
76
|
+
|
77
|
+
return node;
|
78
|
+
},
|
79
|
+
//
|
80
|
+
// The various notations and their implementations
|
81
|
+
//
|
82
|
+
CHTMLnotation: {
|
83
|
+
|
84
|
+
/********************************************************/
|
85
|
+
|
86
|
+
box: function (child,cbox,bb,p,t,SOLID) {
|
87
|
+
p -= t;
|
88
|
+
child.style.padding = CHTML.Em(p);
|
89
|
+
child.style.border = SOLID;
|
90
|
+
},
|
91
|
+
|
92
|
+
/********************************************************/
|
93
|
+
|
94
|
+
roundedbox: function (child,cbox,bb,p,t,SOLID) {
|
95
|
+
var r = Math.min(cbox.w,cbox.h+cbox.d+2*p)/4;
|
96
|
+
CHTML.addElement(child.parentNode,"mjx-box",{
|
97
|
+
style: {
|
98
|
+
padding:CHTML.Em(p-t), border:SOLID, "border-radius":CHTML.Em(r),
|
99
|
+
height:CHTML.Em(cbox.h+cbox.d), "vertical-align":CHTML.Em(-bb.D),
|
100
|
+
width:CHTML.Em(cbox.w), "margin-left":CHTML.Em(-bb.W)
|
101
|
+
}
|
102
|
+
});
|
103
|
+
},
|
104
|
+
|
105
|
+
/********************************************************/
|
106
|
+
|
107
|
+
circle: function (child,cbox,bb,p,t,SOLID) {
|
108
|
+
var H = bb.H, D = bb.D, W = bb.W;
|
109
|
+
var svg = this.CHTMLsvg(child,bb,t);
|
110
|
+
this.CHTMLsvgElement(svg.firstChild,"ellipse",{
|
111
|
+
rx:CHTML.Px(W/2-t/2), ry:CHTML.Px((H+D)/2-t/2),
|
112
|
+
cx:CHTML.Px(W/2), cy:CHTML.Px((H+D)/2)
|
113
|
+
});
|
114
|
+
},
|
115
|
+
|
116
|
+
/********************************************************/
|
117
|
+
|
118
|
+
left: function (child,cbox,bb,p,t,SOLID) {
|
119
|
+
child.style.borderLeft = SOLID;
|
120
|
+
child.style.paddingLeft = CHTML.Em(p-t);
|
121
|
+
},
|
122
|
+
|
123
|
+
/********************************************************/
|
124
|
+
|
125
|
+
right: function (child,cbox,bb,p,t,SOLID) {
|
126
|
+
child.style.borderRight = SOLID;
|
127
|
+
child.style.paddingRight = CHTML.Em(p-t);
|
128
|
+
},
|
129
|
+
|
130
|
+
/********************************************************/
|
131
|
+
|
132
|
+
top: function (child,cbox,bb,p,t,SOLID) {
|
133
|
+
child.style.borderTop = SOLID;
|
134
|
+
child.style.paddingTop = CHTML.Em(p-t);
|
135
|
+
},
|
136
|
+
|
137
|
+
/********************************************************/
|
138
|
+
|
139
|
+
bottom: function (child,cbox,bb,p,t,SOLID) {
|
140
|
+
child.style.borderBottom = SOLID;
|
141
|
+
child.style.paddingBottom = CHTML.Em(p-t);
|
142
|
+
},
|
143
|
+
|
144
|
+
/********************************************************/
|
145
|
+
|
146
|
+
actuarial: function (child,cbox,bb,p,t,SOLID) {
|
147
|
+
child.style.borderTop = child.style.borderRight = SOLID;
|
148
|
+
child.style.paddingTop = child.style.paddingRight = CHTML.Em(p-t);
|
149
|
+
},
|
150
|
+
|
151
|
+
/********************************************************/
|
152
|
+
|
153
|
+
madruwb: function (child,cbox,bb,p,t,SOLID) {
|
154
|
+
child.style.borderBottom = child.style.borderRight = SOLID;
|
155
|
+
child.style.paddingBottom = child.style.paddingRight = CHTML.Em(p-t);
|
156
|
+
},
|
157
|
+
|
158
|
+
/********************************************************/
|
159
|
+
|
160
|
+
verticalstrike: function (child,cbox,bb,p,t,SOLID) {
|
161
|
+
CHTML.addElement(child.parentNode,"mjx-box",{
|
162
|
+
style: {
|
163
|
+
"border-left":SOLID,
|
164
|
+
height:CHTML.Em(bb.H+bb.D), "vertical-align":CHTML.Em(-bb.D),
|
165
|
+
width:CHTML.Em(cbox.w/2+p-t/2), "margin-left":CHTML.Em(-cbox.w/2-p-t/2)
|
166
|
+
}
|
167
|
+
});
|
168
|
+
},
|
169
|
+
|
170
|
+
/********************************************************/
|
171
|
+
|
172
|
+
horizontalstrike: function (child,cbox,bb,p,t,SOLID) {
|
173
|
+
CHTML.addElement(child.parentNode,"mjx-box",{
|
174
|
+
style: {
|
175
|
+
"border-top":SOLID,
|
176
|
+
height:CHTML.Em((bb.H+bb.D)/2-t/2), "vertical-align":CHTML.Em(-bb.D),
|
177
|
+
width:CHTML.Em(bb.W), "margin-left":CHTML.Em(-bb.W)
|
178
|
+
}
|
179
|
+
});
|
180
|
+
},
|
181
|
+
|
182
|
+
/********************************************************/
|
183
|
+
|
184
|
+
updiagonalstrike: function (child,cbox,bb,p,t,SOLID) {
|
185
|
+
var H = bb.H, D = bb.D, W = bb.W;
|
186
|
+
var svg = this.CHTMLsvg(child,bb,t);
|
187
|
+
this.CHTMLsvgElement(svg.firstChild,"line",{
|
188
|
+
x1:CHTML.Px(t/2), y1:CHTML.Px(H+D-t), x2:CHTML.Px(W-t), y2:CHTML.Px(t/2)
|
189
|
+
});
|
190
|
+
},
|
191
|
+
|
192
|
+
/********************************************************/
|
193
|
+
|
194
|
+
downdiagonalstrike: function (child,cbox,bb,p,t,SOLID) {
|
195
|
+
var H = bb.H, D = bb.D, W = bb.W;
|
196
|
+
var svg = this.CHTMLsvg(child,bb,t);
|
197
|
+
this.CHTMLsvgElement(svg.firstChild,"line",{
|
198
|
+
x1:CHTML.Px(t/2), y1:CHTML.Px(t/2), x2:CHTML.Px(W-t), y2:CHTML.Px(H+D-t)
|
199
|
+
});
|
200
|
+
},
|
201
|
+
|
202
|
+
/********************************************************/
|
203
|
+
|
204
|
+
updiagonalarrow: function (child,cbox,bb,p,t,SOLID) {
|
205
|
+
var H = bb.H + bb.D - t, W = bb.W - t/2;
|
206
|
+
var a = Math.atan2(H,W)*(-180/Math.PI).toFixed(3);
|
207
|
+
var R = Math.sqrt(H*H + W*W);
|
208
|
+
var svg = this.CHTMLsvg(child,bb,t);
|
209
|
+
var g = this.CHTMLsvgElement(svg.firstChild,"g",{
|
210
|
+
fill:"currentColor",
|
211
|
+
transform:"translate("+this.CHTMLpx(t/2)+" "+this.CHTMLpx(H+t/2)+") rotate("+a+")"
|
212
|
+
});
|
213
|
+
var x = t * ARROWX, dx = t * ARROWDX, y = t * ARROWY;
|
214
|
+
this.CHTMLsvgElement(g,"line",{
|
215
|
+
x1:CHTML.Px(t/2), y1:0, x2:CHTML.Px(R-x), y2:0
|
216
|
+
});
|
217
|
+
this.CHTMLsvgElement(g,"path",{
|
218
|
+
d: "M "+this.CHTMLpx(R-x)+",0 " +
|
219
|
+
"L "+this.CHTMLpx(R-x-dx)+","+this.CHTMLpx(y) +
|
220
|
+
"L "+this.CHTMLpx(R)+",0 " +
|
221
|
+
"L "+this.CHTMLpx(R-x-dx)+","+this.CHTMLpx(-y),
|
222
|
+
stroke:"none"
|
223
|
+
});
|
224
|
+
},
|
225
|
+
|
226
|
+
/********************************************************/
|
227
|
+
|
228
|
+
phasorangle: function (child,cbox,bb,p,t,SOLID) {
|
229
|
+
var P = p, H = bb.H, D = bb.D;
|
230
|
+
p = (H+D)/2;
|
231
|
+
var W = bb.W + p - P; bb.W = W; bb.L = p;
|
232
|
+
child.style.margin = "0 0 0 "+CHTML.Em(p-P);
|
233
|
+
var svg = this.CHTMLsvg(child,bb,t);
|
234
|
+
this.CHTMLsvgElement(svg.firstChild,"path",{
|
235
|
+
d: "M "+this.CHTMLpx(p)+",1 " +
|
236
|
+
"L 1,"+this.CHTMLpx(H+D-t)+" L "+this.CHTMLpx(W)+","+this.CHTMLpx(H+D-t)
|
237
|
+
});
|
238
|
+
},
|
239
|
+
|
240
|
+
/********************************************************/
|
241
|
+
|
242
|
+
longdiv: function (child,cbox,bb,p,t,SOLID) {
|
243
|
+
bb.W += 1.5*p; bb.L += 1.5*p;
|
244
|
+
var H = bb.H, D = bb.D, W = bb.W;
|
245
|
+
child.style.margin = "0 0 0 "+CHTML.Em(1.5*p);
|
246
|
+
var svg = this.CHTMLsvg(child,bb,t);
|
247
|
+
this.CHTMLsvgElement(svg.firstChild,"path",{
|
248
|
+
d: "M "+this.CHTMLpx(W)+",1 L 1,1 "+
|
249
|
+
"a"+this.CHTMLpx(p)+","+this.CHTMLpx((H+D)/2-t/2)+" 0 0,1 1,"+this.CHTMLpx(H+D-1.5*t)
|
250
|
+
});
|
251
|
+
},
|
252
|
+
|
253
|
+
/********************************************************/
|
254
|
+
|
255
|
+
radical: function (child,cbox,bb,p,t,SOLID) {
|
256
|
+
bb.W += 1.5*p; bb.L += 1.5*p;
|
257
|
+
var H = bb.H, D = bb.D, W = bb.W;
|
258
|
+
child.style.margin = "0 0 0 "+CHTML.Em(1.5*p);
|
259
|
+
var svg = this.CHTMLsvg(child,bb,t);
|
260
|
+
this.CHTMLsvgElement(svg.firstChild,"path",{
|
261
|
+
d: "M 1,"+this.CHTMLpx(.6*(H+D)) +
|
262
|
+
" L "+this.CHTMLpx(p)+","+this.CHTMLpx(H+D) +
|
263
|
+
" L "+this.CHTMLpx(2*p)+",1 L "+this.CHTMLpx(W)+",1"
|
264
|
+
});
|
265
|
+
}
|
266
|
+
|
267
|
+
/********************************************************/
|
268
|
+
|
269
|
+
},
|
270
|
+
|
271
|
+
//
|
272
|
+
// Pixels with no "px"
|
273
|
+
//
|
274
|
+
CHTMLpx: function (m) {
|
275
|
+
m *= CHTML.em;
|
276
|
+
if (Math.abs(m) < .1) return "0";
|
277
|
+
return m.toFixed(1).replace(/\.0$/,"");
|
278
|
+
},
|
279
|
+
|
280
|
+
//
|
281
|
+
// Create the SVG element and position it over the
|
282
|
+
// contents
|
283
|
+
//
|
284
|
+
CHTMLsvg: function (node,bbox,t) {
|
285
|
+
if (!svg) {
|
286
|
+
var svg = document.createElementNS(SVGNS,"svg");
|
287
|
+
if (svg.style) {
|
288
|
+
svg.style.width = CHTML.Em(bbox.W);
|
289
|
+
svg.style.height = CHTML.Em(bbox.H+bbox.D);
|
290
|
+
svg.style.verticalAlign = CHTML.Em(-bbox.D);
|
291
|
+
svg.style.marginLeft = CHTML.Em(-bbox.W);
|
292
|
+
}
|
293
|
+
this.CHTMLsvgElement(svg,"g",{"stroke-width":CHTML.Px(t)});
|
294
|
+
node.parentNode.appendChild(svg);
|
295
|
+
}
|
296
|
+
return svg;
|
297
|
+
},
|
298
|
+
//
|
299
|
+
// Add an SVG element to the given svg node
|
300
|
+
//
|
301
|
+
CHTMLsvgElement: function (svg,type,def) {
|
302
|
+
var obj = document.createElementNS(SVGNS,type); obj.isMathJax = true;
|
303
|
+
if (def) {for (var id in def) {if (def.hasOwnProperty(id)) {obj.setAttributeNS(null,id,def[id].toString())}}}
|
304
|
+
svg.appendChild(obj);
|
305
|
+
return obj;
|
306
|
+
}
|
307
|
+
});
|
308
|
+
|
309
|
+
//
|
310
|
+
// Just use default toCommonHTML for EI8
|
311
|
+
//
|
312
|
+
if (!document.createElementNS) delete MML.menclose.prototype.toCommonHTML;
|
313
|
+
|
314
|
+
MathJax.Hub.Startup.signal.Post("CommonHTML menclose Ready");
|
315
|
+
MathJax.Ajax.loadComplete(CHTML.autoloadDir+"/menclose.js");
|
316
|
+
});
|
317
|
+
|
@@ -0,0 +1,94 @@
|
|
1
|
+
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
|
2
|
+
/* vim: set ts=2 et sw=2 tw=80: */
|
3
|
+
|
4
|
+
/*************************************************************
|
5
|
+
*
|
6
|
+
* MathJax/jax/output/CommonHTML/autoload/mglyph.js
|
7
|
+
*
|
8
|
+
* Implements the CommonHTML output for <mglyph> elements.
|
9
|
+
*
|
10
|
+
* ---------------------------------------------------------------------
|
11
|
+
*
|
12
|
+
* Copyright (c) 2015 The MathJax Consortium
|
13
|
+
*
|
14
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
15
|
+
* you may not use this file except in compliance with the License.
|
16
|
+
* You may obtain a copy of the License at
|
17
|
+
*
|
18
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
19
|
+
*
|
20
|
+
* Unless required by applicable law or agreed to in writing, software
|
21
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
22
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
23
|
+
* See the License for the specific language governing permissions and
|
24
|
+
* limitations under the License.
|
25
|
+
*/
|
26
|
+
|
27
|
+
MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () {
|
28
|
+
var VERSION = "2.6.0";
|
29
|
+
var MML = MathJax.ElementJax.mml,
|
30
|
+
CHTML = MathJax.OutputJax.CommonHTML,
|
31
|
+
LOCALE = MathJax.Localization;
|
32
|
+
|
33
|
+
MML.mglyph.Augment({
|
34
|
+
toCommonHTML: function (node,options) {
|
35
|
+
var values = this.getValues("src","width","height","valign","alt");
|
36
|
+
node = this.CHTMLcreateNode(node);
|
37
|
+
this.CHTMLhandleStyle(node);
|
38
|
+
this.CHTMLhandleScale(node);
|
39
|
+
if (values.src === "") {
|
40
|
+
var index = this.Get("index");
|
41
|
+
this.CHTMLgetVariant();
|
42
|
+
if (index && this.CHTMLvariant.style)
|
43
|
+
this.CHTMLhandleText(node,String.fromCharCode(index),this.CHTMLvariant);
|
44
|
+
} else {
|
45
|
+
var bbox = this.CHTML;
|
46
|
+
if (!bbox.img) bbox.img = MML.mglyph.GLYPH[values.src];
|
47
|
+
if (!bbox.img) {
|
48
|
+
bbox.img = MML.mglyph.GLYPH[values.src] = {img: new Image(), status: "pending"};
|
49
|
+
bbox.img.img.onload = MathJax.Callback(["CHTMLimgLoaded",this]);
|
50
|
+
bbox.img.img.onerror = MathJax.Callback(["CHTMLimgError",this]);
|
51
|
+
bbox.img.img.src = values.src;
|
52
|
+
MathJax.Hub.RestartAfter(bbox.img.img.onload);
|
53
|
+
}
|
54
|
+
if (bbox.img.status !== "OK") {
|
55
|
+
var err = MML.Error(LOCALE._(["MathML","BadMglyph"],"Bad mglyph: %1",values.src));
|
56
|
+
err.data[0].data[0].mathsize = "75%";
|
57
|
+
this.Append(err); err.toCommonHTML(node); this.data.pop();
|
58
|
+
bbox.combine(err.CHTML,0,0,1);
|
59
|
+
} else {
|
60
|
+
var img = CHTML.addElement(node,"img",{
|
61
|
+
isMathJax:true, src:values.src, alt:values.alt, title:values.alt
|
62
|
+
});
|
63
|
+
var w = bbox.img.img.width/CHTML.em, h = bbox.img.img.height/CHTML.em;
|
64
|
+
if (values.width !== "") img.style.width = CHTML.Em(this.CHTMLlength2em(values.width,w));
|
65
|
+
if (values.height !== "") img.style.height = CHTML.Em(this.CHTMLlength2em(values.height,h));
|
66
|
+
//
|
67
|
+
// Warning: causes page reflows
|
68
|
+
//
|
69
|
+
bbox.w = bbox.r = img.offsetWidth/CHTML.em; bbox.h = bbox.t = img.offsetHeight/CHTML.em;
|
70
|
+
if (values.valign) {
|
71
|
+
bbox.d = bbox.b = -this.CHTMLlength2em(values.valign,h);
|
72
|
+
img.style.verticalAlign = CHTML.Em(-bbox.d);
|
73
|
+
bbox.h -= bbox.d; bbox.t = bbox.h;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
this.CHTMLhandleSpace(node);
|
78
|
+
this.CHTMLhandleBBox(node);
|
79
|
+
this.CHTMLhandleColor(node);
|
80
|
+
return node;
|
81
|
+
},
|
82
|
+
CHTMLimgLoaded: function (event,status) {
|
83
|
+
if (typeof(event) === "string") status = event;
|
84
|
+
this.CHTML.img.status = (status || "OK");
|
85
|
+
},
|
86
|
+
CHTMLimgError: function () {this.CHTML.img.img.onload("error")}
|
87
|
+
},{
|
88
|
+
GLYPH: {} // global list of all loaded glyphs
|
89
|
+
});
|
90
|
+
|
91
|
+
MathJax.Hub.Startup.signal.Post("CommonHTML mglyph Ready");
|
92
|
+
MathJax.Ajax.loadComplete(CHTML.autoloadDir+"/mglyph.js");
|
93
|
+
});
|
94
|
+
|
@@ -0,0 +1,290 @@
|
|
1
|
+
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
|
2
|
+
/* vim: set ts=2 et sw=2 tw=80: */
|
3
|
+
|
4
|
+
/*************************************************************
|
5
|
+
*
|
6
|
+
* MathJax/jax/output/CommonHTML/autoload/mmultiscripts.js
|
7
|
+
*
|
8
|
+
* Implements the CommonHTML output for <mmultiscripts> elements.
|
9
|
+
*
|
10
|
+
* ---------------------------------------------------------------------
|
11
|
+
*
|
12
|
+
* Copyright (c) 2015 The MathJax Consortium
|
13
|
+
*
|
14
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
15
|
+
* you may not use this file except in compliance with the License.
|
16
|
+
* You may obtain a copy of the License at
|
17
|
+
*
|
18
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
19
|
+
*
|
20
|
+
* Unless required by applicable law or agreed to in writing, software
|
21
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
22
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
23
|
+
* See the License for the specific language governing permissions and
|
24
|
+
* limitations under the License.
|
25
|
+
*/
|
26
|
+
|
27
|
+
MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () {
|
28
|
+
var VERSION = "2.6.0";
|
29
|
+
var MML = MathJax.ElementJax.mml,
|
30
|
+
CHTML = MathJax.OutputJax.CommonHTML;
|
31
|
+
|
32
|
+
MML.mmultiscripts.Augment({
|
33
|
+
toCommonHTML: function (node,stretch) {
|
34
|
+
if (!stretch) {
|
35
|
+
node = this.CHTMLcreateNode(node);
|
36
|
+
this.CHTMLhandleStyle(node);
|
37
|
+
this.CHTMLhandleScale(node);
|
38
|
+
this.CHTMLgetVariant();
|
39
|
+
}
|
40
|
+
CHTML.BBOX.empty(this.CHTML);
|
41
|
+
|
42
|
+
//
|
43
|
+
// Get base node
|
44
|
+
//
|
45
|
+
var base, bbox;
|
46
|
+
if (stretch) {
|
47
|
+
base = CHTML.getNode(node,"mjx-base");
|
48
|
+
} else {
|
49
|
+
this.CHTMLaddChild(node,0,{type:"mjx-base", noBBox:true, forceChild:true});
|
50
|
+
base = node.firstChild;
|
51
|
+
}
|
52
|
+
bbox = this.CHTMLbboxFor(0);
|
53
|
+
if (bbox.ic) {
|
54
|
+
bbox.R -= bbox.ic; // remove IC (added by mo and mi)
|
55
|
+
if (!stretch) base.style.marginRight = CHTML.Em(-bbox.ic);
|
56
|
+
delta = 1.3*bbox.ic + .05; // make faked IC be closer to expeted results
|
57
|
+
}
|
58
|
+
|
59
|
+
//
|
60
|
+
// Collect scripts into horizontal boxes and add them into the node
|
61
|
+
//
|
62
|
+
var BOX = {}, BBOX = {};
|
63
|
+
this.CHTMLgetScripts(BOX,BBOX,stretch,node);
|
64
|
+
var sub = BOX.sub, sup = BOX.sup, presub = BOX.presub, presup = BOX.presup;
|
65
|
+
var sbox = BBOX.sub, Sbox = BBOX.sup, pbox = BBOX.presub, Pbox = BBOX.presup;
|
66
|
+
if (!stretch) this.CHTMLaddBoxes(node,base,BOX);
|
67
|
+
|
68
|
+
//
|
69
|
+
// Get the initial values for the variables
|
70
|
+
//
|
71
|
+
var values = this.getValues("scriptlevel","scriptsizemultiplier");
|
72
|
+
var sscale = (this.Get("scriptlevel") < 3 ? values.scriptsizemultiplier : 1);
|
73
|
+
var ex = CHTML.TEX.x_height, s = CHTML.TEX.scriptspace;
|
74
|
+
var q = CHTML.TEX.sup_drop * sscale, r = CHTML.TEX.sub_drop * sscale;
|
75
|
+
var u = bbox.h - q, v = bbox.d + r, delta = 0, p;
|
76
|
+
var bmml = this.data[this.base];
|
77
|
+
if (bmml && (bmml.type === "mi" || bmml.type === "mo")) {
|
78
|
+
if (bmml.data.join("").length === 1 && bbox.rscale === 1 && !bbox.sH &&
|
79
|
+
!bmml.Get("largeop")) {u = v = 0}
|
80
|
+
}
|
81
|
+
values = this.getValues("displaystyle","subscriptshift","superscriptshift","texprimestyle");
|
82
|
+
values.subscriptshift = (values.subscriptshift === "" ? 0 : this.CHTMLlength2em(values.subscriptshift));
|
83
|
+
values.superscriptshift = (values.superscriptshift === "" ? 0 : this.CHTMLlength2em(values.superscriptshift));
|
84
|
+
|
85
|
+
var dx = (presub ? s+pbox.w : presup ? s+Pbox.w-delta : 0);
|
86
|
+
this.CHTML.combine(bbox,dx,0); var x = this.CHTML.w;
|
87
|
+
|
88
|
+
//
|
89
|
+
// Place the scripts as needed
|
90
|
+
//
|
91
|
+
if (!sup && !presup) {
|
92
|
+
v = Math.max(v,CHTML.TEX.sub1,values.subscriptshift);
|
93
|
+
if (sub) v = Math.max(v,sbox.h-(4/5)*ex);
|
94
|
+
if (presub) v = Math.max(v,pbox.h-(4/5)*ex);
|
95
|
+
if (sub) this.CHTMLplaceSubOnly(sub,sbox,x,v,s);
|
96
|
+
if (presub) this.CHTMLplacePresubOnly(presub,pbox,v,s);
|
97
|
+
} else {
|
98
|
+
if (!sub && !presub) {
|
99
|
+
p = CHTML.TEX[(values.displaystyle ? "sup1" : (values.texprimestyle ? "sup3" : "sup2"))];
|
100
|
+
u = Math.max(u,p,values.superscriptshift);
|
101
|
+
if (sup) u = Math.max(u,Sbox.d+(1/4)*ex);
|
102
|
+
if (presup) u = Math.max(u,Pbox.d+(1/4)*ex);
|
103
|
+
if (sup) this.CHTMLplaceSupOnly(sup,Sbox,x,delta,u,s);
|
104
|
+
if (presup) this.CHTMLplacePresupOnly(presup,Pbox,delta,u,s);
|
105
|
+
} else {
|
106
|
+
v = Math.max(v,CHTML.TEX.sub2);
|
107
|
+
var t = CHTML.TEX.rule_thickness;
|
108
|
+
var h = (sbox||pbox).h, d = (Sbox||Pbox).d;
|
109
|
+
if (presub) h = Math.max(h,pbox.h);
|
110
|
+
if (presup) d = Math.max(d,Pbox.d);
|
111
|
+
if ((u - d) - (h - v) < 3*t) {
|
112
|
+
v = 3*t - u + d + h; q = (4/5)*ex - (u - d);
|
113
|
+
if (q > 0) {u += q; v -= q}
|
114
|
+
}
|
115
|
+
u = Math.max(u,values.superscriptshift);
|
116
|
+
v = Math.max(v,values.subscriptshift);
|
117
|
+
if (sup) {
|
118
|
+
if (sub) {this.CHTMLplaceSubSup(sub,sbox,sup,Sbox,x,delta,u,v,s)}
|
119
|
+
else {this.CHTMLplaceSupOnly(sup,Sbox,x,delta,u,s)}
|
120
|
+
} else if (sub) {this.CHTMLplaceSubOnly(sub,sbox,x,v,s)}
|
121
|
+
if (presup) {
|
122
|
+
if (presub) {this.CHTMLplacePresubPresup(presub,pbox,presup,Pbox,delta,u,v,s)}
|
123
|
+
else {this.CHTMLplacePresupOnly(presup,Pbox,delta,u,s)}
|
124
|
+
} else if (presub) {this.CHTMLplacePresubOnly(presub,pbox,v,s)}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
this.CHTML.clean();
|
128
|
+
this.CHTMLhandleSpace(node);
|
129
|
+
this.CHTMLhandleBBox(node);
|
130
|
+
this.CHTMLhandleColor(node);
|
131
|
+
return node;
|
132
|
+
},
|
133
|
+
//
|
134
|
+
// Get the subscript, superscript, presubscript, and presuperscript
|
135
|
+
// boxes, with proper spacing, and computer their bounding boxes.
|
136
|
+
//
|
137
|
+
CHTMLgetScripts: function (BOX,BBOX,stretch,node) {
|
138
|
+
if (stretch) {
|
139
|
+
BOX.sub = CHTML.getNode(node,"mjx-sub");
|
140
|
+
BOX.sup = CHTML.getNode(node,"mjx-sup");
|
141
|
+
BOX.presub = CHTML.getNode(node,"mjx-presub");
|
142
|
+
BOX.presup = CHTML.getNode(node,"mjx-presup");
|
143
|
+
BBOX.sub = this.CHTMLbbox.sub;
|
144
|
+
BBOX.sup = this.CHTMLbbox.sup;
|
145
|
+
BBOX.presub = this.CHTMLbbox.presub;
|
146
|
+
BBOX.presup = this.CHTMLbbox.presup;
|
147
|
+
return;
|
148
|
+
}
|
149
|
+
this.CHTMLbbox = BBOX; // save for when stretched
|
150
|
+
var state = {i:1, w:0, BOX:BOX, BBOX:BBOX}, m = this.data.length;
|
151
|
+
var sub = "sub", sup = "sup";
|
152
|
+
while (state.i < m) {
|
153
|
+
if ((this.data[state.i]||{}).type === "mprescripts") {
|
154
|
+
state.i++; state.w = 0;
|
155
|
+
sub = "presub"; sup = "presup";
|
156
|
+
} else {
|
157
|
+
var sbox = this.CHTMLaddScript(sub,state);
|
158
|
+
var Sbox = this.CHTMLaddScript(sup,state);
|
159
|
+
var w = Math.max((sbox ? sbox.rscale*sbox.w : 0),(Sbox ? Sbox.rscale*Sbox.w : 0));
|
160
|
+
this.CHTMLpadScript(sub,w,sbox,state);
|
161
|
+
this.CHTMLpadScript(sup,w,Sbox,state);
|
162
|
+
state.w += w;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
if (BBOX.sub) BBOX.sub.clean();
|
166
|
+
if (BBOX.sup) BBOX.sup.clean();
|
167
|
+
if (BBOX.presub) BBOX.presub.clean();
|
168
|
+
if (BBOX.presup) BBOX.presup.clean();
|
169
|
+
},
|
170
|
+
//
|
171
|
+
// Add a script to the proper box, creating the box if needed,
|
172
|
+
// and padding the box to account for any <none/> elements.
|
173
|
+
// Return the bounding box for the script for later use.
|
174
|
+
//
|
175
|
+
CHTMLaddScript: function (type,state) {
|
176
|
+
var BOX, BBOX, data = this.data[state.i];
|
177
|
+
if (data && data.type !== "none" && data.type !== "mprescripts") {
|
178
|
+
BOX = state.BOX[type];
|
179
|
+
if (!BOX) {
|
180
|
+
BOX = state.BOX[type] = CHTML.Element("mjx-"+type);
|
181
|
+
BBOX = state.BBOX[type] = CHTML.BBOX.empty();
|
182
|
+
if (state.w) {
|
183
|
+
BOX.style.paddingLeft = CHTML.Em(state.w);
|
184
|
+
BBOX.w = BBOX.r = state.w; BBOX.x = state.w;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
data.toCommonHTML(BOX);
|
188
|
+
BBOX = data.CHTML;
|
189
|
+
}
|
190
|
+
if (data && data.type !== "mprescripts") state.i++;
|
191
|
+
return BBOX;
|
192
|
+
},
|
193
|
+
//
|
194
|
+
// Add padding to the script box to make match the width of the
|
195
|
+
// super- or subscript that is above or below it, and adjust the
|
196
|
+
// bounding box for the script row. If these are pre-scripts,
|
197
|
+
// right-justify the scripts, otherwise, left-justify them.
|
198
|
+
//
|
199
|
+
CHTMLpadScript: function (type,w,bbox,state) {
|
200
|
+
if (!bbox) bbox = {w:0, fake:1, rscale:1};
|
201
|
+
var BBOX = state.BBOX[type], dx = 0, dw = 0;
|
202
|
+
if (BBOX) {
|
203
|
+
if (bbox.rscale*bbox.w < w) {
|
204
|
+
var BOX = state.BOX[type]; dw = w-bbox.rscale*bbox.w;
|
205
|
+
var space = CHTML.Element("mjx-spacer",{style:{width:CHTML.Em(dw)}});
|
206
|
+
if (type.substr(0,3) === "pre" && !bbox.fake) {
|
207
|
+
BOX.insertBefore(space,BOX.lastChild);
|
208
|
+
dx = dw; dw = 0;
|
209
|
+
} else {
|
210
|
+
BOX.appendChild(space);
|
211
|
+
}
|
212
|
+
}
|
213
|
+
if (bbox.fake) {BBOX.w += dx} else {BBOX.combine(bbox,BBOX.w+dx,0)}
|
214
|
+
BBOX.w += dw;
|
215
|
+
}
|
216
|
+
},
|
217
|
+
//
|
218
|
+
// Add the boxes into the main node, creating stacks when needed
|
219
|
+
//
|
220
|
+
CHTMLaddBoxes: function (node,base,BOX) {
|
221
|
+
var sub = BOX.sub, sup = BOX.sup, presub = BOX.presub, presup = BOX.presup;
|
222
|
+
if (presub && presup) {
|
223
|
+
var prestack = CHTML.Element("mjx-prestack"); node.insertBefore(prestack,base);
|
224
|
+
prestack.appendChild(presup); prestack.appendChild(presub);
|
225
|
+
} else {
|
226
|
+
if (presub) node.insertBefore(presub,base);
|
227
|
+
if (presup) node.insertBefore(presup,base);
|
228
|
+
}
|
229
|
+
if (sub && sup) {
|
230
|
+
var stack = CHTML.addElement(node,"mjx-stack");
|
231
|
+
stack.appendChild(sup); stack.appendChild(sub);
|
232
|
+
} else {
|
233
|
+
if (sub) node.appendChild(sub);
|
234
|
+
if (sup) node.appendChild(sup);
|
235
|
+
}
|
236
|
+
},
|
237
|
+
//
|
238
|
+
// Handle positioning the various scripts
|
239
|
+
//
|
240
|
+
CHTMLplaceSubOnly: function (sub,sbox,x,v,s) {
|
241
|
+
sub.style.verticalAlign = CHTML.Em(-v);
|
242
|
+
sub.style.marginRight = CHTML.Em(s); sbox.w += s;
|
243
|
+
this.CHTML.combine(sbox,x,-v);
|
244
|
+
},
|
245
|
+
CHTMLplaceSupOnly: function (sup,Sbox,x,delta,u,s) {
|
246
|
+
sup.style.verticalAlign = CHTML.Em(u);
|
247
|
+
sup.style.paddingLeft = CHTML.Em(delta);
|
248
|
+
sup.style.paddingRight = CHTML.Em(s); Sbox.w += s;
|
249
|
+
this.CHTML.combine(Sbox,x+delta,u);
|
250
|
+
},
|
251
|
+
CHTMLplaceSubSup: function (sub,sbox,sup,Sbox,x,delta,u,v,s) {
|
252
|
+
sub.style.paddingRight = CHTML.Em(s); sbox.w += s;
|
253
|
+
sup.style.paddingBottom = CHTML.Em(u+v-Sbox.d-sbox.h);
|
254
|
+
sup.style.paddingLeft = CHTML.Em(delta+(Sbox.x||0));
|
255
|
+
sup.style.paddingRight = CHTML.Em(s); Sbox.w += s;
|
256
|
+
sup.parentNode.style.verticalAlign = CHTML.Em(-v);
|
257
|
+
this.CHTML.combine(sbox,x,-v);
|
258
|
+
this.CHTML.combine(Sbox,x+delta,u);
|
259
|
+
},
|
260
|
+
CHTMLplacePresubOnly: function (presub,pbox,v,s) {
|
261
|
+
presub.style.verticalAlign = CHTML.Em(-v);
|
262
|
+
presub.style.marginLeft = CHTML.Em(s);
|
263
|
+
this.CHTML.combine(pbox,s,-v);
|
264
|
+
},
|
265
|
+
CHTMLplacePresupOnly: function (presup,Pbox,delta,u,s) {
|
266
|
+
presup.style.verticalAlign = CHTML.Em(u);
|
267
|
+
presup.style.paddingLeft = CHTML.Em(s);
|
268
|
+
presup.style.paddingRight = CHTML.Em(-delta);
|
269
|
+
this.CHTML.combine(Pbox,s,u);
|
270
|
+
},
|
271
|
+
CHTMLplacePresubPresup: function (presub,pbox,presup,Pbox,delta,u,v,s) {
|
272
|
+
presub.style.paddingLeft = CHTML.Em(s);
|
273
|
+
presup.style.paddingBottom = CHTML.Em(u+v-Pbox.d-pbox.h);
|
274
|
+
presup.style.paddingLeft = CHTML.Em(delta+s+(Pbox.x||0));
|
275
|
+
presup.style.paddingRight = CHTML.Em(-delta);
|
276
|
+
presup.parentNode.style.verticalAlign = CHTML.Em(-v);
|
277
|
+
this.CHTML.combine(pbox,s,-v);
|
278
|
+
this.CHTML.combine(Pbox,s+delta,u);
|
279
|
+
},
|
280
|
+
//
|
281
|
+
// Handle stretchy bases
|
282
|
+
//
|
283
|
+
CHTMLstretchH: MML.mbase.CHTMLstretchH,
|
284
|
+
CHTMLstretchV: MML.mbase.CHTMLstretchV
|
285
|
+
});
|
286
|
+
|
287
|
+
MathJax.Hub.Startup.signal.Post("CommonHTML mmultiscripts Ready");
|
288
|
+
MathJax.Ajax.loadComplete(CHTML.autoloadDir+"/mmultiscripts.js");
|
289
|
+
});
|
290
|
+
|