#6673: [with patch, needs review] Set up jsMath extensions, macros, etc., for 
the
documentation
---------------------------+------------------------------------------------
 Reporter:  mpatel         |       Owner:  tba         
     Type:  defect         |      Status:  new         
 Priority:  minor          |   Milestone:  sage-4.1.2  
Component:  documentation  |    Keywords:              
 Reviewer:  John Palmieri  |      Author:  Mitesh Patel
   Merged:                 |  
---------------------------+------------------------------------------------
Changes (by jhpalmieri):

  * reviewer:  => John Palmieri
  * milestone:  => sage-4.1.2


Comment:

 With the patch, commands like {{{\ZZ}}} in the docs appear correctly in
 the off-line (html+jsmath) version of the reference manual, the tutorial,
 etc.

 Is there any way to generate the list of macros automatically, the way it
 is done in {{{doc/common/conf.py}}} for the LaTeX version:
 {{{
 for macro in sage_latex_macros:
     # used when building latex and pdf versions
     latex_preamble += macro + '\n'
     # used when building html version
     pngmath_latex_preamble += macro + '\n'
 }}}
 I don't see anything helpful in the Sphinx documentation, unfortunately.
 So instead, I'm attaching a small patch to the file
 {{{sage/misc/latex_macros.py}}}, suggesting that if the list of macros
 there gets changed, the list in {{{jsmath_sage.js}}} must be changed also,
 and I've put a pointer to {{{latex_macros.py}}} in {{{jsmath_sage.js}}}.

 For the file jsmath_sage.js, it looks like a modified version of
 easy/load.js, but it's not the same as the one distributed with Sage (the
 one in local/notebook/javascript/jsmath/easy); there are white space
 differences, and there are differences below the line saying "DO NOT MAKE
 CHANGES BELOW THIS".  Do I need to worry about this?  Let me know, and if
 it's not a problem, I can give this a positive review.

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