#4714: use easy/load.js when loading jsmath
----------------------+-----------------------------------------------------
 Reporter:  jason     |       Owner:  boothby 
     Type:  defect    |      Status:  new     
 Priority:  major     |   Milestone:  sage-4.0
Component:  notebook  |    Keywords:          
----------------------+-----------------------------------------------------

Comment(by mpatel):

 Copied from [comment:ticket:5653:27 jason]:
 > Replying to [comment:ticket:5653:24 mpatel]:
 >
 > > A related issue:  It would be nice to have just one `<script>` element
 load jsMath with all of Sage's customizations (extensions, plug-ins,
 macros, etc.) into regular, published, printed, and docbrowser worksheets,
 as well as "torn out" introspection windows and offline documentation.
 Maybe `easy/load.js` is the right place (see #4714),
 > > but I think notebook.py generates the macro list on-the-fly.
 >
 > Davide (author of jsmath) sent these comments about the above paragraph:
 >
 > Mpatel is right that jsMath/easy/load.js could be used for this.  Rather
 than putting calls to jsMath.Setup.Script() or jsMath.Extention.Require()
 in-line in the document itself, these can be be put in the loadFiles array
 in easy/load.js.  It is also possible to put the jsMath.Macro() calls into
 a file (say jsMath/local/sage.js), and add that file to the loadFiles
 array as well rather than put them in-line.  Any sage-specific
 customization could go in local/sage.js as well.  In the latest version of
 jsMath, there is even a macros array in easy/load.js for custom macros, so
 you would not even need an extra file for that.  These features are, in
 fact, one of the important reasons for easy/load.js, so I hope you are
 able to take advantage of them.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4714#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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