Skip to content

placement of \surd below baseline #3468

@physikerwelt

Description

@physikerwelt

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">&#x221A;<!-- √ --></mo>
</math> </p>
</div>

Steps to Reproduce:

  1. Visit https://codepen.io/physikerwelt/pen/KwzMePx

Technical details:

  • MathJax Version: 4.0.0
  • Client OS: MacOS
  • Browser: Firefox

Supporting information:

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

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions