On Thu, 09 Oct 2008 at 08:23AM -0700, kcrisman wrote:
> Related question:  Where is the 'best' place to put the sagetex
> folder?  I have tried a lot of variations on the various texmf folders
> (I seem to have an abundance of them, including a texmf-dist which is
> where my latex looks for things.  It only seems to be looking in
> latex/ base/, though.

SageTeX has two parts: a TeX part and a Python/Sage part. Both TeX and
Sage need to find the correct file. TeX and Python look in totally
different places for files, so to use SageTeX you must simultaneously
please both systems.

On Unixy systems, I think it's common for TeX distributions
(well...TeXLive at any rate) to look in your home directory for a texmf/
tree. If you put files there, I *think* they'll be found
automatically...I also do "texhash $HOME/texmf" which creates an ls-R
file; then certainly the files will be found.

Inside the texmf directory, I have a typical TeX directory tree
hierarchy; I don't know if that's necessary.


> > > now I'm working in my directory, but if copy /usr/share/texmf/tex/
> > > latex/sage/sagetex.py in my directory all work. Why sage can't find
> > > sagetex.py ?

That might be because the ls-R files haven't been updated. Running
`texhash' as root with the proper options should fix that, although I
would avoid dropping single files into such directories; they're likely
to be overwritten during an upgrade. 

I've tried to include logic in SageTeX so that things are automatically
found, but haven't found anything satisfactory yet.

Dan

-- 
---  Dan Drake <[EMAIL PROTECTED]>
-----  KAIST Department of Mathematical Sciences
-------  http://mathsci.kaist.ac.kr/~drake

Attachment: signature.asc
Description: Digital signature

Reply via email to