Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #2778
Closed
Open
Issue created Oct 01, 2021 by Administrator@rootContributor

Superscript under square root very close to the bar sometimes

Created by: jmitsdarfer

Issue Summary

At 100% zoom, sometimes a superscript w/in an msqrt appears to almost be touching the square root bar, depending on the exact equation. For example, this one looked fine:

<mi>x</mi> <mo>=</mo> <msqrt> <mrow> <msup> <mrow> <mi>b</mi> </mrow> <mrow> <mn>2</mn> </mrow> </msup> <mo>&#x2212;</mo> <mn>4</mn> <mi>a</mi> <mi>c</mi> </mrow> </msqrt>

image

However, this one looked very tight:

<mi>a</mi> <msqrt> <mrow> <msup> <mrow> <mi>n</mi> </mrow> <mrow> <mn>2</mn> </mrow> </msup> <mo>+</mo> <mn>1</mn> </mrow> </msqrt> <mrow> <mo stretchy="true">(</mo> <mfrac> <mrow> <mi>n</mi> <mi>a</mi> </mrow> <mrow> <mn>2</mn> </mrow> </mfrac> <mo>+</mo> <msub> <mrow> <mi>X</mi> </mrow> <mrow> <mi>c</mi> </mrow> </msub> <mo stretchy="true">)</mo> </mrow>

image

I didn't really understand what the difference could be in these seemingly similar equations to be causing the different square root forms/sizes, so I did a little further testing...

I tested changing the "n" to a "b", but that didn't make a difference. Then, I tried this:

<mi>a</mi> <mo>=</mo> <msqrt> <mrow> <msup> <mrow> <mi>n</mi> </mrow> <mrow> <mn>2</mn> </mrow> </msup> <mo>+</mo> <mn>4</mn> </mrow> </msqrt>

also looks tight between the superscript "2" and the square root bar, i.e.,

image

However, just changing the plus sign to a minus sign changes the look of the square root and thus the superscript "2" isn't so tight to the square root bar in this case, i.e.,

<mi>a</mi> <mo>=</mo> <msqrt> <mrow> <msup> <mrow> <mi>n</mi> </mrow> <mrow> <mn>2</mn> </mrow> </msup> <mo>&#x2212;</mo> <mn>4</mn> </mrow> </msqrt>

image

I don't understand why having a plus sign there or having a minus sign there would change the look of the equation.

If I blow these up to like 200%, I can see that there is indeed a very slight amount of white space between the superscript "2" and the bar

image

At 100% zoom, though, it seems a little too close for comfort sometimes.

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

Assignee
Assign to
Time tracking