Skip to content
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

LaTex not rendering correctly with macOS Ventura update #3192

Open
sophial05 opened this issue Oct 27, 2022 · 8 comments
Open

LaTex not rendering correctly with macOS Ventura update #3192

sophial05 opened this issue Oct 27, 2022 · 8 comments

Comments

@sophial05
Copy link

sophial05 commented Oct 27, 2022

Current behavior
After updating to macOS Ventura, the latex equations in my previous notebook failed to display correctly. Specifically, the \theta looks different, \tilde is now misaligned, and most importantly, all \mathcal are showing up as a squares.

What web browser you are using
Chrome

@sophial05 sophial05 added the bug label Oct 27, 2022
@cperry-goog
Copy link

Sounds like a browser/OS font issue with the upgrade. Our best guess is this is a MathJax issue, but we'll take a look when we can get our hands on Ventura.

@corrieann
Copy link
Contributor

Interesting bug.

\mathcal uses STIXNonUnicode-Italic which should be in Ventura per https://support.apple.com/en-us/HT213266

I don't yet have Ventura but will dig in when I can get it. It would be helpful if you can verify that you do indeed have that font.

@cperry-goog
Copy link

tracking internally at b/163141894

@sophial05
Copy link
Author

Upon checking in my font book, I do not have nor could I find STIXNonUnicode-Italic, but in the link https://support.apple.com/en-us/HT213266 it also says that "These fonts are available only to documents that already use the font, or to apps that request the font by name.", so I'm not sure the font could be downloaded with font book...

@kzhk75
Copy link

kzhk75 commented Dec 9, 2022

As I compare MathJax(v2.7) rendering with Chrome and Safari on Ventura13.0.1 (22A400),
Safari has no big change, but Chrome has a lot.
Here is my colaboratory note with some mathematical formula:
https://colab.research.google.com/drive/10y-HiIDKX2d2gRmK6fg8f5MCaZru7nXX?usp=sharing

@kzhk75
Copy link

kzhk75 commented Apr 25, 2023

After installing "Native MathML" from chrome web store, the rendering used to work well.

@drscotthawley
Copy link

drscotthawley commented Dec 1, 2023

Not for me. Installing Native MathML still leaves me with squares. Though I have Sonoma not Ventura:
Screenshot 2023-12-01 at 8 55 46 AM
Safari is fine. Viewing with Chrome sites on GitHub or NBviewer is fine. Just the combiations Mac+Colab+Chrome is the problem.

Also, manually pasting in MathJax javascript src via display(HTML('<script src="..." had no effect.

@nasiryahm
Copy link

I'm also eager for a permanent solution to this - I've been able to temporarily fix this in my own colab notebooks by creating a bookmark with the content below. I then have to click this every time I open a colab notebook ...

javascript:MathJax.Hub.Queue(["setRenderer", MathJax.Hub, "CommonHTML"]);MathJax.Hub.Queue(["Rerender", MathJax.Hub]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants