I have a question about hyperlinks between worksheets.

I am trying to convert my open-source linear algebra textbook (http://
linear.ups.edu/) into a group of Sage worksheets.  Right now, I
convert the LaTeX for each of the 50 or so sections into its own page
of XHTML that is acceptable to jsMath (conversion via the ht4tex
tool).  It is relatively easy to convert these into Sage worksheets
that render perfectly.  Long-term I would like to add "live" Sage code
to my LaTeX sources and have them migrate to the worksheets as cells,
demonstrating the use of Sage for the relevant aspects of linear
algebra.  The end result would be a "Sage-enhanced" version of the
book.

I use extensive hyperlinks to reference between definitions, theorems
and proofs.  Within a worksheet (one section in the book) these work
fine.  I've done some experiments, making minor edits by hand to
convert to worksheets.  But no matter what I try, when a link points
to a different worksheet and is clicked on, the new worksheet gets
loaded but the page does not position itself at the target location in
the new worksheet.

I have been able hack up a pair of small demonstration worksheets, and
make linking work properly with HTML tags (using name="" for the
target).  In the XHTML/jsMath pages produced by tex4ht, the targets
are specified with id="", and it seems that the use of name="" is no
longer acceptable in XHTML (and doesn't seem to work anyway).

I'd appreciate any advice, hints or pointers on how to accomplish this
type of cross-worksheet linking with XHTML in the worksheets.
Examples of the types of pages I'm planning to convert can be found
starting at http://linear.ups.edu/jsmath/latest/fcla-jsmath-latest.html
The links all have filenames in them which will need to be converted
as well, but they should be easy to parse with sed or a script.  In my
experiments, I've edited those out by hand and basically replaced with
them with worksheet numbers.

Thanks,
Rob

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to