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 Washington http://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 -~----------~----~----~----~------~----~------~--~---