Skip to content
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

[svg] Munderover not rendered correctly #2317

Closed
RainHallikas opened this issue Feb 6, 2020 · 1 comment
Closed

[svg] Munderover not rendered correctly #2317

RainHallikas opened this issue Feb 6, 2020 · 1 comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3
Milestone

Comments

@RainHallikas
Copy link

RainHallikas commented Feb 6, 2020

Using MathJax 3 MML-SVG and munderover gets rendered incorrectly. MathJax 2.7.6 does not have the same issue. It's because the mstyle has mathsize of 140%.
Result link: https://i.ibb.co/hDp5d9P/Capture.png
and source MathML:

<math xmlns="http://www.w3.org/1998/Math/MathML" id="mml_m11" overflow="scroll"><mrow> <mi>T</mi> <mi>E</mi> <msub> <mi>R</mi> <mrow> <mi>H</mi> <mi>F</mi> </mrow> </msub> <mo>=</mo> <munderover> <mstyle mathsize="140%" displaystyle="true" stretchy="false"> <mo>∑</mo> </mstyle> <mrow> <mi>n</mi> <mo>=</mo> <mn>1</mn> </mrow> <mi>N</mi> </munderover> <mi>E</mi> <msub> <mi>R</mi> <mrow> <mi>A</mi> <mi>L</mi> <mo>,</mo> <mi>H</mi> <mi>F</mi> <mo>,</mo> <mi>n</mi> </mrow> </msub> <mo>+</mo> <munderover> <mstyle mathsize="140%" displaystyle="true" stretchy="false"> <mo>∑</mo> </mstyle> <mrow> <mi>m</mi> <mo>=</mo> <mn>1</mn> </mrow> <mi>M</mi> </munderover> <mi>E</mi> <msub> <mi>R</mi> <mrow> <mi>E</mi> <mi>L</mi> <mi>V</mi> <mo>,</mo> <mi>H</mi> <mi>F</mi> <mo>,</mo> <mi>m</mi> </mrow> </msub></mrow></math>

@dpvc dpvc added Accepted Issue has been reproduced by MathJax team Ready for Development labels Feb 10, 2020
@dpvc
Copy link
Member

dpvc commented Feb 10, 2020

OK, it looks like the scaling is not fully being taken into account. It does work if you use

<mo mathsize="140%">∑</mo>

rather than

<mstyle mathsize="140%" displaystyle="true" stretchy="false"> <mo>∑</mo> </mstyle>

if that is possible for you. If not, it might be possible to write a MathJax MathML input pre-filter that moves the mathsize from the mstyle tag to the contained mo automatically until this bug is fixed.

Also note that it is an error only in the SVG output, so an alternative would be to switch to the CommonHTML output, if that is possible.

@dpvc dpvc changed the title Munderover not rendered correctly [v3][svg] Munderover not rendered correctly Feb 10, 2020
@dpvc dpvc added the v3 label Feb 19, 2020
@dpvc dpvc changed the title [v3][svg] Munderover not rendered correctly [svg] Munderover not rendered correctly Feb 24, 2020
@dpvc dpvc self-assigned this Feb 24, 2020
@dpvc dpvc added this to the 3.0.2 milestone Mar 5, 2020
@dpvc dpvc removed their assignment Mar 16, 2020
dpvc added a commit to mathjax/MathJax-src that referenced this issue Apr 3, 2020
Fix issues with munderover/msubsup when base is scaled  (mathjax/MathJax#2317)
@dpvc dpvc added Merged Merged into develop branch Fixed and removed Ready for Review labels Apr 3, 2020
@dpvc dpvc closed this as completed Apr 10, 2020
@dpvc dpvc removed the Merged Merged into develop branch label Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3
Projects
None yet
Development

No branches or pull requests

2 participants