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
Why display and MathJax equation source do not match? #3209
Comments
It appears that what you are seeing is part of the expression that in the middle, not the left-hand part. Your original MathML includes ...
<mn>144</mn>
<mi>x</mi>
<mn>2</mn>
<mi>y</mi>
<mn>4</mn>
<mn>12</mn>
<mi>x</mi>
<mi>y</mi>
<mn>2</mn>
<mo>⋅</mo>
<mo stretchy="false">(</mo>
<mo>−</mo>
<mn>14</mn>
<mi>x</mi>
<mn>2</mn>
<mi>y</mi>
<mn>2</mn>
<mo stretchy="false">)</mo>
... which is what I see of the output that you have in your screen shot. That section of the expression is just about the exact middle of the expression, so I'm wondering if the centering of displayed equations is causing the very long expression to be centered with the left-hand part off to the left, not showing. You might try setting It appears that you are using v2.7.2, which is old even for version 2 (the current version is 3.2.2, with v4 currently in beta release). The current v2 version is 2.7.9, so you should at least update that far if you are not able to go to 3.2.2. |
Maximizing the window the whole expression is seen without changing the code:
s = "<html><head>" + vbCrLf
s += "<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML'> </script>" + vbCrLf
s += "</head><body style='font-family:Verdana,Arial;font-size: 1.1em;height:80%;width:80%;margin-left:10%'>" + vbCrLf
s += "<div style='height:100%;display:flex;align-items:center;justify-content:center;'><div>" + vbCrLf
s += s1 + vbCrLf
s += "</div></div></body></html>"
With version 3.2.2 neither maximizing nor not maximizing the expression is trimmed.
…________________________________
De: Davide P. Cervone ***@***.***>
Enviat el: dimecres, 27 de març de 2024 19:02
Per a: mathjax/MathJax ***@***.***>
A/c: Xavier Ramon Junqué i de Fortuny ***@***.***>; Author ***@***.***>
Tema: Re: [mathjax/MathJax] Why display and MathJax equation source do not match? (Issue #3209)
It appears that what you are seeing is part of the expression that in the middle, not the left-hand part. Your original MathML includes
...
<mn>144</mn>
<mi>x</mi>
<mn>2</mn>
<mi>y</mi>
<mn>4</mn>
<mn>12</mn>
<mi>x</mi>
<mi>y</mi>
<mn>2</mn>
<mo>⋅</mo>
<mo stretchy="false">(</mo>
<mo>−</mo>
<mn>14</mn>
<mi>x</mi>
<mn>2</mn>
<mi>y</mi>
<mn>2</mn>
<mo stretchy="false">)</mo>
...
which is what I see of the output that you have in your screen shot. That section of the expression is just about the exact middle of the expression, so I'm wondering if the centering of displayed equations is causing the very long expression to be centered with the left-hand part off to the left, not showing. You might try setting displayAlign to "left" and see if that changes the result. Or check if there is other CSS in your page that is affecting the positioning. In any case, I suspect that the full equation is rendered properly, but just shifted so that you are seeing the middle part of it rather than the left-hand part.
It appears that you are using v2.7.2, which is old even for version 2 (the current version is 3.2.2, with v4 currently in beta release). The current v2 version is 2.7.9, so you should at least update that far if you are not able to go to 3.2.2.
—
Reply to this email directly, view it on GitHub<#3209 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGPV4VYZRTN7IDUE3G25CJ3Y2MCU3AVCNFSM6AAAAABFK7RL4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRTGQ2DOMJVGM>.
You are receiving this because you authored the thread.
|
As you may see in picture one MathJax presentation and source code are Ok and match. In the second image they do not match.
I am using the following configuration:
I am using the default configuration .
Original MathML.txt
The text was updated successfully, but these errors were encountered: