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

Change MathJax fonts from STIX-Web to TeX #5998

Closed
wants to merge 1 commit into from

Conversation

mgeier
Copy link
Contributor

@mgeier mgeier commented Mar 3, 2021

Currently, the fonts used by MathJax don't look great, switching to TeX font makes it look much better.

Also, nbviewer seems to be using TeX, so this way both would be consistent.

See also:

I'm not sure whether this PR uses the right/best way to do this, but it works for me when I try it locally.

In an unrelated, later change, it would of course also be great to upgrade to MathJax version 3, see #5758.

@afshin
Copy link
Member

afshin commented Apr 21, 2021

@mgeier Could you please attach a couple screenshots to show the difference that this change makes in some representative notebooks?

cc: @vidartf @isabela-pf

@mgeier
Copy link
Contributor Author

mgeier commented Apr 24, 2021

It looks like in the meantime the situation has magically improved on its own (at the MathJax side I guess?).

Previously, bold symbols -- especially when decorated with \boldsymbol{\hat{...}} or something -- looked hideous. But now that has become much better.

The remaining differences are quite subtle.

Could you please attach a couple screenshots to show the difference that this change makes

Here's one example that caught my eye:

$a/b$

before:

image

after:

image


I still think it's worth switching, but the difference isn't that big anymore.

@Zsailer Zsailer changed the base branch from main to 6.4.x March 7, 2022 18:21
@jtpio
Copy link
Member

jtpio commented Aug 7, 2023

The corresponding PR in JupyterLab was closed with the following comment: jupyterlab/jupyterlab#9907 (comment)

I think this becomes obsolete once JupyterLab switches to MathJax 3

Closing since Notebook 7 is built on JupyterLab, and now depends on MathJax 3. Thanks all!

@jtpio jtpio closed this Aug 7, 2023
@jtpio jtpio added this to the Reference milestone Aug 7, 2023
@mgeier mgeier deleted the mathjax-tex-fonts branch August 7, 2023 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants