#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:                 |  
---------------------------+------------------------------------------------

Comment(by mpatel):

 The forthcoming alternative patch inserts macros on-the-fly.  It
  * Moves `jsmath_sage.js` to `jsmath_sage.js_t` and replaces the list of
 jsMath macros with a Jinja macro.
  * Adds `convert_to_latex_js_math_easy()` to and generates the string
 `sage_jsmath_macros_jinja` in `latex_macros.py`.
  * Includes the string in a command-line option to Sphinx, in `builder.py`
 [1].
  * Adds a trailing semcolon ("`;`") in
 `latex_macros.convert_latex_macro_to_jsmath()`.

 [1] It seems that we can override the templates' default `html_context`
 dictionary only on the command-line, i.e., with the `-A` option (cf.
 `sphinx/config.py`).  This means that adding `html_context = <the macros>`
 in `conf.py` won't work.

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