Differences between revisions 5 and 6
Revision 5 as of 2010-01-31 00:13:15
Size: 1377
Editor: rbeezer
Comment:
Revision 6 as of 2010-01-31 00:48:31
Size: 2427
Editor: rbeezer
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
 * Group Theory Primer (2010/01/30)<<BR>>  * Group Theory Primer (2010/01/28)<<BR>>
Line 21: Line 21:

 * Linked Worksheets (2010/01/30)<<BR>>
   A simple manufactured example of cross-worksheet linking.<<BR>
   * Fire up Sage, then create a new, temporary notebook with the user "link"
   {{{
sage: from sagenb.notebook.notebook import Notebook
sage: nb = Notebook('/tmp/test.sagenb')
sage: nb.add_user('link', 'link', '', force=True)
sage: nb.save()
sage: exit
   }}}
   * At system command-line extract archive (below) to create the worksheets with numbers 0 and 1 in link's space.
   {{{
$ cd /tmp/test.sagenb/home
$ tar -xvf <path-to>/link-worksheets.tar.gz
   }}}
   * Fire up Sage to start a notebook session in the temporary notebook:
   {{{
sage: notebook(directory="/tmp/test.sagenb")
   }}}
   * You may need to create an admin password (do it).
   You may see the worksheets, but be logged in as admin.<<BR>>
   If needed, be certain to login as "link" with password "link."<<BR>>
   * Open worksheet 0, execute a cell or two, find link to worksheet 1.
   * Follow link to worksheet 1, execute some cells here too.

Converting Latex Documents to Sage Worksheets

Introduction

Latex documents can be translated to jsMath, the tool used to render mathematics in the Sage notebook. This project is about automating the conversion process so that authors can easily use a single command to convert a book-length Latex document to a collection of Sage worksheets. These could have embedded Sage input cells, possibly containing interacts, and the cross-referencing features of Latex would be preserved in the collection of Sage worksheets.
Rob Beezer, [email protected], rbeezer on #sage-devel IRC

Trac Ticket 8105 Contains project snapshots, links to other tickets

Examples

To view a worksheet, click on the "worksheet" link, then in the resulting page find the big blue download box and use your browser's function to copy the link there.
Then open your notebook, click the "Upload" link near the upper-left and then paste in the link into the URL field (the second one).

  • Group Theory Primer (2010/01/28)

    • Lots of simple Sage code, some simple mathematics, one interact (search for "@interact")
      Best working demo (though it lacks a title)
      Worksheet Source

  • Linked Worksheets (2010/01/30)

    • A simple manufactured example of cross-worksheet linking.<<BR>

    • Fire up Sage, then create a new, temporary notebook with the user "link"
      sage: from sagenb.notebook.notebook import Notebook
      sage: nb = Notebook('/tmp/test.sagenb')
      sage: nb.add_user('link', 'link', '', force=True)
      sage: nb.save()
      sage: exit
    • At system command-line extract archive (below) to create the worksheets with numbers 0 and 1 in link's space.
      $ cd /tmp/test.sagenb/home
      $ tar -xvf <path-to>/link-worksheets.tar.gz
    • Fire up Sage to start a notebook session in the temporary notebook:
      sage: notebook(directory="/tmp/test.sagenb")
    • You may need to create an admin password (do it).

      You may see the worksheets, but be logged in as admin.
      If needed, be certain to login as "link" with password "link."

    • Open worksheet 0, execute a cell or two, find link to worksheet 1.
    • Follow link to worksheet 1, execute some cells here too.

devel/LatexToWorksheet (last edited 2011-12-14 03:50:48 by rbeezer)