-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
mathjax 3 latex command underbrace gives js error (svg) or faulty output (chtml) #2466
Comments
The svg issue is a duplicate of #2408, which is in turn a duplicate of #2402. There is a work-around in the latter that you may be able to use. The CommonHTML issue is a known issue (though I don't think there is an issue tracker for it). I hope to have a fix for it this summer, as we work on font issues. |
Thank you very much for the speedy reply and fix! |
@eric-wieser, no, #661 is for v2, and the mechanism used for stretchy characters v3 is substantially different. Also, #661 only affected the Asana-Math font, which is not yet available in v3. |
Ah, ok. I'm still seeing the same problem, so I guess this hasn't been fixed yet: <!DOCtype html>
<html>
<head>
<title>Test underbrace</title>
</head>
<body>
<div style="font-size: 42px">
$$\underbrace{a^2b}_3\times \underbrace{a^3b}_4 = \underbrace{a^2ba^3b}_{3 + 4}$$
</div>
<script type="text/javascript" id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>
</body>
</html> Do you know of any other discussions about this elsewhere? |
The cause seems to be these lines
If I change this to 200 the problem goes away. |
We are preparing an alpha release that includes support for alternative fonts, and that includes a new font set for the default font. Your example works for me with the current v3 in Safari 15.5 on Mac OS 12.4, as well as Firefox 104.0 and Chrome 104.0.5112.101. and also with the new fonts. Can you tell me the OS and browser versions that you are using? |
I will try to update with exact versions tomorrow, but this was with Chrome on Windows 10 (and since it might matter, a 1920px wide monitor/window and a 3000px wide overall desktop area) |
Chrome is at |
Issue Summary
When using tex->svg in Mathjax 3 the use of the latex command
\underbrace
results in a javascript error:When using tex->chtml the equation is rendered but gives an ugly result:

This happens in Firefox 78.0.1, Safari 13.1.1 and Chrome 83.0.4103.116 tested on macOS 10.15.5
Steps to Reproduce:
HTML
as follows:HTML
-file in browserHTML
-filetex-mml-svg.js
withtex-mml-chtml.js
HTML
-file in browserTechnical details:
Supporting information:
The text was updated successfully, but these errors were encountered: