I've been working on the conversion of LaTeX documents, which include
Sage code, into Sage worksheets.  Here's the current state of the
experiment.  From the same LaTeX source, I'm producing PDF with bits
of Sage code inline and in set-off blocks.  The blocks are formatted
with SageTeX's "sageverbatim" environment.

http://buzzard.ups.edu/sage/sage-group-theory.pdf

To create a worksheet, I use tex4ht to convert the LaTeX into jsMath.
The sageverbatim environment is redefined so that tex4ht wraps the
sage code with markers.  Then a small Python script (about 55 lines)
makes minor modifications to the jsMath so that it is in the proper
format to copy into a worksheet wholesale as text.  The result is that
the blocks of code are now "live" when viewed in the Sage notebook so
the reader can execute or modify them as they read about Sage and/or
mathematics.

http://buzzard.ups.edu/sage/sage-group-theory-20081217.sws

At a minimum, this is a nice example of several open tools working
together (LaTeX, tex4ht, jsMath, Sage NB).  Hopefully some will see
the potential for cleaning this up and expanding the possibilities.  I
think it could be a big help in creating more tutorials, guides and
books that combine Sage and mathematics in a variety of formats -
further promoting Sage, especially in educational settings.

Comments, suggestions, help, etc welcome.  (Content itself is still a
work-in-progress.)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-edu" 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-edu?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to