[tex-live] Where to copy .sty files

Herbert Schulz herbs at wideopenwest.com
Fri Nov 20 21:45:22 CET 2009


On Nov 20, 2009, at 2:30 PM, Omer Khalid wrote:

> Hi,
> 
> I have texlive 2007 installed with MacTex.
> 
> I need to use algorithmic and algorithms packages, so I got them from CTAN
> site and extracted the *.sty files.
> 
> I tried to copy them to various places including ~/texmf/tex or
> ~/Library/texmf/tex/latex or in the directory where my thesis tex files are.
> Afterwards, I ran "texhash" command to refresh the database; but it seems
> that my tex system still can't located the files as I keep on getting the
> error about the missing algorithms.sty file.
> 
> I also tried to find "tlmgr" command on my OS X Lepord machine no luck!
> 
> Any help in how to install these .sty files would be very much appreciated.
> 
> Thanks,
> Omer

Howdy,

Your personal tree in ~/Library/texmf/tex/latex/ (~ is your HOME directory --- NOT in the Library folder at the root of your hard drive) is the correct place to put the files. You also don't have to run texhash for files stored in your personal tree.

Finally, the package itself is called algorithm, not algorithms (no final `s'). So you should  use it 

\usepackage{algorithm}

not

\usepackage{algorithms}

Hope that helps.

By the way... is there some reason you can't/won't update your TeX system to MacTeX-2009? What version of the OS are you using? You can download MacTeX-2009 from <http://www.tug.org/mactex/2009/>.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)





More information about the tex-live mailing list