Changes between Version 69 and Version 76 of Ticket #9774


Ignore:
Timestamp:
06/13/12 05:54:47 (8 years ago)
Author:
jhpalmieri
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:

  • sagenb/misc/sphinxify.py

    diff --git a/sagenb/misc/sphinxify.py b/sagenb/misc/sphinxify.py
    index 837b40a..85c9f4d 100644
    a b def sphinxify(docstring, format='html'): 
    7171        sage: sphinxify('**Testing**\n`monospace`')
    7272        '\n<div class="docstring"...<strong>Testing</strong>\n<span class="math"...</p>\n\n\n</div
    7373        sage: sphinxify('`x=y`')
    74         '\n<div class="docstring">\n    \n  <p><span class="math">x=y</span></p>\n\n\n</div>'
     74        '\n<div class="docstring">\n    \n  <p><span class="math">\\(x=y\\)</span></p>\n\n\n</div>
    7575        sage: sphinxify('`x=y`', format='text')
    7676        'x=y\n'
    7777        sage: sphinxify(':math:`x=y`', format='text')

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9774

    • Property Status changed from positive_review to needs_work
    • Property Milestone changed from sage-5.0 to sage-5.2
    • Property Reviewers changed from Jason Grout, John Palmieri to Jason Grout, John Palmieri, Punarbasu Purkayastha, Keshav Kini
    • Property Work issues changed from does not work in DOT_SAGE to fix sagenb
  • Ticket #9774 – Description

    v69 v76  
    55'''apply''':
    66  * [attachment:trac_9774-scripts-mathjax.patch] to the scripts repository
    7   * [attachment:trac_9774-mathjax-try5.patch] to the sage library repository
     7  * [attachment:trac_9774-mathjax-try5.patch] and [attachment:trac_9774-doctests.patch] to the sage library repository
    88
    99Also install the new notebook from the sagenb git fork [https://github.com/jasongrout/sagenb/tree/mathjax].