-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
AcceptedIssue has been reproduced by MathJax teamIssue has been reproduced by MathJax teamCode ExampleContains an illustrative code example, solution, or work-aroundContains an illustrative code example, solution, or work-aroundv4
Description
Issue Summary
The TeX command \surd is rendered below the baseline
Code example
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<div id="content">
<p>surd \( \surd \) is rendered below the text baseline vs \( \sqrt x \) and the MathML code <math xmlns="http://www.w3.org/1998/Math/MathML">
<mo stretchy="false">√<!-- √ --></mo>
</math> </p>
</div>Steps to Reproduce:
Technical details:
- MathJax Version: 4.0.0
- Client OS: MacOS
- Browser: Firefox
Supporting information:
- Upstream issue https://phabricator.wikimedia.org/T409110 (with screenshots)
- Possible root cause in unicode-math https://tex.stackexchange.com/questions/694490/placement-of-surd-with-unicode-math-is-incorrect
- Might be related to v4-beta.3 STIX Two vertical space within square root #3092
- Mitigation
window.MathJax = {
output: {
font: 'mathjax-tex'
},However, this makes \big and \Big appear in the same size, so it's not a usable workaround.
Metadata
Metadata
Assignees
Labels
AcceptedIssue has been reproduced by MathJax teamIssue has been reproduced by MathJax teamCode ExampleContains an illustrative code example, solution, or work-aroundContains an illustrative code example, solution, or work-aroundv4