Dear Marcin, Thanks! I've hacked together a one-time conversion of my LaTeX sources into XML (via Python, sed, and jut a bit of hand-editing), using a custom set of XML tags, designed to reflect the structure of my text (only). Eventually, but not quite yet, I'll abandon my LaTeX and the XML will be the source. I'm about 80% done with this.
>From there, XSLT transforms make it very easy to create robust HTML output (which is what you are seeing). I am also producing much cleaner LaTeX from the XML (yes, that does sound circular). It should be realtively easy to adjust the HTML versions of the sections to be the bodies of Sage worksheets with live cells. (The HTML could have live cells now, but I need support for linking together a sequence of cells.) It is also very easy with an XSLT transform to extract subsets of the material: solutions manual, Sage usage notes, doctests, my "archetype" collection, theorem and definition flashcards, etc. The current list of notation, with references to the originating definition, is a small example of this idea - grab each notation description and note the definition it is enclosed in as you go. Everybody's first reaction to XML is "yuck!" and XSLT takes a while to grok, but I'm finding the results worth the pain. Rob On Thursday, July 12, 2012 1:46:47 PM UTC-7, Marcin Kostur wrote: > > Rob, > > The 3.0 looks really great, I can imagine when live cell are inside will > be even better! > How do you author this? > > Marcin > > On Thursday, July 12, 2012 5:18:48 AM UTC+2, Rob Beezer wrote: >> >> I can make an EPUB (version 2 or 3) that uses Javascript to employ >> MathJax and uses Javascript to put up Sage cells powered by the cell server. >> >> It all works pretty well in Calibre, which is primarily a conversion >> tool, but which also functions as a desktop reader. One small problem is >> that Calibre grabs some keystrokes for navigation, so the Sage cell never >> gets them. Like the letter "L". So no doing any Lie groups. ;-) >> >> I have not found a "reading system" for a portable device where I have >> had any luck. Azardi seems to be promising MathJax bundled into their >> reader in the next version, and they seem to be targeting the technical and >> textbook markets and may also be just a desktop reader (?). >> >> My test EPUB will not work in iBooks 2.1.1 on an iPad. MathJax causes >> the latex text to go grey, so it is trying, but it cannot go out and grab >> the fonts. My guess is that Javascript is sandboxed to stay local. Just a >> guess, I'd love to know if there is a way around this. Seems you can >> unpack the critical bits of MathJax into your book, add all those files to >> the manifest, and then MathJax will work locally? Maybe some good hints at >> link below, but have not been able to pursue them yet. >> >> >> http://boolesrings.org/krautzberger/2011/10/17/epub-mathjax-and-the-ipad-another-attempt/ >> >> The sample/experimental book I created is authored in DocBook, which can >> then be converted to EPUB3, but it also worked a while ago as just EPUB2. >> >> Andrea - if you make any progress, I'd love to hear about it. I'm making >> a version of my textbook optimized for the web and it will eventually >> include live Sage cells, rather than the current static ones - it should >> really just be a small leap to have it be an EPUB. (Link below is an >> in-progress version.) >> >> http://linear.ups.edu/version3/html/fcla.html >> >> Rob >> >> On Wednesday, July 11, 2012 2:55:24 PM UTC-7, Andrea Lazzarotto wrote: >>> >>> The situation is sad. I made a simple ebook with js but I can't find a >>> reader which supports it... >>> >>> Andrea Lazzarotto >>> (inviato da Android) >>> >> -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To view this discussion on the web visit https://groups.google.com/d/msg/sage-edu/-/xj5EXWVFWegJ. To post to this group, send email to sage-edu@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.