-
-
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
MJ4 mathjax-tex monospace double-quote much wider than MJ2's #3268
Comments
Here's the situation for this. In MathML, the quotation mark is considered to be a "pseudo-script" as defined in the MathML specification section 7.2.2. In order to handle both the recommended usage such as This is not what happened in v2 because MathJax v2 didn't handle pseudo-scripts, whereas v4 does. Of course, this substitution only occurs for It is true that using two U+2032 to replace U+2033 is not very good for a monospace font. But even in v2, The MathJax font tools do have a means of building new characters by combining others, and it would be possible to make a close-spaced version of U+2033 and the other multiple-prime characters for the monospace font. The mathjax-tex font is supposed to be the same as the v2/v3 font, so I'm not sure if that should be done or not. In any case, this is "expected behavior" in v4. |
I forgot to add that you can disable the translation of MathJax = {
startup: {
ready() {
const {MmlMo} = MathJax._.core.MmlTree.MmlNodes.mo;
MmlMo.remapPrimes[0x0022] = 0x0022; // don't remap double quote
MathJax.startup.defaultReady();
}
}
}; |
@dpvc , thank you for your thoughtful explanation: Incredibly helpful insights into causes, MML standards, and options for going forward! |
Issue Summary
MJ4 typesets a double-quote from MML monospace as much wider than MJ2. Ex:
Steps to Reproduce:
Observed: The double-quote is quite wide
Technical details:
I am using the following MathJax configuration:
and loading MathJax via
Supporting information:
Also reproduces in Chrome 127.0.6533.73
The text was updated successfully, but these errors were encountered: