On Jan 6, 1:36 pm, "William Stein" <wst...@gmail.com> wrote:
> On Tue, Jan 6, 2009 at 12:36 PM, John H Palmieri <jhpalmier...@gmail.com> 
> wrote:
>
>
>
> > jsMath has some extensions, like 'verb' and 'AMSmath': see the web
> > pageshttp://www.math.union.edu/~dpvc/jsMath/authors/verb.htmland
> >http://www.math.union.edu/~dpvc/jsMath/authors/AMSmath.html, for
> > example.
>
> > 1. Does it make sense to load these automatically in sage?
>
> Yes.

Fine, I'll submit a patch.

> > 2. To fix a bug, I would like to load the 'verb' extension.  I can do
> > this by including '\require{verb}' as part of the LaTeX code each time
> > an object is typeset, but maybe it would make more sense to load it
> > just once via an appropriate javascript command.  Any opinions?
>
> I like that.  Is there any drawback?

Not that I can see, but I know nothing about javascript, jsmath, or
anything like that.

> > 3. Finally, if it's better to use a javascript command like
>
> >   loadFiles: ["extensions/verb.js"]
>
> > or
>
> >  <SCRIPT>
> >      jsMath.Extension.Require("verb");
> >  </SCRIPT>
>
> > where in the sage code do I do this?
>
> I don't know which is best.   The file to edit is
>
>     SAGE_ROOT/devel/sage/sage/server/notebook/js.py

I think I found the right place in that file.  The line
'jsMath.Extension.Require("verb")' seems to do the job.

By the way, some interesting jsMath extensions are

AMSmath: implements commands like \iint, \iiint, ..., \sideset,
\stackrel, \binom
AMSsymbols: (may require some extra fonts)
moreArrows: includes \xrightarrow and \xleftarrow

Maybe we should automatically include the first and third ones,
skipping the middle one because of font issues?

  John


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to