Opened 11 years ago
Last modified 8 years ago
#9774 closed enhancement
Upgrade the notebook to use MathJax instead of jsMath — at Version 6
Reported by: | mpatel | Owned by: | jason, was |
---|---|---|---|
Priority: | major | Milestone: | sage-5.4 |
Component: | notebook | Keywords: | sd41 |
Cc: | rbeezer, robert.marik, jhpalmieri, rkirov, kcrisman, kini | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | Fixed upstream, but not in a stable release. | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
Change History (6)
comment:1 Changed 11 years ago by
- Cc rbeezer added
comment:2 follow-up: ↓ 4 Changed 11 years ago by
- Cc robert.marik added
comment:3 Changed 11 years ago by
comment:4 in reply to: ↑ 2 Changed 11 years ago by
Replying to rbeezer:
MathJax
is HUGE. Fonts for lots of Unicode points, I guess. SVN checkout is 53 MB, after unzipping fonts.zip it all occupies 171 MB.
I think MathJax? includes the equivalent of our jsmath-image-fonts spkg. If we added MathJax? to Sage, it might be good to strip out the image fonts and distribute them separately as a mathjax-image-fonts spkg (mathjax faq tells how to do this, I believe). Somewhere I have a half-finished prototype of this solution.
comment:5 Changed 11 years ago by
- Cc jhpalmieri added
comment:6 Changed 11 years ago by
- Description modified (diff)
Note: See
TracTickets for help on using
tickets.
I've been experimenting a bit with
MathJax
, outside of the notebook. Mostly thinking about how it will handle tex4ht output in jsMath mode, but here are some some observations that might be useful:MathJax
. Just insert something likeNo need for a "process()" call at the end, etc.
\(..\)
. This would be a good thing, since if a user adds text (via TinyMCE) right now jsMath tries to parse the following as math.$$..$$
and\[..\]
both work for display math. We would break lots of old worksheets if we stopped recognizing$..$
.config/MathJax.js
which is just one huge well-commented Javascript object. It can be overridden in a web page by adding a new version into the script block mentioned above. Maybe we want to make this easy for users to access, or maybe it is easy already, or maybe we don't want to bother.http://www.mathjax.org/resources/docs/?configuration.html
MathJax
is HUGE. Fonts for lots of Unicode points, I guess. SVN checkout is 53 MB, after unzipping fonts.zip it all occupies 171 MB.html.table()
usesclass="math"
which is a jsMath way to tag span's or div's for processing. I haven't found how to do something similiar inMathJax
, though this will work in jsMath compatibility mode. A very small test would indicate that the two modes can be used at the same time.