mathjax / MathJax

Beautiful and accessible math in all browsers
http://www.mathjax.org/
Apache License 2.0
10.18k stars 1.16k forks source link

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

Open hbghlyj opened 18 hours ago

hbghlyj commented 18 hours ago

Issue Summary

I noticed a difference of MathJax with LaTeX in handling the code \scriptstyle\underbrace{X}.

Steps to Reproduce:

  1. In LaTeX it is of normal size (the first X is for comparison): image
  2. In MathJax $X\scriptstyle\underbrace{X}$ it is of script size: image

Technical details:

hbghlyj commented 16 hours ago

Similar:

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

LaTeX:

image

MathJax: image

dpvc commented 9 hours ago

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.