mathjax / mathjax/MathJax

mmultiscripts spacing between children is too narrow

Open
#3,596 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request v4
Dominant language
JavaScript
Stars
10.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Issue Summary

mmultiscripts children should have more spacing between them than what MathJax currently does (although I can't recall the proper values).

MathJax 4 output:

Too narrow spacing for scripts.

Firefox's native output:

More correct spacing of scipts.

Firefox's output is not necessarily the expected one, but there should at least some spacing between the children.

OS: Windows 11
Browser: Mozilla Firefox 153.0

Steps to Reproduce:

Use the code to render:

<math xmlns="http://www.w3.org/1998/Math/MathML">
    <mmultiscripts>
        <mi>A</mi>
        <mn>1</mn>
        <mn>2</mn>
        <mn>3</mn>
        <mn>4</mn>
        <mprescripts/>
        <mn>7</mn>
        <mn>300</mn>
        <mn>3</mn>
        <mn>700</mn>
    </mmultiscripts>
</math>
Technical details:
  • MathJax Version: 4
  • OS: Windows 11
  • Browser: Mozilla Firefox 153.0

I am using the default MathJax configuration and loading MathJax via

<script src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js" defer></script>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided MathML reproduction with the default MathJax 4 configuration and compare its mmultiscripts spacing with Firefox's output. Trace the mmultiscripts rendering path and determine the intended spacing values; the issue is done when the children have appropriate visible separation without regressing the supplied example.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.