#9774: Upgrade the notebook to use MathJax instead of jsMath
-----------------------------------------------------------------------------------------+
Reporter: mpatel
| Owner: jason, was
Type: enhancement
| Status: needs_work
Priority: major
| Milestone: sage-5.1
Component: notebook
| Resolution:
Keywords:
| Work issues: does not work in DOT_SAGE
Report Upstream: N/A
| Reviewers: Jason Grout
Authors: Rob Beezer, Davide Cervone, John Palmieri, Jason Grout,
Nathan Carter | Merged in:
Dependencies: #11080
| Stopgaps:
-----------------------------------------------------------------------------------------+
Changes (by ppurka):
* status: needs_review => needs_work
* work_issues: => does not work in DOT_SAGE
Comment:
rebased patch to sage-5.1beta2.
There is however a very weird problem with mathjax, both 1.0 and 2.0
branches. The math is not rendered as long as the sagenb directory is
under `DOT_SAGE`. To reproduce, try the steps below. Use any branch
(mathjax-1 or mathjax-2) for instance jasongrout/mathjax (mathjax-1) in
github.
1. `mkdir /tmp/a`
2. `DOT_SAGE=/tmp/a sage -n`.
3. First, note that the above command launches the nb in port 8000 instead
of 8080. But if we use some other command such as the one below, then it
does open in port 8080.
{{{
sage -n directory=/tmp/a.sagenb
}}}
4. Open a new worksheet, and try to print latex, for instance run the
command `view('?')`. You will get a js error popup saying (in Opera
12.00RC, and Opera-11.64)
{{{
SyntaxError: at index 0 in "\newcommand{\Bold}[1]{\mathbf{#1}}?": invalid
character escape sequence
}}}
In firefox-10.0.4 I simply get the error: `SyntaxError: illegal
character`. This error is not present if I run sage instead as `sage -n
directory=/tmp/a.sagenb`, and the mathjax output is all good.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9774#comment:65>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.