-
-
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
After recent update, \boldsymbol \partial
renders badly in MathJax 3 (tex-chtml)
#2417
Comments
Thanks for the report. This is due to changes in the font handling in order to allow MathML A work around for now would be to add <script>
MathJax = {
startup: {
ready() {
MathJax.startup.defaultReady();
const font = MathJax.startup.output.font;
font.getChar('bold', 0x2202)[3].smp = font.getChar('bold-italic', 0x2202)[3].smp;
}
}
};
</script> (or merge it into your current configuration). This will put the bold-italic partial into the bold font for now. |
Like a charm—many thanks. |
Make \boldsymbol\partial work properly. (mathjax/MathJax#2417)
Fixed in v3.1 released today. |
Issue Summary
A few weeks ago,
\boldsymbol \partial
was giving beautiful browser-consistent results in MathJax 3 (tex-chtml), and it looked to be simply the boldface version of the\partial
symbol, exactly as expected.Today, I noticed that it's now giving poor and browser-inconsistent results, and looking at the source code I see that the character is rendered not as the
content
of a::before
pseudo-element (as is the case with other characters in the equations), but rather as a literal𝛛
character in aText
node.Steps to Reproduce:
https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js
component.\boldsymbol \partial
in an equation.Technical details:
mathjax@3/es5/tex-chtml.js
Supporting information:
Live link: https://michaelallenwarner.github.io/physics/2019/07/16/vector-triple-products-in-minkowski-spacetime.html#the-double-curl
Screenshots of inconsistent browser results (Chrome vs. Firefox):
MathJax config: https://github.com/MichaelAllenWarner/MichaelAllenWarner.github.io/blob/master/assets/mathjax-prescript.js
Script tag: https://github.com/MichaelAllenWarner/MichaelAllenWarner.github.io/blob/master/_includes/head.html#L44
The text was updated successfully, but these errors were encountered: