Skip to content

Some mfracs unexpectedly closed up to preceding equals sign #2782

Open
@jmitsdarfer

Description

@jmitsdarfer

Issue Summary

I was surprised to come across the equals sign and mfrac closed up in this case:

<mfrac> <mrow> <mo>&#x2202;</mo> <mi>p</mi> <mrow> <mo stretchy="false">(</mo> <mi>x</mi> <mo>,</mo> <mi>t</mi> <mo stretchy="false">)</mo> </mrow> </mrow> <mrow> <mo>&#x2202;</mo> <mi>t</mi> </mrow> </mfrac> <mo>=</mo> <mfrac> <mrow> <mo>&#x2202;</mo> </mrow> <mrow> <mo>&#x2202;</mo> <mi>x</mi> </mrow> </mfrac> <mi>D</mi> <mrow> <mo stretchy="false">(</mo> <mi>x</mi> <mo stretchy="false">)</mo> </mrow>

image

I expected this:

image

I tested it without the mfrac to the right of the equals, and it spaced as expected, i.e.,

<mfrac> <mrow> <mo>&#x2202;</mo> <mi>p</mi> <mrow> <mo stretchy="false">(</mo> <mi>x</mi> <mo>,</mo> <mi>t</mi> <mo stretchy="false">)</mo> </mrow> </mrow> <mrow> <mo>&#x2202;</mo> <mi>t</mi> </mrow> </mfrac> <mo>=</mo> <mo>&#x2202;</mo> <mi>x</mi> <mi>D</mi> <mrow> <mo stretchy="false">(</mo> <mi>x</mi> <mo stretchy="false">)</mo> </mrow>

image

Then, I also tested mi tags rather than mo tags in the mfrac and this also spaced as expected, i.e.,

<mfrac> <mrow> <mo>&#x2202;</mo> <mi>p</mi> <mrow> <mo stretchy="false">(</mo> <mi>x</mi> <mo>,</mo> <mi>t</mi> <mo stretchy="false">)</mo> </mrow> </mrow> <mrow> <mo>&#x2202;</mo> <mi>t</mi> </mrow> </mfrac> <mo>=</mo> <mfrac> <mrow> <mi>A</mi> </mrow> <mrow> <mi>B</mi> <mi>x</mi> </mrow> </mfrac> <mi>D</mi> <mrow> <mo stretchy="false">(</mo> <mi>x</mi> <mo stretchy="false">)</mo> </mrow>

image

Technical details:

MathJax Version: master - latest commit: MathJax.js v2.7.9
Client OS: Windows
Browser: Version 94.0.4606.61 (Official Build) (64-bit)
Renderer: HTML-CSS

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedIssue has been reproduced by MathJax teamCode ExampleContains an illustrative code example, solution, or work-aroundReady for Developmentv2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions