William, Thanks for the reply. Yes, I can see you've been busy with lots of other things. ;-)
I've been working with Eitan Guari (tex4ht author) and I think he understands the situation better now, since he isn't a SAGE user (yet). He's been very responsive, so I think we can lean on tex4ht's translation to jsmath and let his tool do most of the hard work. Partially at his suggestion, I am going to SAGE-ify my primer on group theory as I try to wrap up the content. The will not involve any cross-worksheet linking, and I think I have all the tools needed to make the conversion (though not in an optimal way). Anyway, this smaller project (10 pages?) should make a prototype of manageable size and further help folks think about the correct approach, both in the LaTeX and for SAGE. And I can probably post/distribute it as a sws file. There's a few folks active in SAGE that I think I can call on as well for feedback. So look for something more bite-size from me in the next few weeks. BTW - congratulations on the number theory book. Rob On Nov 20, 1:48 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 18, 2008 at 7:21 PM, Rob Beezer <[EMAIL PROTECTED]> wrote: > > > I could use some advice or information about working with the > > directories and files holding worksheets. > > Hi Rob, > > Despite nobody immediately answering your question, it wasn't > ignored. The right solution is that somebody -- probably me -- needs > to design and add some new code to Sage to fully support what you want > to do. You're definitely *not* the only one who wants to do this -- I > have book(s) too that I want to have Sage-ified. Everything you write > below helps make the whole design problem much more concrete. > At the moment I don't have time to work on this, but I hope to soon. > > William > > > > > > > My open-source linear algebra text is written in LaTeX. With the > > tex4ht translator I can convert it into about 100 files of jsMath, > > which are mostly the 50 or so sections of the book. With a Python > > script I can easily convert the files into Sage worksheets. > > > The book has extensive cross-references as hyperlinks (e.g. a proof > > might point to several theorems proved earlier). Broken up into > > manageable-sized pieces, many of the links point to other files. I > > can adjust the links created by tex4ht to be relative links such as > > href="../51" or href="../51/#some-target" and these links perform as > > they should inside of the Sage notebook. > > > If I start with the main table of contents as worksheet 0 and number > > links from there, then conceivably I can place the files as > > "worksheet.txt" in the properly numbered directories of sage_notebook/ > > worksheets/some-user/ and all will work as it should. > > > My question: what is the best way to package up these files and > > distribute them? > > > My current thought is to suggest a consumer make a brand-new user on > > their system and I will package up the files as a tarball. With > > proper directions, the tarball can be extracted in the right place > > within the new user's files, so all the files go where they belong and > > respect the numbering used in the links. > > > Hopefully there is a better/easier way. > > > One related question. Eitan Guari, the author of tex4ht, is helping > > me with the translation step, and possibly some of my custom script > > for the (minor) manipulations required to make a Sage worksheet could > > instead become automatic. Is there any documentation of the > > interaction between the notebook interface, worksheets, links, and the > > file system? I've found documentation of some of the code for > > worksheets, but it is not very illuminating for this task. > > > Thanks, > > Rob > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---