You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In version 4 of MathJax we use double brackets with negative space, but one of the brackets appears misplaced on top and right from where it should be.
Steps to Reproduce:
Use version 4 and enter: \([\![r,s]\!]=\{r,r{+}1\}\)
See how the brackets appear
If you use version 3.2.2 it appears correctly
If you strip the second part of the equation like that: \([\![r,s]\!]\) it appears correctly
Adding only one more character (like "=") causes the problem
Technical details:
MathJax Version: 4: all the versions up to 4.0.0-beta.7
I am not able to reproduce the issue of the misplaced bracket, but I do see the reduced spacing in the second bracket (that you didn't mention). This turns out to be due to the fact that the negative space is being treated as a potential line break, and the tags used to do that seem to be interfering with the spacing. It may also be that the displaced brace is due to the same cause. (The current develop branch doesn't exhibit the spacing problem, so that may have been resolved somewhere along the way.)
One potential solution is to put braces around the whole expressions, which will prevent in-line linebreaking within the expression. That should clear it up.
Another option is to use the fact that the fonts in v4 have more extensive character coverage, and that includes U+27E6 (MATHEMATICAL LEFT WHITE SQUARE BRACKET) and U+27E7 (MATHEMATICAL RIGHT WHITE SQUARE BRACKET). So you could use
\(\U{27E6}r,s\U{27E7}=\{r,r{+}1\}\)
to get single-character versions of the brackets. You can, of course, create macros for this, such as
Issue Summary
In version 4 of MathJax we use double brackets with negative space, but one of the brackets appears misplaced on top and right from where it should be.
Steps to Reproduce:
\([\![r,s]\!]=\{r,r{+}1\}\)
\([\![r,s]\!]\)
it appears correctlyTechnical details:
I am using the following MathJax configuration:
no configuration at all
and loading MathJax via
<script src="node_modules/mathjax/tex-mml-chtml.js" id="MathJax-script" async></script>where 4.0.0 version has been installed via npm
Supporting information:
See the image below (version 4)
and version 3:
The text was updated successfully, but these errors were encountered: