Post Reply 
Broken LaTeX for mathcal
12-23-2023, 03:21 PM
Post: #1
Broken LaTeX for mathcal
I just noticed today that rendering LaTeX appears to be broken.
Not in general, but e.g. the use of \mathcal in \(\mathcal{O}(n^2)\) worked for me and now it doesn't.
It shows a little square instead of a big O.
But e.g. \(\sqrt{\pi}\) still does.

I've used it multiple times in: Approximations for the Logarithm Function.

Has there been a recent change or upgrade of mathjax?

I searched for mathcal in my previous posts and found the link above.
First I was confused because some of the formulas were not rendered.
But then I noticed that this is on purpose to highlight the search term.

Meanwhile I've opened the page also in Safari and there it is displayed properly.
And then I found this comment in I think there is a MathJax bug for 'mathcal' typesetting on some platforms:
Quote:This is a problem caused by MathJax not accessing/not having access to the required glyph in the right font. This is a bug I think (as it also arose for me when I updated to macOS Ventura) but it can be circumvented by right-clicking on the math, and selecting Math Settings > Math Renderer > Common HTML (instead of HTML-CSS).
And this fixed the problem on Chrome for me.

From the same post:
Quote:… so updating to a current version of MathJax would also resolve the issue.
Find all posts by this user
Quote this message in a reply
12-26-2023, 11:51 PM (This post was last modified: 12-26-2023 11:51 PM by Dave Hicks.)
Post: #2
RE: Broken LaTeX for mathcal
Is it better now? I changed from Mathjax 2.7.1 to 2.7.9. I don't think the problem was visible to me even on the older version, so I have rely on you to tell me if it's fixed.
Visit this user's website Find all posts by this user
Quote this message in a reply
12-27-2023, 12:05 AM
Post: #3
RE: Broken LaTeX for mathcal
(12-26-2023 11:51 PM)Dave Hicks Wrote:  Is it better now?

Unfortunately, no.
When I switched back to HTML-CSS the square appeared again.

I'm using Chrome Version 120.0.6099.129 (Official Build) (arm64).
On an Apple M2 Pro using macOS Ventura 13.3.

But I think we can just leave it as is.
There's a workaround.
Thank's for the effort to update MathJax.
Find all posts by this user
Quote this message in a reply
12-27-2023, 12:51 PM (This post was last modified: 12-27-2023 12:51 PM by Thomas Klemm.)
Post: #4
RE: Broken LaTeX for mathcal
(12-27-2023 12:05 AM)Thomas Klemm Wrote:  On an Apple M2 Pro using macOS Ventura 13.3.

Meanwhile I've upgraded to Sonoma 14.2.1.
But I experience still the same result.
Find all posts by this user
Quote this message in a reply
12-27-2023, 02:03 PM
Post: #5
RE: Broken LaTeX for mathcal
There is an Chrome extension called Native MathML that forces MathJax/KaTeX/MediaWiki to use native MathML rendering. For best results, the Fonts for MathML should also be installed.

Personally, I think MathJax still looks better with the Native MathML extension disabled so that one of MathJax's other Math Renderer settings can be used. (It's best to experiment to see which settings work best for you.) You should probably install the fonts mentioned above anyway, because MathJax will use them if installed.

— Ian Abbott
Find all posts by this user
Quote this message in a reply
12-27-2023, 04:35 PM
Post: #6
RE: Broken LaTeX for mathcal
(12-27-2023 02:03 PM)ijabbott Wrote:  You should probably install the fonts mentioned above anyway, because MathJax will use them if installed.

Not sure, if the font is missing.
Because with Safari I don't have the problem.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)