-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Mathjax v2.5
This release focuses on speed improvements.
Goal: get HTML-CSS to SVG speed
- Eliminate some measurements that modern browsers don't need anymore
- eliminate lots of measurements for simple output
- see this branch and config option
Goal: enable a first, faster but less precise pass, followed by a second, precise pass.
- develop “simple” HTML-output (faster but potentially lower quality)
- focused on speed
- stable across browsers.
- development in this branch
- incorporate two-pass mode
- see this extension
- ship the new ContentMML extension
Download a copy of our development branch from https://github.com/MathJax/MathJax/tree/develop
Use unpacked/MathJax.js
.
Activate the new configuration option noReflows
, e.g.,
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML"],
extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js"],
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true },
"HTML-CSS": {noReflows: true}, // the important part
TeX: {
extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
}
});
</script>
Download a copy of the CommonHTML branch https://github.com/dpvc/MathJax/tree/common-html/ (not yet merged into develop)
Use unpacked/MathJax.js
Configure the output to CommmonHTML (instead of HTML-CSS), e.g.,
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX","input/MathML","output/HTML-CSS"],
extensions: ["CHTML-preview.js","tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js"],
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true },
TeX: {
extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
}
});
</script>
before MathJax.js is loaded.
Note the CHTML-preview
extension which sets up a CommonHTML pass followed by a HTML-CSS pass.
Download a copy of the CommonHTML branch https://github.com/dpvc/MathJax/tree/common-html/
Use unpacked/MathJax.js
Configure the output to CommmonHTML (instead of HTML-CSS), e.g.,
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX","input/MathML","output/CommonHTML"],
extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js"],
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true },
TeX: {
extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
}
});
</script>
before MathJax.js is loaded.