Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3] Incorrect spacing around super- and subscripts #2187

Closed
cebola2 opened this issue Sep 5, 2019 · 4 comments
Closed

[v3] Incorrect spacing around super- and subscripts #2187

cebola2 opened this issue Sep 5, 2019 · 4 comments
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3.0

Comments

@cebola2
Copy link

cebola2 commented Sep 5, 2019

\subset seem to have lost spacing to its right in version 3.00.
An example is line 10 of
https://logrus.math.tecnico.ulisboa.pt/texto/3
Screenshot obtained from Firefox 69.0 on Linux
Screenshot_2019-09-05 CDI II — TP — Página 3(2)

@zorkow
Copy link
Member

zorkow commented Sep 5, 2019

I can confirm this. It seems to be related to the superscript.

A\subset\mathbb{R}

looks fine, while

A\subset\mathbb{R}^n

or

A\subset\mathbb{R}_n

does not.

@zorkow zorkow added the Accepted Issue has been reproduced by MathJax team label Sep 5, 2019
@cebola2
Copy link
Author

cebola2 commented Sep 5, 2019

This seems to also affect \in and most likely other mathematical relations.
The existence of a font modifier such as \mathbb or \mathcal seems to be a requirement to trigger this.

@dpvc
Copy link
Member

dpvc commented Sep 15, 2019

This turns out to be a bad default texClass for the base class used for superscripts and subscripts. It is set to TEXCLASS.NONE when it should be TEXCLASS.ORD, so the spacing is wrong. There effect only occurs when the base of the exponent is not just a simple symbol, but something like \mathbb{...} or even just {...}.

@dpvc
Copy link
Member

dpvc commented Sep 15, 2019

I've made a PR that fixes the issue.

@dpvc dpvc changed the title Version 3 anomaly for \subset [v2] Incorrect spacing around super- and subscripts Sep 22, 2019
@dpvc dpvc changed the title [v2] Incorrect spacing around super- and subscripts [v3] Incorrect spacing around super- and subscripts Sep 22, 2019
dpvc added a commit to mathjax/MathJax-src that referenced this issue Sep 27, 2019
Fix spacing around super- and subscripts.  mathjax/MathJax#2187
@dpvc dpvc added Merged Merged into develop branch and removed Ready for Review labels Sep 27, 2019
@dpvc dpvc added this to the MathJax v3.0.1 milestone Dec 31, 2019
@dpvc dpvc added Fixed v3.0 and removed Merged Merged into develop branch labels Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3.0
Projects
None yet
Development

No branches or pull requests

3 participants