Make over/under braces and matrices be full size, as in actual TeX (mathjax/MathJax#3300) #1146
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes some issues with the size of the contents of
\overbrace
,\underbrace
, and matrices so that they match the output of actual LaTeX. The argument to the over and under brace macros is actually typeset in display style in LaTeX, and the matrices are in text mode.The changes to
MmlNode.ts
fix a problem with the inherited values ofdisplaystyle
andscriptlevel
so that they don't produce_inherit_
for example, which is supposed to be translated into the actual inherited value. This allows the new filter discussed below to work.The
smallmatrix
andsubarray
environments used to use ascriptlevel
property to tellmtable
to use a different script level, but that is now handled by wrapping the tables withmstyle
elements that setscriptlevel
explicitly, and the property is changed tosmallmatrix
so, which affects the interline spacing, and needs to be preserved through adata-mjx-smallmatrix
attribute. A similarmstyle
is added for the brace macros.I hate to see extra
mstyle
tags that are unnecessary, however, so I've also added another post-filter to the TeX input jax that removes unneeded ones (when thescriptlevel
anddisplaystyle
match the surrounding values). This also removes unneededmstyle
nodes from the spacing macros like\,
, but keeps them when they are needed.If you don't like the filter, that can be removed, and the
mstyle
nodes can be kept.Resolves issue mathjax/MathJax#3300.