Ask Your Question

Python error when running sagetex.sage outside ~ directory

asked 2013-10-28 03:49:27 +0100

Xrobot gravatar image

updated 2015-01-13 21:42:24 +0100

FrédéricC gravatar image

Hi, I use Sage-5.10 (Downloaded source and built one in Ubuntu 12.04 lts) and I've linked Sagetex to my existing TeX installation, I've removed the 'sagetex.sty from TeX'. so it works from my ~/texmf directory. But when I run sage on my sagetex.sage file produced from .tex file--outside my home directory, I get an error 'No such file or directory ..' but it works well if I move the 2 files to my ~ directory and then run sage on the files(to get the .sout and .scmd files), Can I fix this to work on other subdirectories?. My Sage Directory is ~/Desktop/sage-5.10/sage.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2013-10-28 06:12:51 +0100

Luca gravatar image

You ought to put sagetex.sty in ~/texmf/tex/latex, then run the command texhash (not sure the second is strictly necessary, though).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-10-28 03:49:27 +0100

Seen: 178 times

Last updated: Oct 28 '13