Hi again :-)

I managed to get these extra extensions (both AMSmath and AMSsymbols)  
to work in the sage notebook (within %html cells) and thought I would  
help anyone who would like to use these for themselves. I'm using OS X  
leopard. If you're not then your directory structure may be somewhat  
different.

1) Edit the file sage/data/extcode/notebook/javascript/jsmath/easy/ 
load.js

        a) Find the "loadFiles:" line and edit it so that it reads:
                loadFiles: ["extensions/AMSsymbols.js","extensions/AMSmath.js"],

        b) Find the "loadFonts:" line and edit it so that it reads:
                loadFonts: ["msam10","msbm10"],

2) Save the file.

3) Go to: 
http://www.math.union.edu/~dpvc/jsMath/download/extra-fonts/welcome.html

        a) Download the "ttf" files "jsMath-lasy10.ttf" and "jsMath- 
msbm10.ttf". Once downloaded, double-click them to install them into  
OS X's font folder. I installed the "light" versions.

        b) Download the "zip" files "msam10.zip" and "msbm10.zip". These  
extract into directories "msam10" and "msbm10" which contains the  
AMSsymbols fonts information.

4) Create a directory to hold the AMSsymbol font info.

        a) Make a directory "fonts" within the directory sage/data/extcode/ 
notebook/javascript/jsmath/

        b) Move the "msam10" and "msbm10" directories (folders) extracted in  
step 3b) into the newly created "fonts" directory  (folder).

5) If sage is running, shut it down and close your browser (I use  
Safari). Restart sage, start up the notebook interface and you should  
have access to these nifty extensions.

For those that are familiar with LaTeX, this is SO much nicer (IMHO)  
than the rather clunky means of writing "traditional" notation in  
Mathematica---and it looks SO much nicer too!

Take care,
Gary

On Nov 25, 2008, at 5:43 PM, Robert Bradshaw wrote:

>
> On Nov 25, 2008, at 5:16 PM, Burcin Erocal wrote:
>
>>
>> On Tue, 25 Nov 2008 17:02:39 -0800
>> Robert Bradshaw <[EMAIL PROTECTED]> wrote:
>>
>>>
>>>
>>> On Nov 25, 2008, at 4:26 PM, Gary Church wrote:
>>>
>>>> Hello good folks,
>>>>
>>>> I've been doing more experimentation with the sage notebook
>>>> interface on my Macbook Pro running OS X leopard in the Safari
>>>> browser.
>>>>
>>>> I've been happy with the results of html cells (obtained by
>>>> prefixing the cell with %html) and the ability to embed latex code
>>>> for equations (very pleasing) such as:
>>>>
>>>> %hide
>>>> %html
>>>> <h1>Problem 1</h1>
>>>> $\displaystyle\int\int\int_E y e^{-xy}\;dV =
>>>> \int_{x=0}^1\int_{y=0}^1\int_{z=0}^4 y e^{-xy}\;dz\;dy\; dx$<br>
>>>>
>>>> I noticed, however, that support for amsmath macros (like \iiint)  
>>>> is
>>>> not supported in these cells; would be nice if it was supported :-)
>>>
>>> I agree. We use jsmath http://www.math.union.edu/~dpvc/jsMath/ to do
>>> all our rendering in the notebook, so they would be the people to
>>> contact about this.
>>
>> AFAICT, jsmath already includes support for this. We just need to
>> change the way it is configured for the notebook:
>>
>> http://www.math.union.edu/~dpvc/jsMath/authors/AMSmath.html
>
> I didn't know that, very cool!
>
> - Robert
>
>
> >

Gary Church
[EMAIL PROTECTED]




--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to