-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Upgrade to MathJax 3 and configure Sage #25833
Comments
comment:1
The second public beta release for MathJax v3 was released. The announcement ends with this note:
|
comment:2
Do you know how light it will be compared to https://katex.org/ ? |
comment:3
Replying to @sagetrac-tmonteil:
No. This might be a good question to ask on the mathjax-users mailing list. Meanwhile the third public beta for MathJax 3 was announced on 28 Nov 2018. |
comment:4
MathJax v3 beta.4 released 2019-05-21. |
comment:5
MathJax 3.0.5 was released (2020-04). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:9
It's worth paying attention to the fact that Mathjax 3 is missing a significant feature that might be really critical for Sage, which is "automatic line breaking". See the discussion here: mathjax/MathJax#2312 (comment) E.g., "So line breaking and other features will most likely have to wait until next year." "That's the reason why nearly nobody is using MathJax 3." etc. I think this is very important to be aware of, and it's one reason why CoCalc doesn't use MathJax 3, and uses KaTeX by default. For some applications automatic line breaking probably isn't so important, but it might be very important for Sage, due to people often printing out polynomials and big formulas. |
comment:10
Replying to @williamstein:
It is jupyter people who decides what math rendering web engine is used in jupyter, which is the official frontend of Sage. I think whether Sage will be moving to MathJax3 or something else is dependent on what they do. |
comment:11
Replying to @kwankyu:
Thanks. Here's their plan regarding this issue: jupyterlab/jupyterlab#7218 (comment) |
comment:12
Thanks, William, I'll pass that on upstream to PreTeXt. |
Branch: public/25833 |
Author: Kwankyu Lee |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
comment:15
To support #33600, I prepared a new package for mathjax3. I've never done creating a spkg before and don't understand everything about this business. So please help. This is a public branch! I used the mathjax2 spkg as a template, and managed to place a tarball in |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
Fixed first mistake. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:20
To the uninitiated (like me): First
to make the tarball |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:88
Thanks! For the performance issues, there are a few things not related to mathjax that could be improved: https://pagespeed.web.dev/report?url=https%3A%2F%2F7b43a317c103400d467a6c8d65fb6d6181d4ee37--sagemath-tobias.netlify.app%2Freference%2Fmanifolds%2Fsage%2Fmanifolds%2Fdifferentiable%2Fvectorfield.html Notably, the |
comment:89
Replying to @tobiasdiez:
Yes. I noticed that. See #33320 comment:82. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:92
Rebased on the dependency #33763. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:94
The dependency got positive review. |
Changed branch from public/25833 to |
Changed commit from |
comment:96
Why the double |
comment:97
Replying to @antonio-rojas:
If I remember correctly, that was the result of wishing to put the (second)
I don't know how the distro package works. Can't they change the installation script to install the package as they want, that is, into If they can't, would it solve the problem that the spkg tarball consists of mathjax files instead of the single directory? If we do so, then we need to touch the spkg installation procedure. |
comment:98
Replying to @kwankyu:
OK, I see. The problem is that, if mathjax is installed in It's unfortunate that sphinx doesn't allow to specify a single dir to be copied into For now, if we can't come up with a better solution, I guess I can just copy the mathjax dir to some temporary location at build time and set that as |
comment:99
Replying to @antonio-rojas:
True. Thanks.
I experimented with the idea of using a symbolic link instead of copying, but it didn't work. Still no better solution. Thanks. |
Mathjax v3.2.0 was released on 2021-06-17, see https://github.com/mathjax/MathJax.
This will be done in three steps:
This ticket focuses on the Steps 2 and 3.
To install mathjax, you can download the tarball from a temporary URL:
https://drive.google.com/file/d/1-tMjjIwftzoGngFh549_kUO3Chmy3qhI/view?usp=sharing
and place the tarball in
upstream/
andmake
, or you can just domake
since the tarball will be automatically downloaded from the attachment of this ticket after unsuccessful attempts to download from sage mirrors.We can now choose whether to use mathjax CDN or not. The default is not to. To use CDN, do
before
make
online doc.Related tickets:
System package information and spkg-configure for mathjax #30296 System package information and spkg-configure for mathjax
Configure mathjax in sphinx config and upgrade to Mathjax v3 #33600 Configure mathjax in sphinx config and upgrade to Mathjax v3
Depends on #33763
CC: @antonio-rojas @egourgoulhon @embray @kiwifb @timokau @jdemeyer @jhpalmieri @kcrisman @miguelmarco @novoselt @haraldschilly @slel @sagetrac-tmonteil @vbraun @orlitzky
Component: packages: standard
Keywords: upgrade, mathjax
Author: Tobias Diez, Kwankyu Lee
Branch:
2535a91
Reviewer: Tobias Diez, Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/25833
The text was updated successfully, but these errors were encountered: