ddrake / SageTeX (http://tug.ctan.org/pkg/sagetex)

The SageTeX package allows you to embed code, results of computations, and plots from the Sage mathematics software suite (http://sagemath.org) into LaTeX documents.

Clone this repository (size: 203.1 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/ddrake/sagetex/
commit 69: 31f6710bb6fc
parent 68: 91feb804ae7d
child 70: 08ef2ade2379
final changes for new installation as default spkg defaultv2.2.3
Dan Drake
3 months ago

 NB: This is not the latest revision. For the latest view, go to tip.

View at rev
SageTeX /
filename size last modified message
.hgignore 228 B 9 months ago Initial checkin of remote-sagetex.py.
.hgsigs 420 B 9 months ago Added signature for changeset 32683bc9955e
.hgtags 232 B 9 months ago Added tag ctan2 for changeset a9c2d85b48f3
MANIFEST.in 310 B 9 months ago Python distutils fixups related to splitting dtx files
Makefile 1.8 KB 3 months ago final changes for new installation as default spkg
README 2.4 KB 3 months ago final changes for new installation as default spkg
TODO 285 B 10 months ago bits of documentation fiddling and improvements.
example.tex 9.9 KB 3 months ago add sagestr, other updates; remove old installation…
py-and-sty.dtx 37.2 KB 3 months ago add sagestr, other updates; remove old installation…
remote-sagetex.dtx 16.7 KB 9 months ago Fix stupid bug so that \sage actually works; fix percent sig…
sagetexpackage.dtx 42.3 KB 3 months ago final changes for new installation as default spkg
sagetexpackage.ins 5.3 KB 9 months ago Take server, etc stuff from remote-sagetex out of .ins…
scripts.dtx 14.0 KB 9 months ago Update makestatic.py and extractsagecode.py to handle…
setup.py 930 B 3 months ago draft of new installation section
test 566 B 3 months ago final changes for new installation as default spkg

README

This is the SageTeX package. It allows you to embed code, results of
computations, and plots from the Sage mathematics software suite
(http://sagemath.org) into LaTeX documents.
====================================================================

SageTeX is included with Sage, so to use it, you only need to make the
file sagetex.sty known to TeX; that file will be in
SAGE_ROOT/local/share/texmf/tex/generic/sagetex, along with
documentation and examples. See the Sage installation guide at
http://sagemath.org/doc/installation/ for complete instructions and
http://sagemath.org/doc/tutorial/sagetex.html for a quick usage
introduction. The complete documentation is in sagetexpackage.pdf, in
the SAGE_ROOT/... directory mentioned above.

If you want to extract any of SageTeX's files from the .dtx sources, you
can do

  0. Run `latex sagetexpackage.ins'

To regenerate the documentation, do

  1. Run `latex sagetexpackage.dtx'
  2. Run `sage sagetexpackage.sage'
  3. Run the indexing commands that the .ins file told you about.
  4. Run `latex sagetexpackage.dtx' again.

You can skip step 3 if you don't care about the index. You will need the
pgf and tikz packages installed to typeset the figures.

The file example.tex has, as you likely guessed, a bunch of examples
showing you how this package works. You can compile it using a another
latex-sage-latex cycle as in steps 1-2-4 above. Note that example.tex
includes some PNG graphics which latex cannot use; to see those, use
pdflatex instead of regular latex or enable the imagemagick option. (See
the documentation.)

To use the SageTeX package with your own documents, see the
"Installation" section of the documentation.

SageTeX now includes `remote-sagetex.py', a plain Python script that
allows you to use a remote Sage server instead of a local Sage
installation, so now you can use SageTeX on any computer with TeX and
Python 2.6 installed.

This work builds on a lot of work by others; see the "Credits" section
of the documentation for credits. The source code may be modified and
distributed under the terms of the GPL, version 2 or later; the
documentation may be modified and distributed under a Creative Commons
Attribution - Share Alike 3.0 License. See the "Copying and licenses"
section of the documentation.

Please let me know if you find any bugs or have any ideas for
improvement!

- Dan Drake <http://mathsci.kaist.ac.kr/~drake/>