MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

the fraction and the equal sign have visible overlap

Open hbghlyj opened this issue 2 years ago • 3 comments

Issue Summary

I tested the inline formula

\(\frac{1}{ξ^2+1}=∫_0^{∞} 𝖾^{-\left(1+ξ^2\right) t} 𝖽 t\)

on Chrome and Firefox with the following HTML page

<!DOCTYPE html>
<html lang="en">

<head>
  <script async src="https://cdn.jsdelivr.net/npm/[email protected]/tex-mml-svg-mathjax-modern.js"></script>
</head>

<body>
<h1>SVG with MathJax-Modern fonts</h1>

\(\frac{1}{ξ^2+1}=∫_0^{∞} 𝖾^{-\left(1+ξ^2\right) t} 𝖽 t\)
</body>

</html>

the fraction and the equal sign have visible overlap: image

Then I increased font-size by <font size="+5">\(\frac{1}{ξ^2+1}=∫_0^{∞} 𝖾^{-\left(1+ξ^2\right) t} 𝖽 t\)</font> They still overlap Screenshot: image

Technical details:

  • MathJax Version: 4.0.0-beta.4
  • Client OS: Windows 11
  • Browser: Chrome and Firefox

hbghlyj avatar Jan 23 '24 18:01 hbghlyj

This is a duplicate of #3135. It has been fixed in the develop branch, and will be resolved in the next beta release. The linked issue includes a work-around you can use until then.

dpvc avatar Jan 23 '24 20:01 dpvc

<html>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/tex-svg.js"></script>
\(\frac{1}{N} \sum_{n=1}^{N-1} U^n x=x\)
</html>

image

hbghlyj avatar Jan 24 '24 14:01 hbghlyj

Yes, this is the same issue, and is resolved by the same patch.

dpvc avatar Jan 24 '24 14:01 dpvc