Monday, May 04, 2009

Installing sagetex in sage

This post describes how I installed sagetex-2.0 recently. Of course, sage was already installed on my computer as well as texlive-full. First, I installed sagetex :

sage -i sagetex-2.0

Then, I created the folder ~/.texmf/tex (for *.sty files) and I edited the file /etc/texmf/texmf.cnf by replacing the line
Then, I copied the sagetex.sty :

cp sage-3.4/examples/latex_embed/sagetex.sty ~/.texmf/tex/

and I ran the command

sudo texhash

This allowed me to use sagetex from any repository without sagetex.sty inside. I found how to do it on the Ubuntu-fr forum.