-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
26520% mjx-texatom font-size #2694
Comments
There are several issues going on here. First, your Second, your Third, version 3.1.4 introduced a bug that causes MathJax to fail to recognize that it needs to use the If you fix the startup: {
document: dom.serialize(),
ready() {
const OutputJax = MathJax._.output.common.OutputJax.CommonOutputJax;
const measureMetrics = OutputJax.prototype.measureMetrics;
OutputJax.prototype.measureMetrics = function (node, getFamily) {
const metrics = measureMetrics.call(this, node, getFamily);
const [w, h] = this.adaptor.nodeSize(this.adaptor.childNode(node, 1));
metrics.ex = (w ? h / 60 : metrics.em * this.options.exFactor);
const scale = Math.max(this.options.minScale,
this.options.matchFontHeight ?
metrics.ex / this.font.params.x_height / metrics.em : 1);
return metrics;
}
MathJax.startup.defaultReady();
}
} then that should get the sizes correct for now. Once the v3.2 is out, you can remove the extra |
Tiny |
Issue Summary
Server conversion from TeX to CommonHTML produces enormous glyphs for both display and inline maths, and seems like no config option fixes that.
Steps to Reproduce:
Minimal html and css to reproduce:
Conversion script (don't mind jsdom, I'm using it before mathjax to patch the document):
Produced mjx style, result html.
Technical details:
The text was updated successfully, but these errors were encountered: