WANTED: mathjax3 installation path in your linux distro

40 views
Skip to first unread message

Kwankyu Lee

unread,
Aug 21, 2023, 11:19:25 AM8/21/23
to sage-devel
Hi,

Please inform us of the path to mathjax3 installed in your linux platform. Just give a comment at


Thanks.

Nils Bruin

unread,
Aug 21, 2023, 12:25:14 PM8/21/23
to sage-devel
I'm actually having trouble with mathjax on Fedora 38 in the Jupyter notebook at the moment. With the system-provided jupyter notebook I'm getting really poor typesetting results (it looks like it's just trying to approximate typesetting without any specific math fonts). When I run `sage --notebook` things are fine. I suspect I could do some analysis and see where sage's mathjax lives (and which extension jupyter is using for that) and then point my system jupyter at that, but it sounds that would go in exactly the opposite direction of where the ticket is going.

Googling a bit leads me to believe this is a wider problem: jupyter seems to have decided to ship a stripped-down mathjax to save space and people are having trouble convincing it to use a proper mathjax. If your investigations lead to instructions on how to do this, I think a lot of people will be thankful (quite frankly, I'd hope someone can just package mathjax-full as a jupyter extension that people can just install to get proper typesetting).

Kwankyu Lee

unread,
Aug 21, 2023, 7:34:46 PM8/21/23
to sage-devel
On Tuesday, August 22, 2023 at 1:25:14 AM UTC+9 Nils Bruin wrote:
I'm actually having trouble with mathjax on Fedora 38 in the Jupyter notebook at the moment. With the system-provided jupyter notebook I'm getting really poor typesetting results (it looks like it's just trying to approximate typesetting without any specific math fonts). When I run `sage --notebook` things are fine. I suspect I could do some analysis and see where sage's mathjax lives (and which extension jupyter is using for that) and then point my system jupyter at that, but it sounds that would go in exactly the opposite direction of where the ticket is going.

As far as I understand, the jupyter run by `sage -notebook`  does not use sage's mathjax. Sage's mathjax lives in SAGE_ROOT/local/share/mathjax/mathjax (yes two "mathjax" for some techinical reason). I have no idea where jupyter's mathjax lives and how to change that.
 

Kwankyu Lee

unread,
Aug 21, 2023, 7:46:35 PM8/21/23
to sage-devel
I just did a little bit investigation. I find this jupyter configuration used by the jupyter web server:

...,  "fullMathjaxUrl": "/static/nbclassic/components/MathJax/MathJax.js", ..., "mathjaxConfig": "TeX-AMS-MML_HTMLorMML-full,Safe", ...

 Hence the jupyter run by `sage -notebook` (on my system) points to "/static/nbclassic/components/MathJax/MathJax.js", and it is mathjax2.

I guess you may set "fullMathjaxUrl" and "mathjaxConfig" configuration variables somehow...
Reply all
Reply to author
Forward
0 new messages