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

Difference in size of MathJax with LaTeX in \scriptstyle\underbrace{X} #3300

Open
hbghlyj opened this issue Oct 23, 2024 · 5 comments
Open
Labels
Accepted Issue has been reproduced by MathJax team

Comments

@hbghlyj
Copy link

hbghlyj commented Oct 23, 2024

Issue Summary

In LaTeX \underbrace and \overbrace seem to reset the style of argument to display-style. (cf. KaTeX/KaTeX#764)

Steps to Reproduce:

${\textstyle\prod}  {\displaystyle\prod}  \underbrace{\prod}$

In LaTeX
image

Technical details:

  • MathJax Version: 3.2
@hbghlyj
Copy link
Author

hbghlyj commented Oct 23, 2024

Similar:

$X\scriptstyle\begin{matrix}X\end{matrix}$

LaTeX:

image

MathJax:
image

@hbghlyj hbghlyj changed the title Difference of MathJax with LaTeX in \scriptstyle\underbrace{X} Difference in size of MathJax with LaTeX in \scriptstyle\underbrace{X} Oct 23, 2024
@dpvc dpvc added the Accepted Issue has been reproduced by MathJax team label Oct 23, 2024
@dpvc
Copy link
Member

dpvc commented Oct 23, 2024

OK, it looks like under- and overbrace are outliers among the under- and over- macros, as they do seem to reset the style to text-style. I will look into fixing that.

Similarly, the matrix and array environments do seem to reset to text-style as well.

@dpvc
Copy link
Member

dpvc commented Oct 24, 2024

I have made a pull request for v4 that resolves these issues.

@dpvc
Copy link
Member

dpvc commented Oct 26, 2024

The PR I made does set display-style for the under and over braces.

dpvc added a commit to mathjax/MathJax-src that referenced this issue Nov 12, 2024
Make over/under braces and matrices be full size, as in actual TeX (mathjax/MathJax#3300)
dpvc added a commit to mathjax/MathJax-src that referenced this issue Nov 18, 2024
Update tests to correspond with the changes for mathjax/MathJax#3300
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
Projects
None yet
Development

No branches or pull requests

4 participants
@dpvc @hbghlyj and others