Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #2395
Closed
Open
Issue created Apr 04, 2020 by Administrator@rootContributor

Cramped style not respected

Created by: NSoiffer

Issue Summary

I find this surprising enough to think that maybe I'm doing something wrong (and I didn't find an issue about this)...

TeX has a notion of "cramped" which causes superscripts to be lower in a number of cases such as in accents, overlines, fractions (denominators), and subscripts. Here's a latex rendering: image

The position of the '2' in x^2 is lowered in first instance except for the fraction, where it is the second instance (the denominator).

However, MathJax doesn't reduce the superscript position. Here's a codepen that shows that. Here's a screen shot of that: image

[To be honest, my sons happened to be looking at what I was doing and liked the MathJax rendering better...]

Steps to Reproduce:

This is the header

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
  <script type="text/javascript" id="MathJax-script" async
  src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>

and this is the input

\[ \hat{x^2} x^2\]
\[ \overline{x^2} x^2 \]
\[ \frac{x^2}{x^2} \]
\[ a_{x^2}a^{x^2} \]
Assignee
Assign to
Time tracking