#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.2                                             
         
      Component:  notebook                                                      
         |    Resolution:                                                       
         
       Keywords:                                                                
         |   Work issues:  fix sagenb                                           
         
Report Upstream:  N/A                                                           
         |     Reviewers:  Jason Grout, John Palmieri, Punarbasu Purkayastha, 
Keshav Kini
        Authors:  Rob Beezer, Davide Cervone, John Palmieri, Jason Grout, 
Nathan Carter  |     Merged in:                                                 
               
   Dependencies:  #11080                                                        
         |      Stopgaps:                                                       
         
-----------------------------------------------------------------------------------------+
Changes (by jhpalmieri):

  * work_issues:  => fix sagenb


Old description:

> [http://www.mathjax.org/ MathJax] is the successor to
> [http://www.math.union.edu/~dpvc/jsMath/ jsMath].
>
> This will also fix #1608
>
> '''apply''':
>   * [attachment:trac_9774-scripts-mathjax.patch] to the scripts
> repository
>   * [attachment:trac_9774-mathjax-try5.patch] to the sage library
> repository
>
> Also install the new notebook from the sagenb git fork
> [https://github.com/jasongrout/sagenb/tree/mathjax].

New description:

 [http://www.mathjax.org/ MathJax] is the successor to
 [http://www.math.union.edu/~dpvc/jsMath/ jsMath].

 This will also fix #1608

 '''apply''':
   * [attachment:trac_9774-scripts-mathjax.patch] to the scripts repository
   * [attachment:trac_9774-mathjax-try5.patch] and
 [attachment:trac_9774-doctests.patch] to the sage library repository

 Also install the new notebook from the sagenb git fork
 [https://github.com/jasongrout/sagenb/tree/mathjax].

--

Comment:

 Here is a patch fixing the doctests in the Sage library. For the English
 tutorial, I did a little bit more than a search-and-replace, changing
 "JSMath" to "!MathJax". For the German tutorial, that's essentially all I
 did.

 sagenb also needs fixing, and I don't have the energy to do this right
 now. If someone else wants to, that would be great. Here's what I think
 should be done: delete notebook/jsmath.py, and patch misc/sphinxify.py:
 {{{
 #!diff
 diff --git a/sagenb/misc/sphinxify.py b/sagenb/misc/sphinxify.py
 index 837b40a..85c9f4d 100644
 --- a/sagenb/misc/sphinxify.py
 +++ b/sagenb/misc/sphinxify.py
 @@ -71,7 +71,7 @@ def sphinxify(docstring, format='html'):
          sage: sphinxify('**Testing**\n`monospace`')
          '\n<div class="docstring"...<strong>Testing</strong>\n<span
 class="math"...</p>\n\n\n</div
          sage: sphinxify('`x=y`')
 -        '\n<div class="docstring">\n    \n  <p><span
 class="math">x=y</span></p>\n\n\n</div>'
 +        '\n<div class="docstring">\n    \n  <p><span
 class="math">\\(x=y\\)</span></p>\n\n\n</div>
          sage: sphinxify('`x=y`', format='text')
          'x=y\n'
          sage: sphinxify(':math:`x=y`', format='text')
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9774#comment:76>
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.

Reply via email to