This is a system for authors to convert a LaTeX document to a
Sage worksheet, or a collection of linked Sage worksheets.
hyperlinks between sections. The output will be a tar archive,
which is not supported by the notebook, so see the project wiki
page for hints on how to deal with this archive.
+ (2010/02/24 Converting multiple sections to a tar archive is
+ most likely broken right now due to changes intended fro single
+ worksheet creation. It will come back.)
3. Set your working directory to be where the output of tex4ht
landed. Make certain foo.css and foo.html are present. It is
$ chmod 770 /path/to/tex2sws.py
- Run the script. No arguments are needed, it will inspect your
- working directory for the expected pieces
+ Run the script. See below for arguments. If your input files are
+ in the current directory, and are not mixed with another project,
+ then sensible results can be obtained with no arguments.
Note: if you have the script in the same directory as your
project files, run it with ./tex2sws.py
+ Help similar to this section, but shorter.
+ Print a summary of the conversion environment.
+ Directory containing CSS and HTML files.
+ If omitted: The current directory.
+ The leading portion of files produced by tex4ht,
+ for a project begun with foo.tex the basename is just foo.
+ If omitted: Determined by a single CSS file in the input directory.
+ When there is no, or more than one, CSS file it is an error.
+ The name of the sws file to contain the compressed worksheet.
+ If omitted: An sws file in the input directory using the basename.