Skip to content
tmolteno edited this page Mar 27, 2012 · 10 revisions

This is the SympyTeX package. It allows you to embed code, results of computations, and (sometimes!) plots from the Matplotlib software suite (http://www.sympy.org) into LaTeX documents. SympyTeX was created by Tim Molteno of the Department of Physics at the University of Otago.

Table of Contents

INSTALLING

Download the latest Version of SympyTeX here. This should be unpacked in your home directory.

  tar -zxf tmolteno-SympyTeX-757319c.tar.gz
  cd tmolteno-SympyTeX-757319c/
  make

To finish the installation, move the following files into directories searched by TeX and Python, respectively.

   sympytex.sty
   sympytex.py 

USING THE PACKAGE

To use SympyTeX, you need the files

  sympytex.sty
  sympytex.py

If those haven't been extracted from the .dtx file, you'll need build the package (see below)

BUILDING THE PACKAGE

To build the SympyTeX package you will need to install some extra LaTeX packages (makecmds.sty)

    aptitude install texlive-latex-extra

Then run `latex sympytexpackage.ins'

If a PDF file of the documentation wasn't included with this distribution of SympyTeX, you will need to build the documentation yourself. To do that:

  • Run `latex sympytexpackage.dtx'
  • Run `python sympytexpackage.sympy'
  • Run the indexing commands that the .ins file told you about.
  • Run `latex sympytexpackage.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.

CREDITS

This works builds on a lot of work by others; in particular the work of Dan Drake <[email protected]></[email protected]> who created the sagetex package. The source code may be modified and distributed under the terms of the GPL, v2 or later; the documentation may be modified and distributed under a Creative Commons Attribution - Noncommercial - 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!

Tim Molteno ([email protected])

Clone this wiki locally